From a86d417208663f5d6b88f9e46e7f7fcbba1ec157 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 9 May 2025 17:34:55 +0900 Subject: [PATCH] . --- PHI-CL/main.lua | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/PHI-CL/main.lua b/PHI-CL/main.lua index 71d2c40..62aa820 100644 --- a/PHI-CL/main.lua +++ b/PHI-CL/main.lua @@ -275,27 +275,14 @@ end -- item function main.EI(source, tier) local item = table.deepcopy(data.raw.item[source.ref_name]) - - if source.category == 'equipment' then - item.name = source.name .. '-mk' .. tier .. '-equipment' - item.place_as_equipment_result = item.name - - else - item.name = source.name .. ((tier > 1 and '-' .. tier) or '') - item.place_result = item.name - end + item.name = (source.category == 'equipment' and (source.name .. '-mk' .. tier .. '-equipment')) or (source.name .. ((tier > 1 and '-' .. tier) or '')) + item[(source.category == 'equipment' and 'place_as_equipment_result') or 'place_result'] = item.name if item.icons and item.icons[1] then item.icons[1].tint = items['tint'][tier] elseif item.icon then - item.icons = { - { - icon = item.icon, - tint = items['tint'][tier] - } - } - + item.icons = {{icon = item.icon, tint = items['tint'][tier]}} item.icon = nil if item.icon_size then