Changed all translation to use new TransContext
This commit is contained in:
@@ -32,16 +32,4 @@ func getItem(type:Item.Type) -> Item:
|
||||
return ITEM_MAP[type]
|
||||
|
||||
func isStackable(itemType:Item.Type) -> bool:
|
||||
return getItem(itemType).stackable
|
||||
|
||||
func getItemName(itemType:Item.Type, count:int = 1) -> String:
|
||||
var item = getItem(itemType)
|
||||
return tr_n(item.title, item.title + "_plural", count).format({
|
||||
"count": count
|
||||
})
|
||||
|
||||
func getItemDescription(itemType:Item.Type) -> String:
|
||||
return getItem(itemType).description_text
|
||||
|
||||
func getItemCategory(itemType:Item.Type) -> Item.Category:
|
||||
return getItem(itemType).category
|
||||
return getItem(itemType).stackable
|
Reference in New Issue
Block a user