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