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