Added debug inventory menu
This commit is contained in:
@@ -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 "";
|
||||
|
Reference in New Issue
Block a user