This commit is contained in:
2025-05-21 18:14:43 +09:00
parent c02cef3f7a
commit a725c8a68c
2 changed files with 10 additions and 4 deletions

View File

@@ -69,6 +69,16 @@ if mods['space-exploration'] and settings.startup['PHI-MB'].value and settings.s
end
end
if settings.startup['PHI-MB-EQUIPMENT'].value and settings.startup['PHI-MB-EQUIPMENT-SIZE'].value then
for _, e in pairs({'night-vision-equipment','energy-shield-equipment', 'battery-equipment', 'solar-panel-equipment', 'generator-equipment','active-defense-equipment', 'movement-bonus-equipment', 'roboport-equipment', 'belt-immunity-equipment'}) do
if data.raw[e] then
for _, v in pairs(data.raw[e]) do
v.shape = {width = 1, height = 1, type = 'full', points = {{0, 0}}}
end
end
end
end
for _, v in pairs(items['item']) do
if (v.stage == file_stage) and v.enabled and (v.max >= v.min) then
v.category = 'item'

View File

@@ -260,10 +260,6 @@ function main.EEQ(source, tier)
item.localised_name = (tier > 1 and {'phi-cl.combine', {'?', {'item-name.' .. source.ref_name}, {'name.' .. source.ref_name}}, tostring(tier)}) or {'?', {'item-name.' .. source.ref_name}, {'name.' .. source.ref_name}}
item.localised_description = {'?', {'item-description.' .. source.ref_name}, {'description.' .. source.ref_name}}
if settings.startup['PHI-MB-EQUIPMENT-SIZE'].value then
item.shape = {width = 1, height = 1, type = 'full', points = {{0, 0}}}
end
data:extend({item})
end