This commit is contained in:
2024-06-17 13:51:58 +09:00
parent ac3942ab57
commit 2425c34cb4

View File

@@ -323,10 +323,15 @@ function main.ET(source, tier)
end end
elseif data.raw.technology[source.tech] then elseif data.raw.technology[source.tech] then
local recipe_name = source.name
if source.category == 'equipment' then if source.category == 'equipment' then
table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name .. '-mk' .. tier .. '-equipment'}) recipe_name = recipe_name .. '-mk' .. tier .. '-equipment'
else else
recipe_name = recipe_name .. tier
end
table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name .. '-' .. tier}) table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=source.name .. '-' .. tier})
if source.type == 'ammo-turret' or source.type == 'fluid-turret' then if source.type == 'ammo-turret' or source.type == 'fluid-turret' then
@@ -342,7 +347,6 @@ function main.ET(source, tier)
end end
end end
end end
end
-- fast replace group -- fast replace group
function main.EL(source) function main.EL(source)