This commit is contained in:
2026-05-06 21:47:14 +09:00
parent 94fc8753b1
commit a85f68842d
2 changed files with 53 additions and 42 deletions
+3 -3
View File
@@ -98,7 +98,7 @@ if data.raw['electric-energy-interface']['electric-energy-interface'] then
item.name = v .. '-energy-void' item.name = v .. '-energy-void'
item.place_result = item.name item.place_result = item.name
item.subgroup = 'energy' item.subgroup = 'energy'
item.localised_name = {'name.' .. item.name .. '-energy-void'} item.localised_name = {'name.' .. item.name}
data:extend({item}) data:extend({item})
local entity = table.deepcopy(data.raw['electric-energy-interface']['electric-energy-interface']) 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_production = '0W'
entity.energy_usage = '1PW' entity.energy_usage = '1PW'
entity.gui_mode = 'none' entity.gui_mode = 'none'
entity.localised_name = {'name.' .. item.name .. '-energy-void'} entity.localised_name = {'name.' .. item.name}
data:extend({entity}) data:extend({entity})
data:extend({{ data:extend({{
@@ -125,7 +125,7 @@ if data.raw['electric-energy-interface']['electric-energy-interface'] then
ingredients = {{type = 'item', name = 'accumulator', amount = 1}}, ingredients = {{type = 'item', name = 'accumulator', amount = 1}},
results = {{type = 'item', name = item.name, amount = 1}}, results = {{type = 'item', name = item.name, amount = 1}},
main_product = item.name, main_product = item.name,
localised_name = {'name.' .. item.name .. '-energy-void'} localised_name = {'name.' .. item.name}
}}) }})
end end
end end
+50 -39
View File
@@ -1,4 +1,5 @@
local items = require('gm-vp-c') local items = require('gm-vp-c')
local item_sounds = require('__base__/prototypes/item_sounds')
local mod_tint = { local mod_tint = {
[2] = {r=140, g=142, b=200}, [2] = {r=140, g=142, b=200},
[3] = {r=242, g=161, b=26}, [3] = {r=242, g=161, b=26},
@@ -23,6 +24,8 @@ end
-- MI C 1 BASE UTILITY_CONSTANTS -- MI C 1 BASE UTILITY_CONSTANTS
data.raw['utility-constants'].default.default_pipeline_extent = math.max(settings.startup['PHI-MI-PIPE-EXTENT'].value, 960) 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 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 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 v.enter_drop_mode_if_held_stack_spoiled = true
end 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 for _, v in pairs(data.raw.recipe) do
v.surface_conditions = nil 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 data.raw.item[v .. '-asteroid-chunk'].hidden_in_factoriopedia = true
end 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 for k, v in pairs(items['technology_vp']) do
if data.raw.technology[k] then if data.raw.technology[k] then
data.raw.technology[k].hidden = v data.raw.technology[k].hidden = v