mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -275,27 +275,14 @@ end
|
|||||||
-- item
|
-- item
|
||||||
function main.EI(source, tier)
|
function main.EI(source, tier)
|
||||||
local item = table.deepcopy(data.raw.item[source.ref_name])
|
local item = table.deepcopy(data.raw.item[source.ref_name])
|
||||||
|
item.name = (source.category == 'equipment' and (source.name .. '-mk' .. tier .. '-equipment')) or (source.name .. ((tier > 1 and '-' .. tier) or ''))
|
||||||
if source.category == 'equipment' then
|
item[(source.category == 'equipment' and 'place_as_equipment_result') or 'place_result'] = item.name
|
||||||
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
|
|
||||||
|
|
||||||
if item.icons and item.icons[1] then
|
if item.icons and item.icons[1] then
|
||||||
item.icons[1].tint = items['tint'][tier]
|
item.icons[1].tint = items['tint'][tier]
|
||||||
|
|
||||||
elseif item.icon then
|
elseif item.icon then
|
||||||
item.icons = {
|
item.icons = {{icon = item.icon, tint = items['tint'][tier]}}
|
||||||
{
|
|
||||||
icon = item.icon,
|
|
||||||
tint = items['tint'][tier]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
item.icon = nil
|
item.icon = nil
|
||||||
|
|
||||||
if item.icon_size then
|
if item.icon_size then
|
||||||
|
|||||||
Reference in New Issue
Block a user