From 5ead61f7af37452bc11b027b1cbf4679ce305aa7 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 19 Mar 2026 20:22:11 +0900 Subject: [PATCH] . --- PHI-CL/config.lua | 24 ------------------------ PHI-CL/data/b/mbq-c.lua | 16 ++++++++++++++++ PHI-CL/data/b/mbq.lua | 1 + PHI-CL/data/u/mbq-c.lua | 2 ++ PHI-CL/data/u/mbq.lua | 20 ++++++++++++++++++++ 5 files changed, 39 insertions(+), 24 deletions(-) diff --git a/PHI-CL/config.lua b/PHI-CL/config.lua index 5cc2a36..1585fd9 100644 --- a/PHI-CL/config.lua +++ b/PHI-CL/config.lua @@ -370,30 +370,6 @@ local items = { } if mods and mods['space-age'] then - items['equipment']['fusion-reactor-equipment'] = { - enabled = settings.startup['PHI-MB-EQUIPMENT'].value, - stage = 1, - mod = 'space-age', - type = 'generator-equipment', - name = 'fusion-reactor', - ref_name = 'fusion-reactor-equipment', - tech = 'fusion-reactor-equipment', - min = 2, - max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value - } - - items['equipment']['toolbelt-equipment'] = { - enabled = settings.startup['PHI-MB-EQUIPMENT'].value, - stage = 1, - mod = 'space-age', - type = 'inventory-bonus-equipment', - name = 'toolbelt', - ref_name = 'toolbelt-equipment', - tech = 'toolbelt-equipment', - min = 2, - max = math.min(tonumber(settings.startup['PHI-MB-EQUIPMENT-TIER'].value) or 1, 2) - } - items['equipment']['battery-equipment'].ref_name = 'battery-mk3-equipment' items['equipment']['battery-equipment'].tech = 'battery-mk3-equipment' items['equipment']['battery-equipment'].min = 4 diff --git a/PHI-CL/data/b/mbq-c.lua b/PHI-CL/data/b/mbq-c.lua index 33d2695..78516cf 100644 --- a/PHI-CL/data/b/mbq-c.lua +++ b/PHI-CL/data/b/mbq-c.lua @@ -69,5 +69,21 @@ return { max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value, base = 30, graphics_name = 'solar-panel-equipment' + }, + -- MBQ A 7 SPACE_AGE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT + ['fusion-reactor-equipment'] = { + mod = 'space-age', + type = 'generator-equipment', + name = 'fusion-reactor', + tech = 'fusion-reactor-equipment', + max = settings.startup['PHI-MB-EQUIPMENT-TIER'].value + }, + -- MBQ A 1 SPACE_AGE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT + ['toolbelt-equipment'] = { + mod = 'space-age', + type = 'inventory-bonus-equipment', + name = 'toolbelt', + tech = 'toolbelt-equipment', + max = math.min(tonumber(settings.startup['PHI-MB-EQUIPMENT-TIER'].value) or 1, 2) } } diff --git a/PHI-CL/data/b/mbq.lua b/PHI-CL/data/b/mbq.lua index 00655f7..8b85c8d 100644 --- a/PHI-CL/data/b/mbq.lua +++ b/PHI-CL/data/b/mbq.lua @@ -100,6 +100,7 @@ if settings.startup['PHI-MB-EQUIPMENT-ARMOR'].value then end -- MBQ A 48 BASE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT +-- MBQ A 8 SPACE_AGE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT for _, v in pairs(items) do v.mod = v.mod or 'base' v.min = v.min or 2 diff --git a/PHI-CL/data/u/mbq-c.lua b/PHI-CL/data/u/mbq-c.lua index e69de29..97aeadd 100644 --- a/PHI-CL/data/u/mbq-c.lua +++ b/PHI-CL/data/u/mbq-c.lua @@ -0,0 +1,2 @@ +return { +} diff --git a/PHI-CL/data/u/mbq.lua b/PHI-CL/data/u/mbq.lua index e69de29..fed339a 100644 --- a/PHI-CL/data/u/mbq.lua +++ b/PHI-CL/data/u/mbq.lua @@ -0,0 +1,20 @@ +local main = require 'main' +local items = require 'mbq-c' + +-- MBQ A 48 BASE ARMOR_EQUIPMENT,RECIPE,RESEARCH_EFFECT +for _, v in pairs(items) do + v.mod = v.mod or 'base' + v.min = v.min or 2 + + if v.enabled and (v.mod and mods[v.mod]) and (v.max >= v.min) then + v.category = 'equipment' + v.ref_name = v.ref_name or v.name .. '-equipment' + + 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