mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -376,13 +376,23 @@ local items = {
|
|||||||
['promethium-science-pack'] = true,
|
['promethium-science-pack'] = true,
|
||||||
['space-science-pack'] = true
|
['space-science-pack'] = true
|
||||||
},
|
},
|
||||||
['technology'] = {
|
['resource'] = {
|
||||||
['planet-discovery-vulcanus'] = true,
|
['tungsten-ore'] = true,
|
||||||
['planet-discovery-gleba'] = true,
|
['calcite'] = true
|
||||||
['planet-discovery-fulgora'] = true,
|
},
|
||||||
['planet-discovery-aquilo'] = true,
|
['technology_1'] = {
|
||||||
['space-platform'] = true,
|
['planet-discovery-vulcanus'] = true,
|
||||||
['space-platform-thruster'] = true,
|
['planet-discovery-gleba'] = true,
|
||||||
|
['planet-discovery-fulgora'] = true,
|
||||||
|
['planet-discovery-aquilo'] = true,
|
||||||
|
['space-platform'] = true,
|
||||||
|
['space-platform-thruster'] = true,
|
||||||
|
['lightning-collector'] = true,
|
||||||
|
['asteroid-reprocessing'] = true,
|
||||||
|
['advanced-asteroid-processing'] = true,
|
||||||
|
['asteroid-productivity'] = true
|
||||||
|
},
|
||||||
|
['technology_2'] = {
|
||||||
['calcite-processing'] = true,
|
['calcite-processing'] = true,
|
||||||
['tungsten-carbide'] = true,
|
['tungsten-carbide'] = true,
|
||||||
['tungsten-steel'] = true,
|
['tungsten-steel'] = true,
|
||||||
@@ -403,17 +413,13 @@ local items = {
|
|||||||
['holmium-processing'] = true,
|
['holmium-processing'] = true,
|
||||||
['electromagnetic-plant'] = true,
|
['electromagnetic-plant'] = true,
|
||||||
['electromagnetic-science-pack'] = true,
|
['electromagnetic-science-pack'] = true,
|
||||||
['lightning-collector'] = true,
|
|
||||||
['rail-support-foundations'] = true,
|
['rail-support-foundations'] = true,
|
||||||
['lithium-processing'] = true,
|
['lithium-processing'] = true,
|
||||||
['asteroid-reprocessing'] = true,
|
|
||||||
['advanced-asteroid-processing'] = true,
|
|
||||||
['quantum-processor'] = true,
|
['quantum-processor'] = true,
|
||||||
['cryogenic-science-pack'] = true,
|
['cryogenic-science-pack'] = true,
|
||||||
['captive-biter-spawner'] = true,
|
['captive-biter-spawner'] = true,
|
||||||
['promethium-science-pack'] = true,
|
['promethium-science-pack'] = true,
|
||||||
['foundation'] = true,
|
['foundation'] = true,
|
||||||
['asteroid-productivity'] = true,
|
|
||||||
['scrap-recycling-productivity'] = true,
|
['scrap-recycling-productivity'] = true,
|
||||||
['recycling'] = true,
|
['recycling'] = true,
|
||||||
['heating-tower'] = true,
|
['heating-tower'] = true,
|
||||||
|
|||||||
306
PHI-CL/data.lua
306
PHI-CL/data.lua
@@ -349,6 +349,10 @@ if settings.startup['PHI-SA'].value then
|
|||||||
}})
|
}})
|
||||||
|
|
||||||
table.insert(data.raw.technology['agriculture'].effects, {type='unlock-recipe', recipe='spoilage-from-nutrients'})
|
table.insert(data.raw.technology['agriculture'].effects, {type='unlock-recipe', recipe='spoilage-from-nutrients'})
|
||||||
|
|
||||||
|
data.raw['tips-and-tricks-item']['spoilables'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['spoilables-result'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['spoilables-research'] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if (settings.startup['PHI-SA-REQUIREMENT'].value or settings.startup['PHI-SA-VANILLA'].value) and mods['space-age'] then
|
if (settings.startup['PHI-SA-REQUIREMENT'].value or settings.startup['PHI-SA-VANILLA'].value) and mods['space-age'] then
|
||||||
@@ -428,6 +432,137 @@ if settings.startup['PHI-SA'].value then
|
|||||||
}})
|
}})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for _, v in pairs({'vulcanus', 'gleba', 'fulgora', 'aquilo'}) do
|
||||||
|
data.raw.planet[v].map_gen_settings = nil
|
||||||
|
data.raw.planet[v].hidden = true
|
||||||
|
data.raw.planet[v].hidden_in_factoriopedia = true
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, v in pairs(data.raw['space-location']) do
|
||||||
|
v.hidden = true
|
||||||
|
v.hidden_in_factoriopedia = true
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, v in pairs(data.raw['space-connection']) do
|
||||||
|
v.hidden = true
|
||||||
|
v.hidden_in_factoriopedia = true
|
||||||
|
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
|
||||||
|
|
||||||
|
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.technology['rocket-silo'].effects = {{type = 'unlock-recipe', recipe = 'rocket-silo'}, {type = 'unlock-recipe', recipe = 'rocket-part'}, {type = 'unlock-recipe', recipe = 'cargo-landing-pad'}}
|
||||||
|
data.raw.technology['space-science-pack'].research_trigger = nil
|
||||||
|
data.raw.technology['space-science-pack'].prerequisites = {'rocket-silo'}
|
||||||
|
data.raw.technology['space-science-pack'].effects = {{type='unlock-recipe', recipe='satellite'}}
|
||||||
|
data.raw.technology['space-science-pack'].unit = {count = 400, time = 30, ingredients={{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'chemical-science-pack', 1}}}
|
||||||
|
|
||||||
|
for k, v in pairs(items['space-age']['technology_1']) do
|
||||||
|
if data.raw.technology[k] then
|
||||||
|
data.raw.technology[k].hidden = v
|
||||||
|
data.raw.technology[k].hidden_in_factoriopedia = v
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
data.raw['autoplace-control']['vulcanus_coal'] = nil
|
||||||
|
data.raw['autoplace-control']['sulfuric_acid_geyser'] = nil
|
||||||
|
data.raw['autoplace-control']['gleba_stone'] = nil
|
||||||
|
data.raw['autoplace-control']['aquilo_crude_oil'] = nil
|
||||||
|
|
||||||
|
data.raw['autoplace-control']['gleba_water'] = nil
|
||||||
|
data.raw['autoplace-control']['fulgora_islands'] = nil
|
||||||
|
data.raw['autoplace-control']['gleba_cliffs'] = nil
|
||||||
|
data.raw['autoplace-control']['fulgora_cliffs'] = nil
|
||||||
|
|
||||||
|
-- 'sulfuric_acid_geyser'
|
||||||
|
|
||||||
|
for _, v in pairs({'calcite', 'fluorine_vent', 'lithium_brine', 'scrap', 'tungsten_ore'}) do
|
||||||
|
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls[v] = {}
|
||||||
|
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.entity.settings[v:gsub('_', '-')] = {}
|
||||||
|
end
|
||||||
|
|
||||||
|
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls['gleba_enemy_base'] = {}
|
||||||
|
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls['gleba_plants'] = {}
|
||||||
|
|
||||||
|
for _, v in pairs({'natural-yumako-soil', 'natural-jellynut-soil', 'wetland-yumako', 'wetland-jellynut', 'lowland-brown-blubber', 'lowland-olive-blubber', 'lowland-olive-blubber-2', 'lowland-olive-blubber-3', 'lowland-cream-red', 'lowland-red-vein', 'lowland-red-vein-2', 'lowland-red-vein-3', 'lowland-red-vein-4', 'lowland-red-vein-dead', 'lowland-red-infection', 'ammoniacal-ocean', 'ammoniacal-ocean-2'}) do
|
||||||
|
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.tile.settings[v] = {}
|
||||||
|
end
|
||||||
|
|
||||||
|
data.raw.planet['nauvis'].map_gen_settings.territory_settings = {
|
||||||
|
units = {'small-demolisher', 'medium-demolisher', 'big-demolisher'},
|
||||||
|
territory_index_expression = 'demolisher_territory_expression',
|
||||||
|
territory_variation_expression = 'demolisher_variation_expression',
|
||||||
|
minimum_territory_size = 10
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, v in pairs({'platform_science', 'platform_moving', 'platform_messy_nuclear', 'vulcanus_lava_forge', 'vulcanus_crossing', 'vulcanus_punishmnent', 'vulcanus_sulfur_drop', 'gleba_agri_towers', 'gleba_pentapod_ponds', 'gleba_egg_escape', 'gleba_farm_attack', 'gleba_grotto', 'fulgora_city_crossing', 'fulgora_recycling_hell', 'fulgora_nightfall', 'fulgora_race', 'aquilo_send_help', 'aquilo_starter'}) do
|
||||||
|
data.raw['utility-constants']['default'].main_menu_simulations[v] = nil
|
||||||
|
end
|
||||||
|
|
||||||
|
data.raw['tips-and-tricks-item']['fulgora-briefing'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['lightning-mechanics'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['gleba-briefing'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['vulcanus-briefing'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['aquilo-briefing'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['heating-mechanics'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['space-platform'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['orbital-logistics'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['removing-trash-in-space'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['space-science'] = nil
|
||||||
|
data.raw['tips-and-tricks-item']['asteroid-defense'] = nil
|
||||||
|
|
||||||
|
data.raw['dont-build-entity-achievement']['logistic-network-embargo'].research_with = nil
|
||||||
|
data.raw['create-platform-achievement']['reach-for-the-stars'] = nil
|
||||||
|
data.raw['change-surface-achievement']['visit-fulgora'] = nil
|
||||||
|
data.raw['change-surface-achievement']['visit-gleba'] = nil
|
||||||
|
data.raw['change-surface-achievement']['visit-vulcanus'] = nil
|
||||||
|
data.raw['change-surface-achievement']['visit-aquilo'] = nil
|
||||||
|
data.raw['complete-objective-achievement']['second-star-to-the-right-and-straight-on-till-morning'] = nil
|
||||||
|
data.raw['space-connection-distance-traveled-achievement']['shattered-planet-1'] = nil
|
||||||
|
data.raw['space-connection-distance-traveled-achievement']['shattered-planet-2'] = nil
|
||||||
|
data.raw['space-connection-distance-traveled-achievement']['shattered-planet-3'] = nil
|
||||||
|
data.raw['dont-research-before-researching-achievement']['rush-to-space'] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-SA-GENERIC'].value or settings.startup['PHI-SA-VANILLA'].value then
|
if settings.startup['PHI-SA-GENERIC'].value or settings.startup['PHI-SA-VANILLA'].value then
|
||||||
@@ -579,69 +714,23 @@ if settings.startup['PHI-SA'].value then
|
|||||||
|
|
||||||
if settings.startup['PHI-SA-VANILLA'].value then
|
if settings.startup['PHI-SA-VANILLA'].value then
|
||||||
if mods['space-age'] then
|
if mods['space-age'] then
|
||||||
for _, v in pairs({'vulcanus', 'gleba', 'fulgora', 'aquilo'}) do
|
for _, v in pairs({'calcite', 'fluorine_vent', 'lithium_brine', 'scrap', 'tungsten_ore'}) do
|
||||||
data.raw.planet[v].map_gen_settings = nil
|
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls[v] = nil
|
||||||
data.raw.planet[v].hidden = true
|
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.entity.settings[v:gsub('_', '-')] = nil
|
||||||
data.raw.planet[v].hidden_in_factoriopedia = true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(data.raw['space-location']) do
|
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls['gleba_enemy_base'] = nil
|
||||||
v.hidden = true
|
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls['gleba_plants'] = nil
|
||||||
v.hidden_in_factoriopedia = true
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, v in pairs(data.raw['space-connection']) do
|
for _, v in pairs({'natural-yumako-soil', 'natural-jellynut-soil', 'wetland-yumako', 'wetland-jellynut', 'lowland-brown-blubber', 'lowland-olive-blubber', 'lowland-olive-blubber-2', 'lowland-olive-blubber-3', 'lowland-cream-red', 'lowland-red-vein', 'lowland-red-vein-2', 'lowland-red-vein-3', 'lowland-red-vein-4', 'lowland-red-vein-dead', 'lowland-red-infection', 'ammoniacal-ocean', 'ammoniacal-ocean-2'}) do
|
||||||
v.hidden = true
|
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.tile.settings[v] = nil
|
||||||
v.hidden_in_factoriopedia = true
|
|
||||||
end
|
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
|
|
||||||
|
|
||||||
if settings.startup['PHI-MI-LANDFILL'].value > 20 then
|
if settings.startup['PHI-MI-LANDFILL'].value > 20 then
|
||||||
data.raw.recipe['landfill'].ingredients = {{type='item', name='stone', amount=20}}
|
data.raw.recipe['landfill'].ingredients = {{type='item', name='stone', amount=20}}
|
||||||
end
|
end
|
||||||
|
|
||||||
local item_sounds = require('__base__/prototypes/item_sounds')
|
data.raw.technology['space-science-pack'].unit = {count = 2000, time = 30, ingredients={{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'chemical-science-pack', 1}, {'production-science-pack', 1}, {'utility-science-pack', 1}}}
|
||||||
|
|
||||||
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.technology['cliff-explosives'].effects = {{type='unlock-recipe', recipe='cliff-explosives'}, {type = 'cliff-deconstruction-enabled', modifier = true}}
|
data.raw.technology['cliff-explosives'].effects = {{type='unlock-recipe', recipe='cliff-explosives'}, {type = 'cliff-deconstruction-enabled', modifier = true}}
|
||||||
data.raw.technology['logistic-system'].prerequisites = {'logistic-robotics'}
|
data.raw.technology['logistic-system'].prerequisites = {'logistic-robotics'}
|
||||||
data.raw.technology['logistic-system'].unit.ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'chemical-science-pack', 1}, {'utility-science-pack', 1}}
|
data.raw.technology['logistic-system'].unit.ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'chemical-science-pack', 1}, {'utility-science-pack', 1}}
|
||||||
@@ -659,11 +748,6 @@ if settings.startup['PHI-SA'].value then
|
|||||||
data.raw.technology['worker-robots-speed-6'].unit.ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'chemical-science-pack', 1}, {'production-science-pack', 1}, {'utility-science-pack', 1}}
|
data.raw.technology['worker-robots-speed-6'].unit.ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'chemical-science-pack', 1}, {'production-science-pack', 1}, {'utility-science-pack', 1}}
|
||||||
data.raw.technology['worker-robots-speed-7'].prerequisites = {'worker-robots-speed-6', 'space-science-pack'}
|
data.raw.technology['worker-robots-speed-7'].prerequisites = {'worker-robots-speed-6', 'space-science-pack'}
|
||||||
data.raw.technology['worker-robots-speed-7'].unit.ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'chemical-science-pack', 1}, {'production-science-pack', 1}, {'utility-science-pack', 1}, {'space-science-pack', 1}}
|
data.raw.technology['worker-robots-speed-7'].unit.ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'chemical-science-pack', 1}, {'production-science-pack', 1}, {'utility-science-pack', 1}, {'space-science-pack', 1}}
|
||||||
data.raw.technology['rocket-silo'].effects = {{type = 'unlock-recipe', recipe = 'rocket-silo'}, {type = 'unlock-recipe', recipe = 'rocket-part'}, {type = 'unlock-recipe', recipe = 'cargo-landing-pad'}}
|
|
||||||
data.raw.technology['space-science-pack'].research_trigger = nil
|
|
||||||
data.raw.technology['space-science-pack'].prerequisites = {'rocket-silo'}
|
|
||||||
data.raw.technology['space-science-pack'].effects = {{type='unlock-recipe', recipe='satellite'}}
|
|
||||||
data.raw.technology['space-science-pack'].unit = {count = 2000, time = 30, ingredients={{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'chemical-science-pack', 1}, {'production-science-pack', 1}, {'utility-science-pack', 1}}}
|
|
||||||
data.raw.technology['atomic-bomb'].unit.ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'military-science-pack', 1}, {'chemical-science-pack', 1}, {'utility-science-pack', 1}}
|
data.raw.technology['atomic-bomb'].unit.ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'military-science-pack', 1}, {'chemical-science-pack', 1}, {'utility-science-pack', 1}}
|
||||||
data.raw.technology['energy-shield-mk2-equipment'].prerequisites = {'energy-shield-equipment', 'military-4', 'power-armor'}
|
data.raw.technology['energy-shield-mk2-equipment'].prerequisites = {'energy-shield-equipment', 'military-4', 'power-armor'}
|
||||||
data.raw.technology['personal-roboport-mk2-equipment'].prerequisites = {'personal-roboport-equipment'}
|
data.raw.technology['personal-roboport-mk2-equipment'].prerequisites = {'personal-roboport-equipment'}
|
||||||
@@ -730,7 +814,7 @@ if settings.startup['PHI-SA'].value then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if items['space-age']['technology'][v.name] then
|
if items['space-age']['technology_2'][v.name] then
|
||||||
data.raw.technology[v.name].hidden = true
|
data.raw.technology[v.name].hidden = true
|
||||||
data.raw.technology[v.name].hidden_in_factoriopedia = true
|
data.raw.technology[v.name].hidden_in_factoriopedia = true
|
||||||
end
|
end
|
||||||
@@ -849,41 +933,16 @@ if settings.startup['PHI-SA'].value then
|
|||||||
data.raw.capsule['yumako-mash'].hidden = true
|
data.raw.capsule['yumako-mash'].hidden = true
|
||||||
data.raw.capsule['yumako-mash'].hidden_in_factoriopedia = true
|
data.raw.capsule['yumako-mash'].hidden_in_factoriopedia = true
|
||||||
|
|
||||||
data.raw['tips-and-tricks-item']['fulgora-briefing'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['lightning-mechanics'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['gleba-briefing'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['agriculture'] = nil
|
data.raw['tips-and-tricks-item']['agriculture'] = nil
|
||||||
data.raw['tips-and-tricks-item']['vulcanus-briefing'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['lava-processing'] = nil
|
data.raw['tips-and-tricks-item']['lava-processing'] = nil
|
||||||
data.raw['tips-and-tricks-item']['aquilo-briefing'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['heating-mechanics'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['space-platform'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['orbital-logistics'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['removing-trash-in-space'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['space-science'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['asteroid-defense'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['spoilables'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['spoilables-result'] = nil
|
|
||||||
data.raw['tips-and-tricks-item']['spoilables-research'] = nil
|
|
||||||
|
|
||||||
data.raw['dont-build-entity-achievement']['logistic-network-embargo'].research_with = nil
|
|
||||||
data.raw['create-platform-achievement']['reach-for-the-stars'] = nil
|
|
||||||
data.raw['change-surface-achievement']['visit-fulgora'] = nil
|
|
||||||
data.raw['change-surface-achievement']['visit-gleba'] = nil
|
|
||||||
data.raw['change-surface-achievement']['visit-vulcanus'] = nil
|
|
||||||
data.raw['change-surface-achievement']['visit-aquilo'] = nil
|
|
||||||
data.raw['complete-objective-achievement']['second-star-to-the-right-and-straight-on-till-morning'] = nil
|
|
||||||
data.raw['group-attack-achievement']['it-stinks-and-they-do-like-it'] = nil
|
data.raw['group-attack-achievement']['it-stinks-and-they-do-like-it'] = nil
|
||||||
data.raw['group-attack-achievement']['get-off-my-lawn'] = nil
|
data.raw['group-attack-achievement']['get-off-my-lawn'] = nil
|
||||||
data.raw['space-connection-distance-traveled-achievement']['shattered-planet-1'] = nil
|
|
||||||
data.raw['space-connection-distance-traveled-achievement']['shattered-planet-2'] = nil
|
|
||||||
data.raw['space-connection-distance-traveled-achievement']['shattered-planet-3'] = nil
|
|
||||||
data.raw['research-with-science-pack-achievement']['research-with-metallurgics'] = nil
|
data.raw['research-with-science-pack-achievement']['research-with-metallurgics'] = nil
|
||||||
data.raw['research-with-science-pack-achievement']['research-with-agriculture'] = nil
|
data.raw['research-with-science-pack-achievement']['research-with-agriculture'] = nil
|
||||||
data.raw['research-with-science-pack-achievement']['research-with-electromagnetics'] = nil
|
data.raw['research-with-science-pack-achievement']['research-with-electromagnetics'] = nil
|
||||||
data.raw['research-with-science-pack-achievement']['research-with-cryogenics'] = nil
|
data.raw['research-with-science-pack-achievement']['research-with-cryogenics'] = nil
|
||||||
data.raw['research-with-science-pack-achievement']['research-with-promethium'] = nil
|
data.raw['research-with-science-pack-achievement']['research-with-promethium'] = nil
|
||||||
data.raw['dont-research-before-researching-achievement']['rush-to-space'] = nil
|
|
||||||
data.raw['kill-achievement']['if-it-bleeds'] = nil
|
data.raw['kill-achievement']['if-it-bleeds'] = nil
|
||||||
data.raw['kill-achievement']['we-need-bigger-guns'] = nil
|
data.raw['kill-achievement']['we-need-bigger-guns'] = nil
|
||||||
data.raw['kill-achievement']['size-doesnt-matter'] = nil
|
data.raw['kill-achievement']['size-doesnt-matter'] = nil
|
||||||
@@ -895,6 +954,13 @@ if settings.startup['PHI-SA'].value then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for k, v in pairs(items['space-age']['resource']) do
|
||||||
|
if data.raw.resource[k] then
|
||||||
|
data.raw.resource[k].hidden = v
|
||||||
|
data.raw.resource[k].hidden_in_factoriopedia = v
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
for _, v in pairs(items['item']) do
|
for _, v in pairs(items['item']) do
|
||||||
if v.enabled and v.mod and (v.mod == 'space-age' or v.mod == 'quality') then
|
if v.enabled and v.mod and (v.mod == 'space-age' or v.mod == 'quality') then
|
||||||
if (data.raw.technology[v.tech] and data.raw.technology[v.tech].hidden) or (data.raw.recipe[v.name] and data.raw.recipe[v.name].hidden) then
|
if (data.raw.technology[v.tech] and data.raw.technology[v.tech].hidden) or (data.raw.recipe[v.name] and data.raw.recipe[v.name].hidden) then
|
||||||
@@ -1300,6 +1366,76 @@ if settings.startup['PHI-CT'].value then
|
|||||||
data.raw['loader']['turbo-loader'].max_belt_stack_size = s
|
data.raw['loader']['turbo-loader'].max_belt_stack_size = s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if settings.startup['PHI-CT-TILE'].value then
|
||||||
|
for _, v in pairs(data.raw.planet) do
|
||||||
|
if v.map_gen_settings and v.map_gen_settings.autoplace_settings then
|
||||||
|
if v.map_gen_settings.autoplace_settings.tile and v.map_gen_settings.autoplace_settings.tile.settings then
|
||||||
|
for _, e in pairs (v.map_gen_settings.autoplace_settings.tile.settings) do
|
||||||
|
e.frequency = 0.0
|
||||||
|
e.size = 0.0
|
||||||
|
e.richness = 0.0
|
||||||
|
end
|
||||||
|
|
||||||
|
v.map_gen_settings.autoplace_settings.tile.settings[settings.startup['PHI-CT-TILE-CHOICE'].value] = {
|
||||||
|
frequency = 1.0,
|
||||||
|
size = 1.0,
|
||||||
|
richness = 1.0
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
if v.map_gen_settings.autoplace_settings.decorative and v.map_gen_settings.autoplace_settings.decorative.settings then
|
||||||
|
for _, e in pairs(v.map_gen_settings.autoplace_settings.decorative.settings) do
|
||||||
|
e.frequency = 0.0
|
||||||
|
e.size = 0.0
|
||||||
|
e.richness = 0.0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if v.map_gen_settings.autoplace_settings.entity and v.map_gen_settings.autoplace_settings.entity.settings then
|
||||||
|
for _, e in pairs(v.map_gen_settings.autoplace_settings.entity.settings) do
|
||||||
|
e.frequency = 0.0
|
||||||
|
e.size = 0.0
|
||||||
|
e.richness = 0.0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local autoplace_controls = {}
|
||||||
|
|
||||||
|
for k, _ in pairs (data.raw['autoplace-control']) do
|
||||||
|
autoplace_controls[k] = {
|
||||||
|
frequency = 0.0,
|
||||||
|
size = 0.0,
|
||||||
|
richness = 0.0
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
data.raw['map-gen-presets']['default']['empty-world'] = {
|
||||||
|
order = 'zz',
|
||||||
|
basic_settings = {
|
||||||
|
autoplace_controls = autoplace_controls,
|
||||||
|
cliff_settings = {
|
||||||
|
name = 'none',
|
||||||
|
cliff_elevation_interval = 100,
|
||||||
|
cliff_elevation_0 = 100,
|
||||||
|
richness = 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
advanced_settings = {
|
||||||
|
pollution = {
|
||||||
|
enabled = false
|
||||||
|
},
|
||||||
|
enemy_evolution = {
|
||||||
|
enabled = false
|
||||||
|
},
|
||||||
|
enemy_expansion = {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(items['item']) do
|
for _, v in pairs(items['item']) do
|
||||||
|
|||||||
@@ -765,64 +765,7 @@ for _, t in pairs(data.raw['tree']) do
|
|||||||
t.collision_box = {{-0.05, -0.05}, {0.05, 0.05}}
|
t.collision_box = {{-0.05, -0.05}, {0.05, 0.05}}
|
||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-CT-TILE'].value then
|
|
||||||
for _, v in pairs(data.raw) do
|
|
||||||
for _, e in pairs(v) do
|
|
||||||
if e.surface_conditions then
|
|
||||||
e.surface_conditions = nil
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, t in pairs (data.raw.tile) do
|
|
||||||
if t.type and t.type == 'tile' and t.subgroup == 'nauvis-tiles' and t.autoplace and t.autoplace.probability_expression then
|
|
||||||
t.autoplace.probability_expression = '0'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if data.raw.tile[settings.startup['PHI-CT-TILE-CHOICE'].value] and data.raw.tile[settings.startup['PHI-CT-TILE-CHOICE'].value].autoplace and data.raw.tile[settings.startup['PHI-CT-TILE-CHOICE'].value].autoplace.probability_expression then
|
|
||||||
data.raw.tile[settings.startup['PHI-CT-TILE-CHOICE'].value].autoplace.probability_expression = '1'
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, t in pairs({data.raw['simple-entity'], data.raw['optimized-decorative'], data.raw['fish']}) do
|
|
||||||
for _, e in pairs(t) do
|
|
||||||
e.autoplace = nil
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local autoplace_controls = {}
|
|
||||||
|
|
||||||
for k, _ in pairs (data.raw['autoplace-control']) do
|
|
||||||
autoplace_controls[k] = {
|
|
||||||
size = 'none'
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
data.raw['map-gen-presets']['default']['empty-world'] = {
|
|
||||||
order = 'zz',
|
|
||||||
basic_settings = {
|
|
||||||
autoplace_controls = autoplace_controls,
|
|
||||||
water = 'none',
|
|
||||||
cliff_settings = {
|
|
||||||
name = 'none',
|
|
||||||
cliff_elevation_interval = 100,
|
|
||||||
cliff_elevation_0 = 100,
|
|
||||||
richness = 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
advanced_settings = {
|
|
||||||
pollution = {
|
|
||||||
enabled = false
|
|
||||||
},
|
|
||||||
enemy_evolution = {
|
|
||||||
enabled = false
|
|
||||||
},
|
|
||||||
enemy_expansion = {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
** MIGRATION
|
** MIGRATION
|
||||||
if script.active_mods['space-exploration'] then
|
if script.active_mods['space-exploration'] then
|
||||||
@@ -840,21 +783,6 @@ end
|
|||||||
{type = 'impact', decrease = 20, percent = 50},
|
{type = 'impact', decrease = 20, percent = 50},
|
||||||
{type = 'poison', decrease = 20, percent = 50}
|
{type = 'poison', decrease = 20, percent = 50}
|
||||||
|
|
||||||
{
|
|
||||||
type = 'bool-setting',
|
|
||||||
name = 'PHI-CT-TILE',
|
|
||||||
setting_type = 'startup',
|
|
||||||
default_value = true,
|
|
||||||
order = 'G04'
|
|
||||||
}, {
|
|
||||||
type = 'string-setting',
|
|
||||||
name = 'PHI-CT-TILE-CHOICE',
|
|
||||||
setting_type = 'startup',
|
|
||||||
default_value = 'grass-1',
|
|
||||||
allowed_values = {'concrete', 'deepwater', 'deepwater-green', 'dirt-1', 'dirt-2', 'dirt-3', 'dirt-4', 'dirt-5', 'dirt-6', 'dirt-7', 'dry-dirt', 'grass-1', 'grass-2', 'grass-3', 'grass-4', 'hazard-concrete-left', 'hazard-concrete-right', 'lab-dark-1', 'lab-dark-2', 'lab-white', 'landfill', 'out-of-map', 'red-desert-0', 'red-desert-1', 'red-desert-2', 'red-desert-3', 'refined-concrete', 'refined-hazard-concrete-left', 'refined-hazard-concrete-right', 'sand-1', 'sand-2', 'sand-3', 'stone-path', 'tutorial-grid', 'water', 'water-green', 'water-mud', 'water-shallow'},
|
|
||||||
order = 'G05'
|
|
||||||
}
|
|
||||||
|
|
||||||
"? aai-industry >= 0.5.0",
|
"? aai-industry >= 0.5.0",
|
||||||
"? Krastorio2 >= 1.3.0",
|
"? Krastorio2 >= 1.3.0",
|
||||||
"? space-exploration >= 0.6.0",
|
"? space-exploration >= 0.6.0",
|
||||||
|
|||||||
@@ -233,7 +233,20 @@ data:extend({
|
|||||||
type = 'bool-setting',
|
type = 'bool-setting',
|
||||||
name = 'PHI-CT-HIDDEN',
|
name = 'PHI-CT-HIDDEN',
|
||||||
setting_type = 'startup',
|
setting_type = 'startup',
|
||||||
default_value = false,
|
default_value = true,
|
||||||
order = 'G03'
|
order = 'G03'
|
||||||
|
}, {
|
||||||
|
type = 'bool-setting',
|
||||||
|
name = 'PHI-CT-TILE',
|
||||||
|
setting_type = 'startup',
|
||||||
|
default_value = false,
|
||||||
|
order = 'G04'
|
||||||
|
}, {
|
||||||
|
type = 'string-setting',
|
||||||
|
name = 'PHI-CT-TILE-CHOICE',
|
||||||
|
setting_type = 'startup',
|
||||||
|
default_value = 'grass-1',
|
||||||
|
allowed_values = {'concrete', 'deepwater', 'deepwater-green', 'dirt-1', 'dirt-2', 'dirt-3', 'dirt-4', 'dirt-5', 'dirt-6', 'dirt-7', 'dry-dirt', 'grass-1', 'grass-2', 'grass-3', 'grass-4', 'hazard-concrete-left', 'hazard-concrete-right', 'lab-dark-1', 'lab-dark-2', 'lab-white', 'landfill', 'out-of-map', 'red-desert-0', 'red-desert-1', 'red-desert-2', 'red-desert-3', 'refined-concrete', 'refined-hazard-concrete-left', 'refined-hazard-concrete-right', 'sand-1', 'sand-2', 'sand-3', 'stone-path', 'tutorial-grid', 'water', 'water-green', 'water-mud', 'water-shallow'},
|
||||||
|
order = 'G05'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user