This commit is contained in:
2024-09-21 00:21:22 +09:00
parent f768b263d6
commit 80e2ad6eac
7 changed files with 146 additions and 258 deletions

View File

@@ -132,7 +132,7 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TRASH'].value t
type = 'recipe',
name = 'trash-chest',
energy_required = 2,
enabled = true,
enabled = false,
ingredients = {{'steel-chest', 1}},
result = 'trash-chest'
}})
@@ -183,7 +183,7 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TRASH'].value t
type = 'recipe',
name = 'trash-pipe',
energy_required = 2,
enabled = true,
enabled = false,
ingredients = {{'iron-plate', 1}},
result = 'trash-pipe'
}})
@@ -616,41 +616,29 @@ if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-CHEST'].value t
end
for _, v in pairs(items['item']) do
if v.stage == file_stage then
if v.enabled and v['setting'] then
local v2 = settings.startup[v['setting']].value
if (v.stage == file_stage) and v.enabled and (v.max >= v.min) then
v.category = 'item'
if v2 >= v.min then
v.category = 'item'
for j=v.min, v2, 1 do
main.EEE(v, j)
main.EI(v, j)
main.ER(v, j)
main.ET(v, j)
end
main.EL(v)
end
for j=v.min, v.max, 1 do
main.EEE(v, j)
main.EI(v, j)
main.ER(v, j)
main.ET(v, j)
end
main.EL(v)
end
end
for _, v in pairs(items['equipment']) do
if v.stage == file_stage then
if v.enabled and v['setting'] then
local v2 = settings.startup[v['setting']].value
if (v.stage == file_stage) and v.enabled and (v.max >= v.min) then
v.category = 'equipment'
if v2 >= v.min then
v.category = 'equipment'
for j=v.min, v2, 1 do
main.EEQ(v, j)
main.EI(v, j)
main.ER(v, j)
main.ET(v, j)
end
end
for j=v.min, v.max, 1 do
main.EEQ(v, j)
main.EI(v, j)
main.ER(v, j)
main.ET(v, j)
end
end
end