From 03c15ea5c96ae103d861216474c5c45d20e314e8 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 4 Jun 2026 01:06:30 +0900 Subject: [PATCH] . --- PHI-CL/data/b/gm-vp-c.lua | 76 +++++++++++++++++++-------------------- PHI-CL/data/b/gm-vp.lua | 37 ++++++++++--------- 2 files changed, 56 insertions(+), 57 deletions(-) diff --git a/PHI-CL/data/b/gm-vp-c.lua b/PHI-CL/data/b/gm-vp-c.lua index 41e276a..2ebca98 100644 --- a/PHI-CL/data/b/gm-vp-c.lua +++ b/PHI-CL/data/b/gm-vp-c.lua @@ -544,51 +544,51 @@ local items = { }, ['technology'] = { -- SPACE_AGE 0 - 'planet-discovery-vulcanus', - 'planet-discovery-gleba', - 'planet-discovery-fulgora', - 'planet-discovery-aquilo', - 'recycling', + ['planet-discovery-vulcanus'] = true, + ['planet-discovery-gleba'] = true, + ['planet-discovery-fulgora'] = true, + ['planet-discovery-aquilo'] = true, + ['recycling'] = true, -- SPACE_AGE 5 - 'lightning-collector', - 'tungsten-carbide', - 'tungsten-steel', - 'metallurgic-science-pack', - 'yumako', + ['lightning-collector'] = true, + ['tungsten-carbide'] = true, + ['tungsten-steel'] = true, + ['metallurgic-science-pack'] = true, + ['yumako'] = true, -- SPACE_AGE 10 - 'jellynut', - 'bioflux', - 'artificial-soil', - 'overgrowth-soil', - 'bacteria-cultivation', + ['jellynut'] = true, + ['bioflux'] = true, + ['artificial-soil'] = true, + ['overgrowth-soil'] = true, + ['bacteria-cultivation'] = true, -- SPACE_AGE 15 - 'bioflux-processing', - 'agricultural-science-pack', - 'captivity', - 'biter-egg-handling', - 'carbon-fiber', + ['bioflux-processing'] = true, + ['agricultural-science-pack'] = true, + ['captivity'] = true, + ['biter-egg-handling'] = true, + ['carbon-fiber'] = true, -- SPACE_AGE 20 - 'fish-breeding', - 'holmium-processing', - 'electromagnetic-science-pack', - 'rail-support-foundations', - 'lithium-processing', + ['fish-breeding'] = true, + ['holmium-processing'] = true, + ['electromagnetic-science-pack'] = true, + ['rail-support-foundations'] = true, + ['lithium-processing'] = true, -- SPACE_AGE 25 - 'quantum-processor', - 'cryogenic-science-pack', - 'captive-biter-spawner', - 'promethium-science-pack', - 'foundation', + ['quantum-processor'] = true, + ['cryogenic-science-pack'] = true, + ['captive-biter-spawner'] = true, + ['promethium-science-pack'] = true, + ['foundation'] = true, -- SPACE_AGE 30 - 'scrap-recycling-productivity', - 'biochamber', - 'space-platform-thruster', - 'space-platform', - 'asteroid-reprocessing', + ['scrap-recycling-productivity'] = true, + ['biochamber'] = true, + ['space-platform-thruster'] = true, + ['space-platform'] = true, + ['asteroid-reprocessing'] = true, -- SPACE_AGE 35 - 'advanced-asteroid-processing', - 'asteroid-productivity', - 'calcite-processing', + ['advanced-asteroid-processing'] = true, + ['asteroid-productivity'] = true, + ['calcite-processing'] = true, }, ['achievement'] = { -- SPACE_AGE 0 diff --git a/PHI-CL/data/b/gm-vp.lua b/PHI-CL/data/b/gm-vp.lua index 655bf59..d85e11b 100644 --- a/PHI-CL/data/b/gm-vp.lua +++ b/PHI-CL/data/b/gm-vp.lua @@ -393,28 +393,27 @@ if data.raw.item['ice'] then end -- GM-VP H 38 SPACE_AGE RESEARCH -for _, v in pairs(items['technology']) do - if data.raw.technology[v] then - data.raw.technology[v].hidden = true - data.raw.technology[v].hidden_in_factoriopedia = true - data.raw.technology[v].effects = nil +if data.raw.technology and items['technology'] then + for _, v in pairs(data.raw.technology) do + if items['technology'][v.name] then + v.hidden = true + v.hidden_in_factoriopedia = true + v.effects = nil - if data.raw.technology[v].research_trigger then - data.raw.technology[v].research_trigger = nil - data.raw.technology[v].unit = {count = 1000, time = 30, ingredients = {{'automation-science-pack', 1}}} - end + if v.research_trigger then + v.research_trigger = nil + v.unit = {count = 1000, time = 30, ingredients = {{'automation-science-pack', 1}}} + end - if data.raw.technology[v].unit and data.raw.technology[v].unit.ingredients then - data.raw.technology[v].unit.ingredients = {{'space-science-pack', 1}} - end - end -end + if v.unit and v.unit.ingredients then + v.unit.ingredients = {{'space-science-pack', 1}} + end -for _, tech in pairs(data.raw.technology) do - if tech.unit and tech.unit.ingredients then - for i = #tech.unit.ingredients, 1, -1 do - if items['technology_ingredient_removal'][tech.unit.ingredients[i][1]] then - table.remove(tech.unit.ingredients, i) + elseif v.unit and v.unit.ingredients then + for i = #v.unit.ingredients, 1, -1 do + if items['technology_ingredient_removal'][v.unit.ingredients[i][1]] then + table.remove(v.unit.ingredients, i) + end end end end