From aafb6bf9f4694cc6c3b764424007c05650df3b2b Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 20 May 2025 23:24:33 +0900 Subject: [PATCH] . --- PHI-CL/config.lua | 8 +------- PHI-CL/data.lua | 9 +++++++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/PHI-CL/config.lua b/PHI-CL/config.lua index 2f7c090..735eaea 100644 --- a/PHI-CL/config.lua +++ b/PHI-CL/config.lua @@ -466,13 +466,7 @@ local items = { ['promethium-science-pack'] = true, ['foundation'] = true, ['scrap-recycling-productivity'] = true, - ['biochamber'] = true, - ['electric-weapons-damage-1'] = true, - ['electric-weapons-damage-2'] = true, - ['electric-weapons-damage-3'] = true, - ['electric-weapons-damage-4'] = true, - ['artillery-shell-damage-1'] = true, - ['railgun-damage-1'] = true, + ['biochamber'] = true }, ['recipe'] = { ['thruster'] = true, diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index c668767..784d373 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -534,8 +534,13 @@ if mods['space-age'] and ((settings.startup['PHI-SA'].value and settings.startup table.insert(data.raw.technology['physical-projectile-damage-6'].effects, {type = 'ammo-damage', ammo_category = 'railgun', modifier = 0.2}) table.insert(data.raw.technology['physical-projectile-damage-7'].effects, {type = 'ammo-damage', ammo_category = 'railgun', modifier = 0.4}) - data.raw.technology['artillery-shell-damage-1'].effects = nil - data.raw.technology['railgun-damage-1'].effects = nil + for k, v in pairs({'artillery-shell-damage-1', 'railgun-damage-1', 'electric-weapons-damage-1', 'electric-weapons-damage-2', 'electric-weapons-damage-3', 'electric-weapons-damage-4'}) do + if data.raw.technology[k] then + data.raw.technology[k].hidden = v + data.raw.technology[k].hidden_in_factoriopedia = v + data.raw.technology[k].effects = nil + end + end end if settings.startup['PHI-SA'].value and settings.startup['PHI-SA-SPOIL-FREEZE'].value and settings.startup['PHI-SA-SPOIL'].value and mods['space-age'] then