From a725c8a68cf9b064a002cb4ae6c4bf47e0dd7805 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 21 May 2025 18:14:43 +0900 Subject: [PATCH] . --- PHI-CL/data-updates.lua | 10 ++++++++++ PHI-CL/main.lua | 4 ---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/PHI-CL/data-updates.lua b/PHI-CL/data-updates.lua index 5b49117..88ce3bb 100644 --- a/PHI-CL/data-updates.lua +++ b/PHI-CL/data-updates.lua @@ -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' diff --git a/PHI-CL/main.lua b/PHI-CL/main.lua index 0f85458..54c22ec 100644 --- a/PHI-CL/main.lua +++ b/PHI-CL/main.lua @@ -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