restored block item's missing equipposition

This commit is contained in:
minjaesong
2023-10-04 02:00:29 +09:00
parent 9a527a4508
commit 6529901e64

View File

@@ -96,7 +96,8 @@ class EntryPoint : ModuleEntryPoint() {
override var inventoryCategory = if (isWall) Category.WALL else Category.BLOCK override var inventoryCategory = if (isWall) Category.WALL else Category.BLOCK
override var isDynamic = false override var isDynamic = false
override val materialId = tile.material override val materialId = tile.material
// override val itemImage: TextureRegion override var equipPosition = EquipPosition.HAND_GRIP
// override val itemImage: TextureRegion
// get() { // get() {
// val itemSheetNumber = App.tileMaker.tileIDtoItemSheetNumber(originalID) // val itemSheetNumber = App.tileMaker.tileIDtoItemSheetNumber(originalID)
// val bucket = if (isWall) BlocksDrawer.tileItemWall else BlocksDrawer.tileItemTerrain // val bucket = if (isWall) BlocksDrawer.tileItemWall else BlocksDrawer.tileItemTerrain
@@ -107,7 +108,7 @@ class EntryPoint : ModuleEntryPoint() {
// } // }
init { init {
tags.addAll(tile.tags) tags.addAll(tile.tags)
originalName = originalName =
if (isWall && tags.contains("UNLIT")) "${tile.nameKey}>>=BLOCK_UNLIT_TEMPLATE>>=BLOCK_WALL_NAME_TEMPLATE" if (isWall && tags.contains("UNLIT")) "${tile.nameKey}>>=BLOCK_UNLIT_TEMPLATE>>=BLOCK_WALL_NAME_TEMPLATE"
else if (isWall) "${tile.nameKey}>>=BLOCK_WALL_NAME_TEMPLATE" else if (isWall) "${tile.nameKey}>>=BLOCK_WALL_NAME_TEMPLATE"