tech tree view wip

This commit is contained in:
minjaesong
2024-11-25 23:50:28 +09:00
parent 661c4cdc4d
commit 95af4e8f53
4 changed files with 38 additions and 23 deletions

View File

@@ -130,6 +130,12 @@ open class FixtureInventory() {
updateEncumbrance()
}
open fun removeEntryForced(itemID: ItemID) {
searchByID(itemID)?.let {
itemList.remove(it)
}
}
open fun remove(itemID: ItemID, count: Long) = remove(ItemCodex[itemID]!!, count) {}
open fun remove(item: GameItem, count: Long = 1L) = remove(item, count) {}