This commit is contained in:
2026-06-05 15:23:31 +09:00
parent 4c360fc93b
commit ea1b985353
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -1,4 +1,5 @@
local items = require('gm-vp-c')
local mbm = require('mbm-c')
local item_sounds = require('__base__/prototypes/item_sounds')
if not mods['space-age'] then
@@ -406,3 +407,13 @@ if data.raw.technology and items['technology'] and items['technology_reform'] th
end
end
end
if settings.startup['PHI-MB-MACHINE'].value and settings.startup['PHI-MB-MACHINE'].value > 1 and mbm and data.raw.technology and data.raw.recipe then
for i = 2, settings.startup['PHI-MB-MACHINE'].value do
for _, v in pairs({'foundry', 'electromagnetic-plant', 'cryogenic-plant'}) do
if mbm[v] and mbm[v].max and mbm[v].max >= i and mbm[v].tech and data.raw.technology[mbm[v].tech] and data.raw.recipe[v .. '-' .. i] then
table.insert(data.raw.technology[mbm[v].tech].effects, {type = 'unlock-recipe', recipe = v .. '-' .. i})
end
end
end
end