fix: preserve refused loot details in HUD
This commit is contained in:
@@ -359,7 +359,9 @@ func _localized_item_quantity(item_data: Dictionary) -> String:
|
||||
var item_id := StringName(item_data.get("item_id", ""))
|
||||
if item_id.is_empty():
|
||||
return ""
|
||||
var quantity := maxi(1, int(item_data.get("quantity", 1)))
|
||||
var quantity := int(item_data.get("quantity", 1))
|
||||
if quantity <= 0:
|
||||
return ""
|
||||
return "%s x%d" % [_localized_item_name(item_id), quantity]
|
||||
|
||||
func _localized_item_name(item_id: StringName) -> String:
|
||||
|
||||
Reference in New Issue
Block a user