mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-13 05:08:44 +09:00
.
This commit is contained in:
+10
-18
@@ -179,24 +179,6 @@ if data.raw.technology['automation'] and data.raw.technology['automation'].effec
|
||||
table.insert(data.raw.technology['automation'].effects, {type = 'create-ghost-on-entity-death', modifier = true})
|
||||
end
|
||||
|
||||
local lab_ingredient_removal = {
|
||||
['metallurgic-science-pack'] = true,
|
||||
['agricultural-science-pack'] = true,
|
||||
['electromagnetic-science-pack'] = true,
|
||||
['cryogenic-science-pack'] = true,
|
||||
['promethium-science-pack'] = true,
|
||||
}
|
||||
|
||||
for _, tech in pairs(data.raw.technology) do
|
||||
if tech.unit and tech.unit.ingredients then
|
||||
for i = #tech.unit.ingredients, 1, -1 do
|
||||
if lab_ingredient_removal[tech.unit.ingredients[i][1]] then
|
||||
table.remove(tech.unit.ingredients, i)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- GM-VP A 2 SPACE_AGE RESEARCH_EFFECT
|
||||
table.insert(data.raw.technology['fusion-reactor'].effects, {type = 'unlock-recipe', recipe = 'fluoroketone'})
|
||||
table.insert(data.raw.technology['fusion-reactor'].effects, {type = 'unlock-recipe', recipe = 'fluoroketone-cooling'})
|
||||
@@ -410,6 +392,16 @@ for _, v in pairs(items['technology']) do
|
||||
end
|
||||
end
|
||||
|
||||
for _, tech in pairs(data.raw.technology) do
|
||||
if tech.unit and tech.unit.ingredients then
|
||||
for i = #tech.unit.ingredients, 1, -1 do
|
||||
if items['technology_ingredient_removal'][tech.unit.ingredients[i][1]] then
|
||||
table.remove(tech.unit.ingredients, i)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- GM-VP C 26 BASE RESEARCH
|
||||
-- GM-VP C 35 SPACE_AGE RESEARCH
|
||||
for k, v in pairs(items['technology_reform']) do
|
||||
|
||||
Reference in New Issue
Block a user