This commit is contained in:
2026-06-19 19:10:36 +09:00
parent f15cd09d13
commit c169418db9
2 changed files with 5 additions and 26 deletions
+4 -5
View File
@@ -254,13 +254,12 @@ function main.ET(source, tier)
local recipe_name = (source.category == 'equipment' and (source.name .. '-mk' .. tier .. '-equipment')) or (source.name .. '-' .. tier)
if data.raw.technology[source.tech].effects then
table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=recipe_name})
else
data.raw.technology[source.tech].effects = {{type='unlock-recipe', recipe=recipe_name}}
if not data.raw.technology[source.tech].effects then
data.raw.technology[source.tech].effects = {}
end
table.insert(data.raw.technology[source.tech].effects, {type='unlock-recipe', recipe=recipe_name})
if source.type ~= 'ammo-turret' and source.type ~= 'fluid-turret' then
return
end