From a85f68842d6c2c0590f359209a39669561105055 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 6 May 2026 21:47:14 +0900 Subject: [PATCH] . --- PHI-CL/data/b/ct.lua | 6 +-- PHI-CL/data/b/gm-vp.lua | 89 +++++++++++++++++++++++------------------ 2 files changed, 53 insertions(+), 42 deletions(-) diff --git a/PHI-CL/data/b/ct.lua b/PHI-CL/data/b/ct.lua index eff5c5a..31bac9b 100644 --- a/PHI-CL/data/b/ct.lua +++ b/PHI-CL/data/b/ct.lua @@ -98,7 +98,7 @@ if data.raw['electric-energy-interface']['electric-energy-interface'] then item.name = v .. '-energy-void' item.place_result = item.name item.subgroup = 'energy' - item.localised_name = {'name.' .. item.name .. '-energy-void'} + item.localised_name = {'name.' .. item.name} data:extend({item}) local entity = table.deepcopy(data.raw['electric-energy-interface']['electric-energy-interface']) @@ -112,7 +112,7 @@ if data.raw['electric-energy-interface']['electric-energy-interface'] then entity.energy_production = '0W' entity.energy_usage = '1PW' entity.gui_mode = 'none' - entity.localised_name = {'name.' .. item.name .. '-energy-void'} + entity.localised_name = {'name.' .. item.name} data:extend({entity}) data:extend({{ @@ -125,7 +125,7 @@ if data.raw['electric-energy-interface']['electric-energy-interface'] then ingredients = {{type = 'item', name = 'accumulator', amount = 1}}, results = {{type = 'item', name = item.name, amount = 1}}, main_product = item.name, - localised_name = {'name.' .. item.name .. '-energy-void'} + localised_name = {'name.' .. item.name} }}) end end diff --git a/PHI-CL/data/b/gm-vp.lua b/PHI-CL/data/b/gm-vp.lua index 8306d18..feb44f4 100644 --- a/PHI-CL/data/b/gm-vp.lua +++ b/PHI-CL/data/b/gm-vp.lua @@ -1,4 +1,5 @@ local items = require('gm-vp-c') +local item_sounds = require('__base__/prototypes/item_sounds') local mod_tint = { [2] = {r=140, g=142, b=200}, [3] = {r=242, g=161, b=26}, @@ -23,6 +24,8 @@ end -- MI C 1 BASE UTILITY_CONSTANTS data.raw['utility-constants'].default.default_pipeline_extent = math.max(settings.startup['PHI-MI-PIPE-EXTENT'].value, 960) +-- GM-SAP C 5 BASE ENTITY +-- GM-SAP C 1 SPACE_AGE ENTITY local bss = (data.raw['inserter']['stack-inserter'] and data.raw['inserter']['stack-inserter'].max_belt_stack_size) or 1 for _, v in pairs(data.raw['inserter']) do @@ -31,6 +34,53 @@ for _, v in pairs(data.raw['inserter']) do v.enter_drop_mode_if_held_stack_spoiled = true end +-- GM-SAP C 1 BASE TECHNOLOGY_EFFECT +if data.raw.technology['space-science-pack'] then + data.raw.technology['space-science-pack'].effects = {{type = 'unlock-recipe', recipe = 'satellite'}} +end + +-- GM-SAP C 1 BASE TOOL +if data.raw.tool['space-science-pack'] then + data.raw.tool['space-science-pack'].rocket_launch_products = {{type = 'item', name = 'raw-fish', amount = 1}} + data.raw.tool['space-science-pack'].send_to_orbit_mode = 'automated' +end + +data.raw['rocket-silo']['rocket-silo'].launch_to_space_platforms = false +data.raw['rocket-silo']['rocket-silo'].rocket_parts_required = 100 +data.raw['rocket-silo']['rocket-silo'].to_be_inserted_to_rocket_inventory_size = 1 +data.raw['rocket-silo']['rocket-silo'].logistic_trash_inventory_size = 0 +data.raw['rocket-silo-rocket']['rocket-silo-rocket'].inventory_size = 0 + +-- GM-SAP A 2 BASE RECIPE +data:extend({ + { + type = 'item', + name = 'satellite', + icon = '__base__/graphics/icons/satellite.png', + subgroup = 'space-related', + order = 'd[rocket-parts]-e[satellite]', + inventory_move_sound = item_sounds.mechanical_inventory_move, + pick_sound = item_sounds.mechanical_inventory_pickup, + drop_sound = item_sounds.mechanical_inventory_move, + stack_size = 1, + weight = 1 * tons, + rocket_launch_products = {{type = 'item', name = 'space-science-pack', amount = 1000}}, + send_to_orbit_mode = 'automated' + }, + { + type = 'recipe', + name = 'satellite', + energy_required = 5, + enabled = false, + category = 'crafting', + ingredients = {{type = 'item', name = 'low-density-structure', amount = 100}, {type = 'item', name = 'solar-panel', amount = 100}, {type = 'item', name = 'accumulator', amount = 100}, {type = 'item', name = 'radar', amount = 5}, {type = 'item', name = 'processing-unit', amount = 100}, {type = 'item', name = 'rocket-fuel', amount = 50}}, + results = {{type = 'item', name = 'satellite', amount = 1}}, + requester_paste_multiplier = 1 + } +}) + + + for _, v in pairs(data.raw.recipe) do v.surface_conditions = nil @@ -553,45 +603,6 @@ for _, v in pairs({'carbonic', 'metallic', 'promethium', 'oxide'}) do data.raw.item[v .. '-asteroid-chunk'].hidden_in_factoriopedia = true end -data.raw.technology['space-science-pack'].effects = {{type = 'unlock-recipe', recipe = 'satellite'}} -data.raw['rocket-silo']['rocket-silo'].launch_to_space_platforms = false -data.raw['rocket-silo']['rocket-silo'].rocket_parts_required = 100 -data.raw['rocket-silo']['rocket-silo'].to_be_inserted_to_rocket_inventory_size = 1 -data.raw['rocket-silo']['rocket-silo'].logistic_trash_inventory_size = 0 -data.raw['rocket-silo-rocket']['rocket-silo-rocket'].inventory_size = 0 - -local item_sounds = require('__base__/prototypes/item_sounds') - -data:extend({ - { - type = 'item', - name = 'satellite', - icon = '__base__/graphics/icons/satellite.png', - subgroup = 'space-related', - order = 'd[rocket-parts]-e[satellite]', - inventory_move_sound = item_sounds.mechanical_inventory_move, - pick_sound = item_sounds.mechanical_inventory_pickup, - drop_sound = item_sounds.mechanical_inventory_move, - stack_size = 1, - weight = 1 * tons, - rocket_launch_products = {{type = 'item', name = 'space-science-pack', amount = 1000}}, - send_to_orbit_mode = 'automated' - }, - { - type = 'recipe', - name = 'satellite', - energy_required = 5, - enabled = false, - category = 'crafting', - ingredients = {{type = 'item', name = 'low-density-structure', amount = 100}, {type = 'item', name = 'solar-panel', amount = 100}, {type = 'item', name = 'accumulator', amount = 100}, {type = 'item', name = 'radar', amount = 5}, {type = 'item', name = 'processing-unit', amount = 100}, {type = 'item', name = 'rocket-fuel', amount = 50}}, - results = {{type = 'item', name = 'satellite', amount = 1}}, - requester_paste_multiplier = 1 - } -}) - -data.raw['tool']['space-science-pack'].rocket_launch_products = {{type = 'item', name = 'raw-fish', amount = 1}} -data.raw['tool']['space-science-pack'].send_to_orbit_mode = 'automated' - for k, v in pairs(items['technology_vp']) do if data.raw.technology[k] then data.raw.technology[k].hidden = v