Basically putting all the translation stuff together before I refactor things to use it.
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user