green_t refactoring
This commit is contained in:
+26
-26
@@ -48,36 +48,36 @@ function public.container_item(bag, slot)
|
|||||||
local max_charges = max_item_charges(item_id)
|
local max_charges = max_item_charges(item_id)
|
||||||
local charges = max_charges and item_charges(tooltip)
|
local charges = max_charges and item_charges(tooltip)
|
||||||
local aux_quantity = charges or count
|
local aux_quantity = charges or count
|
||||||
return {
|
return T(
|
||||||
item_id = item_id,
|
'item_id', item_id,
|
||||||
suffix_id = suffix_id,
|
'suffix_id', suffix_id,
|
||||||
unique_id = unique_id,
|
'unique_id', unique_id,
|
||||||
enchant_id = enchant_id,
|
'enchant_id', enchant_id,
|
||||||
|
|
||||||
link = link,
|
'link', link,
|
||||||
itemstring = item_info.itemstring,
|
'itemstring', item_info.itemstring,
|
||||||
item_key = item_id..':'..suffix_id,
|
'item_key', item_id..':'..suffix_id,
|
||||||
|
|
||||||
name = item_info.name,
|
'name', item_info.name,
|
||||||
texture = texture,
|
'texture', texture,
|
||||||
level = item_info.level,
|
'level', item_info.level,
|
||||||
type = item_info.type,
|
'type', item_info.type,
|
||||||
subtype = item_info.subtype,
|
'subtype', item_info.subtype,
|
||||||
slot = item_info.slot,
|
'slot', item_info.slot,
|
||||||
quality = item_info.quality,
|
'quality', item_info.quality,
|
||||||
max_stack = item_info.max_stack,
|
'max_stack', item_info.max_stack,
|
||||||
|
|
||||||
count = count,
|
'count', count,
|
||||||
locked = locked,
|
'locked', locked,
|
||||||
readable = readable,
|
'readable', readable,
|
||||||
lootable = lootable,
|
'lootable', lootable,
|
||||||
|
|
||||||
tooltip = tooltip,
|
'tooltip', tooltip,
|
||||||
tooltip_money = tooltip_money,
|
'tooltip_money', tooltip_money,
|
||||||
max_charges = max_charges,
|
'max_charges', max_charges,
|
||||||
charges = charges,
|
'charges', charges,
|
||||||
aux_quantity = aux_quantity,
|
'aux_quantity', aux_quantity
|
||||||
}
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user