Basically putting all the translation stuff together before I refactor things to use it.

This commit is contained in:
2025-05-25 12:53:34 -05:00
parent 1e2d971643
commit f5cb84e0c9
31 changed files with 254 additions and 327 deletions

View File

@@ -7,7 +7,7 @@ enum ItemSortType {
class ItemStackNameComparator:
static func _sort(a, b):
return Item.getItemName(a).to_lower() < Item.getItemName(b).to_lower()
return ITEM.getItemName(a).to_lower() < ITEM.getItemName(b).to_lower()
class ItemStackTypeComparator:
static func _sort(a, b):
@@ -22,7 +22,7 @@ func isPlayerInventory() -> bool:
return self == ITEM.PLAYER_INVENTORY
func addItem(type:Item.Type, quantity: int = 1) -> void:
if !Item.isStackable(type):
if !ITEM.isStackable(type):
# Item cannot be stacked, add each item to inv
for i in range(quantity):
contents.append(ItemStack.new(type, 1))