This commit is contained in:
2026-05-09 01:34:34 +09:00
parent 1966e7438d
commit dd3487bc59
2 changed files with 18 additions and 18 deletions
+8
View File
@@ -66,6 +66,14 @@ local items = {
['thruster'] = 'thruster', ['thruster'] = 'thruster',
['biolab'] = 'lab', ['biolab'] = 'lab',
}, },
['technology_ingredient_removal'] = {
-- SPACE_AGE 0
['metallurgic-science-pack'] = true,
['agricultural-science-pack'] = true,
['electromagnetic-science-pack'] = true,
['cryogenic-science-pack'] = true,
['promethium-science-pack'] = true
},
['technology_reform'] = { ['technology_reform'] = {
-- BASE 0 -- BASE 0
['speed-module-2'] = { ['speed-module-2'] = {
+10 -18
View File
@@ -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}) table.insert(data.raw.technology['automation'].effects, {type = 'create-ghost-on-entity-death', modifier = true})
end 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 -- 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'})
table.insert(data.raw.technology['fusion-reactor'].effects, {type = 'unlock-recipe', recipe = 'fluoroketone-cooling'}) 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
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 26 BASE RESEARCH
-- GM-VP C 35 SPACE_AGE RESEARCH -- GM-VP C 35 SPACE_AGE RESEARCH
for k, v in pairs(items['technology_reform']) do for k, v in pairs(items['technology_reform']) do