Added debug inventory menu

This commit is contained in:
2025-05-19 17:41:39 -05:00
parent 3b9986b4ee
commit 057ed10851
26 changed files with 309 additions and 24 deletions

View File

@@ -13,9 +13,26 @@ enum Category {
static func isStackable(itemType:Type) -> bool:
match itemType:
_:
return true
static func getName(itemType:Type, count:int = 1) -> String:
match itemType:
Type.POTION:
if count != 1:
return "Potions"
return "Potion"
Type.ONION:
if count != 1:
return "Onions"
return "Onion"
_:
assert(false, "Invalid item type")
return ""
# func getName() -> String:
# push_error("getName() must be overridden in derived classes");
# return "";