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

@@ -391,41 +391,29 @@ if settings.startup['PHI-MB'].value and mods['space-exploration'] and settings.s
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