mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user