diff --git a/common/decisions/zz_evolved_pdhab_arcology_habitat.txt b/common/decisions/zz_evolved_pdhab_arcology_habitat.txt index 4505053..77bbfba 100644 --- a/common/decisions/zz_evolved_pdhab_arcology_habitat.txt +++ b/common/decisions/zz_evolved_pdhab_arcology_habitat.txt @@ -78,6 +78,14 @@ decision_tec_pdplanethab_arcology_civil = { fail_text = decision_tec_hab_arcology_districts free_district_slots = 0 } + custom_tooltip = { + fail_text = decision_tec_hab_arcology_special_habitat_block + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + NOT = { has_modifier = penal_habitat } + } } effect = { @@ -89,7 +97,7 @@ decision_tec_pdplanethab_arcology_civil = { set_planet_flag = tec_arcology_habitat set_planet_flag = tec_civil_habitat add_modifier = { - modifier = tec_pm_arcology_habitat + modifier = pm_tec_arcology_habitat days = -1 } tec_pdplanethab_remove_terraforming_modifiers = yes @@ -120,6 +128,9 @@ decision_tec_pdplanethab_arcology_civil = { tec_pdplanethab_clear_district = { DISTRICT = district_pdhab_food } + tec_pdplanethab_clear_district = { + DISTRICT = district_pdhab_food_unlimited + } # energy conversion if = { @@ -136,6 +147,11 @@ decision_tec_pdplanethab_arcology_civil = { DISTRICT2 = district_tec_hab_arcology_trade DIVIDE = 2 } + tec_pdplanethab_convert_district = { + DISTRICT1 = district_pdhab_energy_unlimited + DISTRICT2 = district_tec_hab_arcology_trade + DIVIDE = 2 + } } else = { tec_pdplanethab_convert_district = { @@ -143,17 +159,28 @@ decision_tec_pdplanethab_arcology_civil = { DISTRICT2 = district_tec_hab_arcology_maintenance DIVIDE = 2 } + tec_pdplanethab_convert_district = { + DISTRICT1 = district_pdhab_energy_unlimited + DISTRICT2 = district_tec_hab_arcology_maintenance + DIVIDE = 2 + } } tec_pdplanethab_clear_district = { DISTRICT = district_pdhab_energy } + tec_pdplanethab_clear_district = { + DISTRICT = district_pdhab_energy_unlimited + } # mining conversion - no equivalent here tec_pdplanethab_clear_district = { DISTRICT = district_pdhab_mining } + tec_pdplanethab_clear_district = { + DISTRICT = district_pdhab_mining_unlimited + } # research conversion tec_pdplanethab_convert_district = { @@ -190,17 +217,6 @@ decision_tec_pdplanethab_arcology_civil = { DISTRICT = district_pdhab_cultural } - # military conversion - tec_pdplanethab_convert_district = { - DISTRICT1 = district_pdhab_mil - DISTRICT2 = district_tec_hab_arcology_research - DIVIDE = 2 - } - - tec_pdplanethab_clear_district = { - DISTRICT = district_pdhab_mil - } - tec_pdplanethab_ensure_planet_size_end = yes tec_evolved_planethab_arcology_texture_effect = yes } @@ -273,6 +289,14 @@ decision_tec_pdplanethab_arcology_industrial = { fail_text = decision_tec_hab_arcology_districts free_district_slots = 0 } + custom_tooltip = { + fail_text = decision_tec_hab_arcology_special_habitat_block + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + NOT = { has_modifier = penal_habitat } + } } effect = { @@ -285,7 +309,7 @@ decision_tec_pdplanethab_arcology_industrial = { set_planet_flag = tec_arcology_habitat set_planet_flag = tec_industrial_habitat add_modifier = { - modifier = tec_pm_arcology_habitat + modifier = pm_tec_arcology_habitat days = -1 } tec_pdplanethab_remove_terraforming_modifiers = yes @@ -321,16 +345,30 @@ decision_tec_pdplanethab_arcology_industrial = { DISTRICT2 = district_tec_hab_arcology_foundry DIVIDE = 4 } + tec_pdplanethab_convert_district = { + DISTRICT1 = district_pdhab_food_unlimited + DISTRICT2 = district_tec_hab_arcology_foundry + DIVIDE = 4 + } tec_pdplanethab_convert_district = { DISTRICT1 = district_pdhab_food DISTRICT2 = district_tec_hab_arcology_industry DIVIDE = 4 } + + tec_pdplanethab_convert_district = { + DISTRICT1 = district_pdhab_food_unlimited + DISTRICT2 = district_tec_hab_arcology_industry + DIVIDE = 4 + } tec_pdplanethab_clear_district = { DISTRICT = district_pdhab_food } + tec_pdplanethab_clear_district = { + DISTRICT = district_tec_hab_arcology_industry + } # energy conversion if = { @@ -347,6 +385,11 @@ decision_tec_pdplanethab_arcology_industrial = { DISTRICT2 = district_tec_hab_arcology_trade DIVIDE = 2 } + tec_pdplanethab_convert_district = { + DISTRICT1 = district_pdhab_energy_unlimited + DISTRICT2 = district_tec_hab_arcology_trade + DIVIDE = 2 + } } else = { tec_pdplanethab_convert_district = { @@ -354,12 +397,20 @@ decision_tec_pdplanethab_arcology_industrial = { DISTRICT2 = district_tec_hab_arcology_maintenance DIVIDE = 2 } + tec_pdplanethab_convert_district = { + DISTRICT1 = district_pdhab_energy_unlimited + DISTRICT2 = district_tec_hab_arcology_maintenance + DIVIDE = 2 + } } tec_pdplanethab_clear_district = { DISTRICT = district_pdhab_energy } + tec_pdplanethab_clear_district = { + DISTRICT = district_pdhab_energy_unlimited + } # mining conversion @@ -369,15 +420,29 @@ decision_tec_pdplanethab_arcology_industrial = { DIVIDE = 4 } + tec_pdplanethab_convert_district = { + DISTRICT1 = district_pdhab_mining_unlimited + DISTRICT2 = district_tec_hab_arcology_foundry + DIVIDE = 4 + } + tec_pdplanethab_convert_district = { DISTRICT1 = district_pdhab_mining DISTRICT2 = district_tec_hab_arcology_industry DIVIDE = 4 } + tec_pdplanethab_convert_district = { + DISTRICT1 = district_pdhab_mining_unlimited + DISTRICT2 = district_tec_hab_arcology_industry + DIVIDE = 4 + } tec_pdplanethab_clear_district = { DISTRICT = district_pdhab_mining } + tec_pdplanethab_clear_district = { + DISTRICT = district_pdhab_mining_unlimited + } # research conversion - no conversion @@ -409,24 +474,7 @@ decision_tec_pdplanethab_arcology_industrial = { tec_pdplanethab_clear_district = { DISTRICT = district_pdhab_cultural } - - # military conversion - tec_pdplanethab_convert_district = { - DISTRICT1 = district_pdhab_mil - DISTRICT2 = district_tec_hab_arcology_foundry - DIVIDE = 4 - } - - tec_pdplanethab_convert_district = { - DISTRICT1 = district_pdhab_mil - DISTRICT2 = district_tec_hab_arcology_industry - DIVIDE = 4 - } - - tec_pdplanethab_clear_district = { - DISTRICT = district_pdhab_mil - } - + tec_pdplanethab_ensure_planet_size_end = yes tec_evolved_planethab_arcology_texture_effect = yes } @@ -441,7 +489,7 @@ decision_tec_pdplanethab_arcology_project_militarized = { owned_planets_only = yes icon = decision_tec_military_ecu - enactment_time = 900 #3600 2700 + enactment_time = 1800 #3600 2700 resources = { category = decisions cost = { @@ -510,6 +558,7 @@ decision_tec_pdplanethab_arcology_project_militarized = { tec_pdplanethab_clear_habitat_specific_data = yes tec_pdplanethab_ensure_planet_size = yes + change_pc = pc_city tec_pdplanethab_convert_housing_to_ecu_housing = yes tec_pdplanethab_convert_leisure_to_ecu_leisure = yes @@ -539,7 +588,10 @@ decision_tec_pdplanethab_arcology_project_militarized = { tec_pdplanethab_ensure_planet_size_end = yes - change_pc = pc_city + tec_ecu_deposits_handler_before = yes + clean_deposits = yes + tec_ecu_deposits_handler_after = yes + tec_ecu_planet_entity = yes tec_ecu_ecological_resolution = yes @@ -556,7 +608,7 @@ decision_tec_pdplanethab_arcology_project_admin = { owned_planets_only = yes icon = decision_tec_administration_ecu - enactment_time = 900 #3600 2700 + enactment_time = 1800 #3600 2700 resources = { category = decisions cost = { @@ -627,6 +679,7 @@ decision_tec_pdplanethab_arcology_project_admin = { tec_pdplanethab_clear_habitat_specific_data = yes tec_pdplanethab_ensure_planet_size = yes + change_pc = pc_city tec_pdplanethab_convert_housing_to_ecu_housing = yes tec_pdplanethab_convert_leisure_to_ecu_leisure = yes @@ -680,7 +733,10 @@ decision_tec_pdplanethab_arcology_project_admin = { tec_pdplanethab_ensure_planet_size_end = yes - change_pc = pc_city + tec_ecu_deposits_handler_before = yes + clean_deposits = yes + tec_ecu_deposits_handler_after = yes + tec_ecu_planet_entity = yes tec_ecu_ecological_resolution = yes tec_evolved_planethab_pd_arcology_patch_compat_effect = yes @@ -696,7 +752,7 @@ decision_tec_pdplanethab_arcology_project_science = { owned_planets_only = yes icon = decision_tec_science_ecu - enactment_time = 900 #3600 2700 + enactment_time = 1800 #3600 2700 resources = { category = decisions cost = { @@ -765,6 +821,7 @@ decision_tec_pdplanethab_arcology_project_science = { tec_pdplanethab_clear_habitat_specific_data = yes tec_pdplanethab_ensure_planet_size = yes + change_pc = pc_city tec_pdplanethab_convert_housing_to_ecu_housing = yes tec_pdplanethab_convert_leisure_to_ecu_leisure = yes @@ -794,6 +851,11 @@ decision_tec_pdplanethab_arcology_project_science = { tec_pdplanethab_ensure_planet_size_end = yes + + tec_ecu_deposits_handler_before = yes + clean_deposits = yes + tec_ecu_deposits_handler_after = yes + change_pc = pc_city tec_ecu_planet_entity = yes tec_ecu_ecological_resolution = yes diff --git a/common/decisions/zz_evolved_pdhab_overrides_decisions.txt b/common/decisions/zz_evolved_pdhab_overrides_decisions.txt index 9b1c57f..f6147b0 100644 --- a/common/decisions/zz_evolved_pdhab_overrides_decisions.txt +++ b/common/decisions/zz_evolved_pdhab_overrides_decisions.txt @@ -2,83 +2,322 @@ # Decisions ########################################################################## -# Make Trade Moon -decision_trademoonhab = { - icon = decision_trademoonhab +# Advanced Habitat +decision_upgrade_pd_habitat = { owned_planets_only = yes - - #prerequisites = { - # "tech_terrestrial_sculpting" - #} + icon = decision_satellite_in_orbit - #enactment_time = 0 + enactment_time = 720 resources = { category = decisions cost = { - energy = 250 + alloys = 1000 } } - - potential = { - uses_district_set = pdplanethab - NOT = { has_planet_flag = pd_commercial_hab } - NOT = { has_planet_flag = pd_hab_d2 } + + potential = { + OR = { + is_planet_class = pc_pd_barren_cold_hab + is_planet_class = pc_pd_barren_hab + is_planet_class = pc_pd_frozen_hab + is_planet_class = pc_pd_gas_giant_hab + is_planet_class = pc_pd_hothouse_hab + is_planet_class = pc_pd_toxic_hab + is_planet_class = pc_pd_molten_hab + is_planet_class = pc_pd_asteroid_hab + } + NOT = { has_planet_flag = advanced_habitat } + exists = owner + owner = { + has_technology = tech_pdhabitat_1 + } + } + + allow = { + free_district_slots = 0 + has_modifier = pdhablevel1 + } + + effect = { + add_modifier = { + modifier = pdhablevel2 + days = -1 + } + hidden_effect = { + remove_modifier = pdhablevel1 + set_planet_flag = advanced_habitat + } + } + + ai_weight = { + weight = 1000 + } +} + +decision_upgrade_pd_habitat_2 = { + owned_planets_only = yes + icon = decision_satellite_in_orbit + + enactment_time = 1440 + resources = { + category = decisions + cost = { + alloys = 1500 + } + } + + potential = { + OR = { + is_planet_class = pc_pd_barren_cold_hab + is_planet_class = pc_pd_barren_hab + is_planet_class = pc_pd_frozen_hab + is_planet_class = pc_pd_gas_giant_hab + is_planet_class = pc_pd_hothouse_hab + is_planet_class = pc_pd_toxic_hab + is_planet_class = pc_pd_molten_hab + is_planet_class = pc_pd_asteroid_hab + } + has_planet_flag = advanced_habitat + NOT = { has_planet_flag = advanced_habitat_2 } + exists = owner + owner = { + has_technology = tech_pdhabitat_2 + } + } + + allow = { + free_district_slots = 0 + has_modifier = pdhablevel2 + # has_building = building_hab_major_capital + has_major_upgraded_capital = yes + } + + effect = { + add_modifier = { + modifier = pdhablevel3 + days = -1 + } + hidden_effect = { + remove_modifier = pdhablevel2 + set_planet_flag = advanced_habitat_2 + } + } + + ai_weight = { + weight = 1000 + } +} + + +# Resort Colony +decision_resort_habitat = { + owned_planets_only = yes + icon = decision_resort_colony + + prerequisites = { + "tech_resort_colonies" + } + + resources = { + category = decisions + cost = { + unity = 1000 + } + } + + potential = { + is_capital = no + is_pd_habitat = yes + NOT = { is_planet_class = pc_pd_asteroid_hab } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = penal_habitat } + NOT = { has_modifier = slave_colony } + NOT = { has_modifier = military_pd_habitat_reg } + owner = { + is_regular_empire = yes + } NOT = { has_planet_flag = tec_arcology_habitat } - owner = { is_gestalt = no } + } + + allow = { + #planet_size >= 15 + custom_tooltip = { + fail_text = decision_resort_colony_no_districts + num_districts = { type = any value < 1 } + num_buildings = { type = any value < 2 } + } + custom_tooltip = { + fail_text = no_upgraded_capital_tooltip + has_building = building_hab_capital + } + custom_tooltip = { + fail_text = decision_resort_colony_only_one + NOT = { + owner = { + any_owned_planet = { has_modifier = resort_colony_pd_hab } + } + } + } } effect = { - custom_tooltip = decision_commercial_hab_effects_short + add_modifier = { + modifier = resort_colony_pd_hab + days = -1 + } hidden_effect = { - set_planet_flag = pd_commercial_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + remove_building = building_hab_capital + add_building = building_resort_capital } - } - - ai_weight = { - weight = 1 + hidden_effect = { validate_planet_buildings_and_districts = yes } + } + + ai_weight = { + weight = 0 } } -# Make Military -decision_milhab = { - icon = decision_milhab +# Penal Colony +decision_penal_habitat = { owned_planets_only = yes - - #prerequisites = { - # "tech_terrestrial_sculpting" - #} + icon = decision_penal_colony + + prerequisites = { + "tech_penal_colonies" + } - enactment_time = 1 resources = { category = decisions cost = { - energy = 250 + unity = 1000 } } - - potential = { - uses_district_set = pdplanethab - NOT = { has_planet_flag = pd_hab_d2 } - NOT = { has_planet_flag = pd_mil_hab } + + potential = { + is_capital = no + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = slave_colony } + NOT = { has_modifier = military_pd_habitat_reg } + owner = { + is_regular_empire = yes + } + is_pd_habitat = yes + NOT = { + owner = { + any_owned_planet = { has_modifier = penal_habitat } + } + } NOT = { has_planet_flag = tec_arcology_habitat } } + allow = { + custom_tooltip = { + fail_text = decision_penal_habitat_no_districts + num_districts = { type = district_pdhab_cultural value < 1 } + num_districts = { type = district_pdhab_commercial value < 1 } + num_districts = { type = district_pdhab_science value < 1 } + } + } + effect = { - custom_tooltip = decision_mil_hab_effects_short - hidden_effect = { - set_planet_flag = pd_mil_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + add_modifier = { + modifier = penal_habitat + days = -1 + } + hidden_effect = { validate_planet_buildings_and_districts = yes } + } + + ai_weight = { + weight = 0 + } +} + + +# Military Colony +decision_military_habitat = { + owned_planets_only = yes + + prerequisites = { + "tech_military_habitats" + } + + + #enactment_time = 720 + resources = { + category = decisions + cost = { + unity = 500 + alloys = 500 + } + } + + potential = { + is_capital = no + exists = owner + is_pd_habitat = yes + #OR = { + # is_planet_class = pc_pd_molten_hab + # is_planet_class = pc_pd_barren_hab + # is_planet_class = pc_pd_barren_cold_hab + # is_planet_class = pc_pd_frozen_hab + #} + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = penal_habitat } + NOT = { has_modifier = slave_colony } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + NOT = { + has_planet_flag = tec_arcology_habitat + } + } + + allow = { + #planet_size >= 15 + custom_tooltip = { + fail_text = decision_military_habitat_no_districts + num_districts = { type = any value < 1 } } - } - - ai_weight = { - weight = 1 + } + + effect = { + IF = { + limit = { + owner = { is_gestalt = no } + } + add_modifier = { + modifier = military_pd_habitat_reg + days = -1 + } + + } + IF = { + limit = { + owner = { is_gestalt = yes } + } + add_modifier = { + modifier = military_pd_habitat_ges + days = -1 + } + + } + hidden_effect = { + validate_planet_buildings_and_districts = yes + remove_modifier = pdhablevel1 + IF = { + limit = { has_modifier = hab_terraforming_candidate } + remove_modifier = hab_terraforming_candidate + set_planet_flag = pdhab_terraforming_candidate_return + } + } + } + + ai_weight = { + weight = 0 } } + + diff --git a/common/deposits/zz_evolved_pdhab_deposits.txt b/common/deposits/zz_evolved_pdhab_deposits.txt deleted file mode 100644 index 4a4d950..0000000 --- a/common/deposits/zz_evolved_pdhab_deposits.txt +++ /dev/null @@ -1,1340 +0,0 @@ -#GG Storms - -d_ggstorm15 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 2700 - - resources = { - category = planet_deposits - cost = { - energy = 7500 - alloys = 3000 - } - } - - planet_modifier = { - planet_max_districts_add = -15 - } - - potential = { - is_planet_class = pc_pd_gas_giant_hab - } - - drop_weight = { - weight = 0 - } -} - -d_ggstorm10 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 1800 - - resources = { - category = planet_deposits - cost = { - energy = 5000 - alloys = 2000 - } - } - - - planet_modifier = { - planet_max_districts_add = -10 - } - - potential = { - is_planet_class = pc_pd_gas_giant_hab - } - - drop_weight = { - weight = 0 - } -} - -d_ggstorm5 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 900 - - resources = { - category = planet_deposits - cost = { - energy = 2500 - alloys = 1000 - } - } - - planet_modifier = { - planet_max_districts_add = -5 - } - - potential = { - is_planet_class = pc_pd_gas_giant_hab - } - - drop_weight = { - weight = 0 - } -} - -d_ggstorm4 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 720 - - resources = { - category = planet_deposits - cost = { - energy = 2000 - minerals = 1000 - } - } - - planet_modifier = { - planet_max_districts_add = -4 - } - - potential = { - is_planet_class = pc_pd_gas_giant_hab - } - - drop_weight = { - weight = 0 - } -} - -d_ggstorm3 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 540 - - resources = { - category = planet_deposits - cost = { - energy = 1500 - minerals = 750 - } - } - - - planet_modifier = { - planet_max_districts_add = -3 - } - - potential = { - is_planet_class = pc_pd_gas_giant_hab - } - - drop_weight = { - weight = 0 - } -} - -d_ggstorm2 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 360 - - resources = { - category = planet_deposits - cost = { - energy = 1000 - minerals = 500 - } - } - - planet_modifier = { - planet_max_districts_add = -2 - } - - potential = { - is_planet_class = pc_pd_gas_giant_hab - } - - drop_weight = { - weight = 0 - } -} - -d_ggstorm1 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 180 - - resources = { - category = planet_deposits - cost = { - energy = 500 - minerals = 250 - } - } - - planet_modifier = { - planet_max_districts_add = -1 - } - - potential = { - is_planet_class = pc_pd_gas_giant_hab - } - - drop_weight = { - weight = 0 - } -} - -#Barren Blockers - -d_bblock15 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_mountain_range - has_technology = tech_terrestrial_sculpting - } - } - - time = 2700 - - resources = { - category = planet_deposits - cost = { - energy = 7500 - alloys = 3000 - } - } - - planet_modifier = { - planet_max_districts_add = -15 - } - - potential = { - OR = { - is_planet_class = pc_pd_barren_hab - is_planet_class = pc_pd_barren_cold_hab - } - } - - drop_weight = { - weight = 0 - } -} - -d_bblock10 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_deep_sinkhole - has_technology = tech_terrestrial_sculpting - } - } - - time = 1800 - - resources = { - category = planet_deposits - cost = { - energy = 5000 - alloys = 2000 - } - } - - planet_modifier = { - planet_max_districts_add = -10 - } - - potential = { - OR = { - is_planet_class = pc_pd_barren_hab - is_planet_class = pc_pd_barren_cold_hab - } - } - - drop_weight = { - weight = 0 - } -} - -d_bblock5 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_mountain_range - has_technology = tech_terrestrial_sculpting - } - } - - time = 900 - - resources = { - category = planet_deposits - cost = { - energy = 2500 - alloys = 1000 - } - } - - planet_modifier = { - planet_max_districts_add = -5 - } - - potential = { - OR = { - is_planet_class = pc_pd_barren_hab - is_planet_class = pc_pd_barren_cold_hab - } - } - - drop_weight = { - weight = 0 - } -} - -d_bblock4 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_quicksand_basin - has_technology = tech_terrestrial_sculpting - } - } - - time = 720 - - resources = { - category = planet_deposits - cost = { - energy = 2000 - minerals = 1000 - } - } - - planet_modifier = { - planet_max_districts_add = -4 - } - - potential = { - OR = { - is_planet_class = pc_pd_barren_hab - is_planet_class = pc_pd_barren_cold_hab - } - } - - drop_weight = { - weight = 0 - } -} - -d_bblock3 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_quicksand_basin - has_technology = tech_terrestrial_sculpting - } - } - - time = 540 - - resources = { - category = planet_deposits - cost = { - energy = 1500 - minerals = 750 - } - } - - planet_modifier = { - planet_max_districts_add = -3 - } - - potential = { - OR = { - is_planet_class = pc_pd_barren_hab - is_planet_class = pc_pd_barren_cold_hab - } - } - - drop_weight = { - weight = 0 - } -} - -d_bblock2 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_quicksand_basin - has_technology = tech_terrestrial_sculpting - } - } - - time = 360 - - resources = { - category = planet_deposits - cost = { - energy = 1000 - minerals = 500 - } - } - - planet_modifier = { - planet_max_districts_add = -2 - } - - potential = { - OR = { - is_planet_class = pc_pd_barren_hab - is_planet_class = pc_pd_barren_cold_hab - } - } - - drop_weight = { - weight = 0 - } -} - -d_bblock1 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_quicksand_basin - has_technology = tech_terrestrial_sculpting - } - } - - time = 180 - - resources = { - category = planet_deposits - cost = { - energy = 500 - minerals = 250 - } - } - - planet_modifier = { - planet_max_districts_add = -1 - } - - potential = { - OR = { - is_planet_class = pc_pd_barren_hab - is_planet_class = pc_pd_barren_cold_hab - } - } - - drop_weight = { - weight = 0 - } -} - -#Molten Blockers - -d_mblock15 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_volcano - has_technology = tech_terrestrial_sculpting - } - } - - time = 2700 - - resources = { - category = planet_deposits - cost = { - energy = 7500 - alloys = 3000 - } - } - - planet_modifier = { - planet_max_districts_add = -15 - } - - potential = { - is_planet_class = pc_pd_molten_hab - } - - drop_weight = { - weight = 0 - } -} - -d_mblock10 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_volcano - has_technology = tech_terrestrial_sculpting - } - } - - time = 1800 - - resources = { - category = planet_deposits - cost = { - energy = 5000 - alloys = 2000 - } - } - - planet_modifier = { - planet_max_districts_add = -10 - } - - potential = { - is_planet_class = pc_pd_molten_hab - } - - drop_weight = { - weight = 0 - } -} - -d_mblock5 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_volcano - has_technology = tech_terrestrial_sculpting - } - } - - time = 900 - - resources = { - category = planet_deposits - cost = { - energy = 2500 - alloys = 1000 - } - } - - - planet_modifier = { - planet_max_districts_add = -5 - } - - potential = { - is_planet_class = pc_pd_molten_hab - } - - drop_weight = { - weight = 0 - } -} - -d_mblock4 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_volcano - has_technology = tech_terrestrial_sculpting - } - } - - time = 720 - - resources = { - category = planet_deposits - cost = { - energy = 2000 - minerals = 1000 - } - } - - - planet_modifier = { - planet_max_districts_add = -4 - } - - potential = { - is_planet_class = pc_pd_molten_hab - } - - drop_weight = { - weight = 0 - } -} - -d_mblock3 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_volcano - has_technology = tech_terrestrial_sculpting - } - } - - time = 540 - - resources = { - category = planet_deposits - cost = { - energy = 1500 - minerals = 750 - } - } - - - planet_modifier = { - planet_max_districts_add = -3 - } - - potential = { - is_planet_class = pc_pd_molten_hab - } - - drop_weight = { - weight = 0 - } -} - -d_mblock2 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_quicksand_basin - has_technology = tech_terrestrial_sculpting - } - } - - time = 360 - - resources = { - category = planet_deposits - cost = { - energy = 1000 - minerals = 500 - } - } - - - planet_modifier = { - planet_max_districts_add = -2 - } - - potential = { - is_planet_class = pc_pd_molten_hab - } - - drop_weight = { - weight = 0 - } -} - -d_mblock1 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_volcano - has_technology = tech_terrestrial_sculpting - } - } - - time = 180 - - resources = { - category = planet_deposits - cost = { - energy = 500 - minerals = 250 - } - } - - planet_modifier = { - planet_max_districts_add = -1 - } - - potential = { - is_planet_class = pc_pd_molten_hab - } - - drop_weight = { - weight = 0 - } -} - -#Frozen Blockers - -d_fblock15 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_massive_glacier - has_technology = tech_terrestrial_sculpting - } - } - - time = 2700 - - resources = { - category = planet_deposits - cost = { - energy = 7500 - alloys = 3000 - } - } - - planet_modifier = { - planet_max_districts_add = -15 - } - - potential = { - is_planet_class = pc_pd_frozen_hab - } - - drop_weight = { - weight = 0 - } -} - -d_fblock10 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_massive_glacier - has_technology = tech_terrestrial_sculpting - } - } - - time = 1800 - - resources = { - category = planet_deposits - cost = { - energy = 5000 - alloys = 2000 - } - } - - planet_modifier = { - planet_max_districts_add = -10 - } - - potential = { - is_planet_class = pc_pd_frozen_hab - } - - drop_weight = { - weight = 0 - } -} - -d_fblock5 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_massive_glacier - has_technology = tech_terrestrial_sculpting - } - } - - time = 900 - - resources = { - category = planet_deposits - cost = { - energy = 2500 - alloys = 1000 - } - } - - planet_modifier = { - planet_max_districts_add = -5 - } - - potential = { - is_planet_class = pc_pd_frozen_hab - } - - drop_weight = { - weight = 0 - } -} - -d_fblock4 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_massive_glacier - has_technology = tech_terrestrial_sculpting - } - } - - time = 720 - - resources = { - category = planet_deposits - cost = { - energy = 2000 - minerals = 1000 - } - } - - planet_modifier = { - planet_max_districts_add = -4 - } - - potential = { - is_planet_class = pc_pd_frozen_hab - } - - drop_weight = { - weight = 0 - } -} - -d_fblock3 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_massive_glacier - has_technology = tech_terrestrial_sculpting - } - } - - time = 540 - - resources = { - category = planet_deposits - cost = { - energy = 1500 - minerals = 750 - } - } - - planet_modifier = { - planet_max_districts_add = -3 - } - - potential = { - is_planet_class = pc_pd_frozen_hab - } - - drop_weight = { - weight = 0 - } -} - -d_fblock2 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_massive_glacier - has_technology = tech_terrestrial_sculpting - } - } - - time = 360 - - resources = { - category = planet_deposits - cost = { - energy = 1000 - minerals = 500 - } - } - - - planet_modifier = { - planet_max_districts_add = -2 - } - - potential = { - is_planet_class = pc_pd_frozen_hab - } - - drop_weight = { - weight = 0 - } -} - -d_fblock1 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_massive_glacier - has_technology = tech_terrestrial_sculpting - } - } - - time = 180 - - resources = { - category = planet_deposits - cost = { - energy = 500 - minerals = 250 - } - } - - planet_modifier = { - planet_max_districts_add = -1 - } - - potential = { - is_planet_class = pc_pd_frozen_hab - } - - drop_weight = { - weight = 0 - } -} - -#Hothouse Blockers - -d_hhblock15 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 2700 - - resources = { - category = planet_deposits - cost = { - energy = 7500 - alloys = 3000 - } - } - - planet_modifier = { - planet_max_districts_add = -15 - } - - potential = { - is_planet_class = pc_pd_hothouse_hab - } - - drop_weight = { - weight = 0 - } -} - -d_hhblock10 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 1800 - - resources = { - category = planet_deposits - cost = { - energy = 5000 - alloys = 2000 - } - } - - planet_modifier = { - planet_max_districts_add = -10 - } - - potential = { - is_planet_class = pc_pd_hothouse_hab - } - - drop_weight = { - weight = 0 - } -} - -d_hhblock5 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 900 - - resources = { - category = planet_deposits - cost = { - energy = 2500 - alloys = 1000 - } - } - - planet_modifier = { - planet_max_districts_add = -5 - } - - potential = { - is_planet_class = pc_pd_hothouse_hab - } - - drop_weight = { - weight = 0 - } -} - -d_hhblock4 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 720 - - resources = { - category = planet_deposits - cost = { - energy = 2000 - minerals = 1000 - } - } - - planet_modifier = { - planet_max_districts_add = -4 - } - - potential = { - is_planet_class = pc_pd_hothouse_hab - } - - drop_weight = { - weight = 0 - } -} - -d_hhblock3 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 540 - - resources = { - category = planet_deposits - cost = { - energy = 1500 - minerals = 750 - } - } - - planet_modifier = { - planet_max_districts_add = -3 - } - - potential = { - is_planet_class = pc_pd_hothouse_hab - } - - drop_weight = { - weight = 0 - } -} - -d_hhblock2 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 360 - - resources = { - category = planet_deposits - cost = { - energy = 1000 - minerals = 500 - } - } - - planet_modifier = { - planet_max_districts_add = -2 - } - - potential = { - is_planet_class = pc_pd_hothouse_hab - } - - drop_weight = { - weight = 0 - } -} - -d_hhblock1 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare_blocker - can_be_cleared = { - tec_pdplanethab_can_clear_blocker_arcology = yes - exists = owner - owner = { - has_technology = tech_housing_2 - has_technology = tech_terrestrial_sculpting - } - } - - time = 180 - - resources = { - category = planet_deposits - cost = { - energy = 500 - minerals = 250 - } - } - - planet_modifier = { - planet_max_districts_add = -1 - } - - potential = { - is_planet_class = pc_pd_hothouse_hab - } - - drop_weight = { - weight = 0 - } -} - -d_expanded_dome_system = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare - - planet_modifier = { - planet_max_districts_add = 2 - pop_environment_tolerance = 0.10 - } - - potential = { - OR = { - is_planet_class = pc_pd_hothouse_hab - is_planet_class = pc_pd_barren_cold_hab - is_planet_class = pc_pd_barren_hab - is_planet_class = pc_pd_frozen_hab - is_planet_class = pc_pd_gas_giant_hab - is_planet_class = pc_pd_molten_hab - } - } - - drop_weight = { - weight = 0 - } -} - -d_expanded_dome_system_1 = { - is_for_colonizable = yes - use_for_min_max_adjustments = yes - category = deposit_cat_rare - - planet_modifier = { - planet_max_districts_add = 1 - pop_environment_tolerance = 0.10 - } - - potential = { is_planet_class = pc_pd_asteroid_hab } - - drop_weight = { weight = 0 } -} diff --git a/common/districts/pd_habitat_districts.txt b/common/districts/pd_habitat_districts.txt index 5c6385c..7079a7d 100644 --- a/common/districts/pd_habitat_districts.txt +++ b/common/districts/pd_habitat_districts.txt @@ -4,6 +4,7 @@ district_pdhab_housing = { base_buildtime = 240 is_capped_by_modifier = no + exempt_from_ai_planet_specialization = yes show_on_uncolonized = { uses_district_set = pdplanethab @@ -21,6 +22,13 @@ district_pdhab_housing = { } } + allow = { + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + } + conversion_ratio = 1 convert_to = { district_city @@ -230,6 +238,9 @@ district_pdhab_industrial = { allow = { NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } } conversion_ratio = 1 @@ -879,14 +890,15 @@ district_pdhab_industrial = { } } - -district_pdhab_food = { +district_pdhab_food_unlimited = { base_buildtime = 240 is_capped_by_modifier = no show_on_uncolonized = { uses_district_set = pdplanethab has_planet_flag = pd_farming_hab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } NOT = { has_planet_flag = tec_arcology_habitat } @@ -895,17 +907,26 @@ district_pdhab_food = { potential = { uses_district_set = pdplanethab has_planet_flag = pd_farming_hab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } NOT = { has_planet_flag = tec_arcology_habitat } } + allow = { + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + } + conversion_ratio = 1 convert_to = { district_farming district_farming_uncapped } - + resources = { category = planet_districts_hab_food cost = { @@ -913,13 +934,13 @@ district_pdhab_food = { } upkeep = { energy = @hab_maintenance - } - - # New production - produces = { - food = 1 - multiplier = value:tec_automated_district_production|BASE|6|BASE_VALUE|tec_habitat_base_production|ECO_CAT|planet_farmers|RESOURCE|food|REQUISITON|has_produce_requisitorium|REQUISITION_AMOUNT|@requisitorium_food_reduction| - } + } + # Base production + produces = { + food = 1 + multiplier = value:tec_automated_district_production|BASE|6|BASE_VALUE|tec_habitat_base_production|ECO_CAT|planet_farmers|RESOURCE|food|REQUISITON|has_produce_requisitorium|REQUISITION_AMOUNT|@requisitorium_food_reduction| + } + # / # Resource production civic produces = { trigger = { @@ -930,7 +951,7 @@ district_pdhab_food = { } food = 2 } - # / + # / } overlord_resources = { @@ -959,7 +980,7 @@ district_pdhab_food = { triggered_desc = { text = tec_building_affect_district_habitat } - + # Housing triggered_planet_modifier = { potential = { @@ -983,37 +1004,6 @@ district_pdhab_food = { job_farmer_add = 1 mult = value:tec_habitat_job_count } - - triggered_planet_modifier = { # Fe - potential = { - exists = owner - owner = { is_fallen_empire_spiritualist = yes } - } - job_fe_acolyte_farm_add = 1 - mult = value:tec_habitat_job_count - } - - - triggered_planet_modifier = { # Machine - potential = { - exists = owner - owner = { is_machine_empire = yes } - } - job_agri_drone_add = 1 - mult = value:tec_habitat_job_count - } - - triggered_planet_modifier = { # Hive - potential = { - exists = owner - owner = { is_hive_empire = yes } - } - job_agri_drone_add = 1 - mult = value:tec_habitat_job_count - } - - - # Descs triggered_desc = { trigger = { exists = owner @@ -1027,25 +1017,43 @@ district_pdhab_food = { } text = job_farmer_effect_desc } + + triggered_planet_modifier = { # Fe + potential = { + exists = owner + owner = { is_fallen_empire_spiritualist = yes } + } + job_fe_acolyte_farm_add = 1 + mult = value:tec_habitat_job_count + } triggered_desc = { trigger = { exists = owner - owner = { is_gestalt = yes } + owner = { is_fallen_empire_spiritualist = yes } planet = { has_planet_flag = advanced_habitat } } - text = job_agri_drone_effect_desc + text = job_fe_acolyte_farm_effect_desc + } + + triggered_planet_modifier = { # Gestalt + potential = { + exists = owner + owner = { is_gestalt = yes } + } + job_agri_drone_add = 1 + mult = value:tec_habitat_job_count } triggered_desc = { trigger = { exists = owner - owner = { is_fallen_empire_spiritualist = yes } + owner = { is_gestalt = yes } planet = { has_planet_flag = advanced_habitat } } - text = job_fe_acolyte_farm_effect_desc + text = job_agri_drone_effect_desc } ai_resource_production = { @@ -1056,58 +1064,58 @@ district_pdhab_food = { } } -district_pdhab_energy = { +district_pdhab_food = { base_buildtime = 240 - is_capped_by_modifier = no - + min_for_deposits_on_planet = 3 + max_for_deposits_on_planet = 15 + show_on_uncolonized = { uses_district_set = pdplanethab OR = { - has_planet_flag = pd_energy_hab - AND = { - exists = from - from = { is_gestalt = yes } - } + has_modifier = hab_terraforming_candidate + has_modifier = hab_pdhabsubglacialocean } NOT = { has_planet_flag = tec_arcology_habitat } } - + potential = { uses_district_set = pdplanethab OR = { - has_planet_flag = pd_energy_hab - AND = { - exists = owner - owner = { is_gestalt = yes } - } + has_modifier = hab_terraforming_candidate + has_modifier = hab_pdhabsubglacialocean } NOT = { has_planet_flag = tec_arcology_habitat } } + allow = { + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + } conversion_ratio = 1 convert_to = { - district_generator - district_generator_uncapped - district_pdhab_commercial + district_farming + district_farming_uncapped } resources = { - category = planet_districts_hab_energy + category = planet_districts_hab_food cost = { minerals = @hab_cost } - # upkeep = { - # energy = @hab_maintenance - # } + upkeep = { + energy = @hab_maintenance + } # New production produces = { - energy = 1 - multiplier = value:tec_automated_district_production|BASE|6|BASE_VALUE|tec_habitat_base_production|ECO_CAT|planet_technician|RESOURCE|energy|REQUISITON|has_energy_requisitorium|REQUISITION_AMOUNT|@requisitorium_energy_reduction| + food = 1 + multiplier = value:tec_automated_district_production|BASE|6|BASE_VALUE|tec_habitat_base_production|ECO_CAT|planet_farmers|RESOURCE|food|REQUISITON|has_produce_requisitorium|REQUISITION_AMOUNT|@requisitorium_food_reduction| } # Resource production civic produces = { @@ -1117,20 +1125,20 @@ district_pdhab_energy = { tec_district_generate_basic_resources = yes } } - energy = 2 + food = 2 } # / } overlord_resources = { - category = planet_requisitioned_energy + category = planet_requisitioned_food produces = { trigger = { planet = { - has_planet_flag = has_energy_requisitorium + has_planet_flag = has_produce_requisitorium } } - energy = @requisitorium_energy_overlord + food = @requisitorium_food_overlord } } @@ -1159,7 +1167,6 @@ district_pdhab_energy = { } mult = value:tec_habitat_district_housing } - # Jobs triggered_planet_modifier = { #Regular @@ -1170,7 +1177,7 @@ district_pdhab_energy = { is_fallen_empire_spiritualist = no } } - job_technician_add = 1 + job_farmer_add = 1 mult = value:tec_habitat_job_count } @@ -1179,16 +1186,17 @@ district_pdhab_energy = { exists = owner owner = { is_fallen_empire_spiritualist = yes } } - job_fe_acolyte_generator_add = 1 + job_fe_acolyte_farm_add = 1 mult = value:tec_habitat_job_count } + triggered_planet_modifier = { # Machine potential = { exists = owner owner = { is_machine_empire = yes } } - job_technician_drone_add = 1 + job_agri_drone_add = 1 mult = value:tec_habitat_job_count } @@ -1197,10 +1205,11 @@ district_pdhab_energy = { exists = owner owner = { is_hive_empire = yes } } - job_technician_drone_add = 1 + job_agri_drone_add = 1 mult = value:tec_habitat_job_count } + # Descs triggered_desc = { trigger = { @@ -1213,7 +1222,7 @@ district_pdhab_energy = { has_planet_flag = advanced_habitat } } - text = job_technician_effect_desc + text = job_farmer_effect_desc } triggered_desc = { trigger = { @@ -1223,7 +1232,7 @@ district_pdhab_energy = { has_planet_flag = advanced_habitat } } - text = job_technician_drone_effect_desc + text = job_agri_drone_effect_desc } triggered_desc = { trigger = { @@ -1233,33 +1242,48 @@ district_pdhab_energy = { has_planet_flag = advanced_habitat } } - text = job_fe_acolyte_generator_effect_desc + text = job_fe_acolyte_farm_effect_desc } ai_resource_production = { - energy = 1 + food = 2 trigger = { always = yes } } } - -district_pdhab_mining = { +district_pdhab_energy_unlimited = { base_buildtime = 240 is_capped_by_modifier = no - + show_on_uncolonized = { uses_district_set = pdplanethab - has_planet_flag = pd_mining_hab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } + OR = { + has_planet_flag = pd_energy_hab + AND = { + exists = from + from = { is_gestalt = yes } + } + } NOT = { has_planet_flag = tec_arcology_habitat } } - + potential = { uses_district_set = pdplanethab - has_planet_flag = pd_mining_hab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } + OR = { + has_planet_flag = pd_energy_hab + AND = { + exists = owner + owner = { is_gestalt = yes } + } + } NOT = { has_planet_flag = tec_arcology_habitat } @@ -1267,24 +1291,33 @@ district_pdhab_mining = { conversion_ratio = 1 convert_to = { - district_mining - district_mining_uncapped - } + district_generator + district_generator_uncapped + district_hab_commercial + } + + allow = { + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + } resources = { - category = planet_districts_hab_mining + category = planet_districts_hab_energy cost = { minerals = @hab_cost } upkeep = { energy = @hab_maintenance - } + } # New production produces = { - minerals = 1 - multiplier = value:tec_automated_district_production|BASE|6|BASE_VALUE|tec_habitat_base_production|ECO_CAT|planet_miners|RESOURCE|minerals|REQUISITON|has_material_requisitorium|REQUISITION_AMOUNT|@requisitorium_minerals_reduction| + energy = 1 + multiplier = value:tec_automated_district_production|BASE|6|BASE_VALUE|tec_habitat_base_production|ECO_CAT|planet_technician|RESOURCE|energy|REQUISITON|has_energy_requisitorium|REQUISITION_AMOUNT|@requisitorium_energy_reduction| } + # / # Resource production civic produces = { trigger = { @@ -1293,20 +1326,20 @@ district_pdhab_mining = { tec_district_generate_basic_resources = yes } } - minerals = 2 + energy = 2 } # / } overlord_resources = { - category = planet_requisitioned_minerals + category = planet_requisitioned_energy produces = { trigger = { planet = { - has_planet_flag = has_material_requisitorium + has_planet_flag = has_energy_requisitorium } } - minerals = @requisitorium_minerals_overlord + energy = @requisitorium_energy_overlord } } @@ -1324,7 +1357,7 @@ district_pdhab_mining = { triggered_desc = { text = tec_building_affect_district_habitat } - + # Housing triggered_planet_modifier = { potential = { @@ -1345,100 +1378,661 @@ district_pdhab_mining = { is_fallen_empire_spiritualist = no } } - job_miner_add = 1 + job_technician_add = 1 mult = value:tec_habitat_job_count } - - triggered_planet_modifier = { # Fe - potential = { - exists = owner - owner = { is_fallen_empire_spiritualist = yes } - } - job_fe_acolyte_mine_add = 1 - mult = value:tec_habitat_job_count - } - - triggered_planet_modifier = { # Machine - potential = { + triggered_desc = { + trigger = { exists = owner - owner = { is_machine_empire = yes } + owner = { + is_gestalt = no + is_fallen_empire_spiritualist = no + } + planet = { + has_planet_flag = advanced_habitat + } } - job_mining_drone_add = 1 - mult = value:tec_habitat_job_count + text = job_technician_effect_desc } - triggered_planet_modifier = { # Hive + triggered_planet_modifier = { # Fe potential = { exists = owner - owner = { is_hive_empire = yes } + owner = { is_fallen_empire_spiritualist = yes } } - job_mining_drone_add = 1 + job_fe_acolyte_generator_add = 1 mult = value:tec_habitat_job_count } - - # Descs triggered_desc = { trigger = { exists = owner - owner = { - is_gestalt = no - is_fallen_empire_spiritualist = no - } + owner = { is_fallen_empire_spiritualist = yes } planet = { has_planet_flag = advanced_habitat } } - text = job_miner_effect_desc + text = job_fe_acolyte_generator_effect_desc } - triggered_desc = { - trigger = { + + triggered_planet_modifier = { # Gestalt + potential = { exists = owner owner = { is_gestalt = yes } - planet = { - has_planet_flag = advanced_habitat - } } - text = job_mining_drone_effect_desc + job_technician_drone_add = 1 + mult = value:tec_habitat_job_count } triggered_desc = { trigger = { exists = owner - owner = { is_fallen_empire_spiritualist = yes } + owner = { is_gestalt = yes } planet = { has_planet_flag = advanced_habitat } } - text = job_fe_acolyte_mine_effect_desc + text = job_technician_drone_effect_desc } ai_resource_production = { - minerals = 1 + energy = 1 trigger = { always = yes } } } -district_pdhab_science = { +district_pdhab_energy = { base_buildtime = 240 - is_capped_by_modifier = no + min_for_deposits_on_planet = 3 + max_for_deposits_on_planet = 15 + show_on_uncolonized = { uses_district_set = pdplanethab - has_planet_flag = pd_science_hab + OR = { + has_modifier = hab_terraforming_candidate + has_modifier = hab_pdhabsubglacialocean + } NOT = { has_planet_flag = tec_arcology_habitat } } - + + potential = { + uses_district_set = pdplanethab + OR = { + has_modifier = hab_terraforming_candidate + has_modifier = hab_pdhabsubglacialocean + } + NOT = { + has_planet_flag = tec_arcology_habitat + } + } + + allow = { + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + } + + conversion_ratio = 1 + convert_to = { + district_generator + district_generator_uncapped + } + + resources = { + category = planet_districts_hab_energy + cost = { + minerals = @hab_cost + } + # New production + produces = { + energy = 1 + multiplier = value:tec_automated_district_production|BASE|6|BASE_VALUE|tec_habitat_base_production|ECO_CAT|planet_technician|RESOURCE|energy|REQUISITON|has_energy_requisitorium|REQUISITION_AMOUNT|@requisitorium_energy_reduction| + } + # Resource production civic + produces = { + trigger = { + exists = owner + owner = { + tec_district_generate_basic_resources = yes + } + } + energy = 2 + } + # / + } + + overlord_resources = { + category = planet_requisitioned_energy + produces = { + trigger = { + planet = { + has_planet_flag = has_energy_requisitorium + } + } + energy = @requisitorium_energy_overlord + } + } + + # Indications + triggered_desc = { + trigger = { + planet = { + NOT = { + has_planet_flag = advanced_habitat_2 + } + } + } + text = tec_upgradeable_district_habitat + } + triggered_desc = { + text = tec_building_affect_district_habitat + } + + # Housing + triggered_planet_modifier = { + potential = { + always = yes + } + modifier = { + planet_housing_add = 1 + } + mult = value:tec_habitat_district_housing + } + + + # Jobs + triggered_planet_modifier = { #Regular + potential = { + exists = owner + owner = { + is_gestalt = no + is_fallen_empire_spiritualist = no + } + } + job_technician_add = 1 + mult = value:tec_habitat_job_count + } + + triggered_planet_modifier = { # Fe + potential = { + exists = owner + owner = { is_fallen_empire_spiritualist = yes } + } + job_fe_acolyte_generator_add = 1 + mult = value:tec_habitat_job_count + } + + triggered_planet_modifier = { # Machine + potential = { + exists = owner + owner = { is_machine_empire = yes } + } + job_technician_drone_add = 1 + mult = value:tec_habitat_job_count + } + + triggered_planet_modifier = { # Hive + potential = { + exists = owner + owner = { is_hive_empire = yes } + } + job_technician_drone_add = 1 + mult = value:tec_habitat_job_count + } + + # Descs + triggered_desc = { + trigger = { + exists = owner + owner = { + is_gestalt = no + is_fallen_empire_spiritualist = no + } + planet = { + has_planet_flag = advanced_habitat + } + } + text = job_technician_effect_desc + } + triggered_desc = { + trigger = { + exists = owner + owner = { is_gestalt = yes } + planet = { + has_planet_flag = advanced_habitat + } + } + text = job_technician_drone_effect_desc + } + triggered_desc = { + trigger = { + exists = owner + owner = { is_fallen_empire_spiritualist = yes } + planet = { + has_planet_flag = advanced_habitat + } + } + text = job_fe_acolyte_generator_effect_desc + } + + ai_resource_production = { + energy = 1 + trigger = { + always = yes + } + } +} + +district_pdhab_mining_unlimited = { + base_buildtime = 240 + is_capped_by_modifier = no + + show_on_uncolonized = { + uses_district_set = pdplanethab + has_planet_flag = pd_mining_hab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } + + + NOT = { + has_planet_flag = tec_arcology_habitat + } + } + + potential = { + uses_district_set = pdplanethab + has_planet_flag = pd_mining_hab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } + + + NOT = { + has_planet_flag = tec_arcology_habitat + } + } + + allow = { + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + } + + conversion_ratio = 1 + convert_to = { + district_mining + district_mining_uncapped + } + + resources = { + category = planet_districts_hab_mining + cost = { + minerals = @hab_cost + } + upkeep = { + energy = @hab_maintenance + } + # New production + produces = { + minerals = 1 + multiplier = value:tec_automated_district_production|BASE|6|BASE_VALUE|tec_habitat_base_production|ECO_CAT|planet_miners|RESOURCE|minerals|REQUISITON|has_material_requisitorium|REQUISITION_AMOUNT|@requisitorium_minerals_reduction| + } + # / + # Resource production civic + produces = { + trigger = { + exists = owner + owner = { + tec_district_generate_basic_resources = yes + } + } + minerals = 2 + } + # / + } + + overlord_resources = { + category = planet_requisitioned_minerals + produces = { + trigger = { + planet = { + has_planet_flag = has_material_requisitorium + } + } + minerals = @requisitorium_minerals_overlord + } + } + + # Indications + triggered_desc = { + trigger = { + planet = { + NOT = { + has_planet_flag = advanced_habitat_2 + } + } + } + text = tec_upgradeable_district_habitat + } + triggered_desc = { + text = tec_building_affect_district_habitat + } + + + # Housing + triggered_planet_modifier = { + potential = { + planet = { + has_planet_flag = advanced_habitat + } + } + planet_housing_add = 1 + } + triggered_planet_modifier = { + potential = { + planet = { + has_planet_flag = advanced_habitat_2 + } + } + planet_housing_add = 1 + } + + # Jobs + triggered_planet_modifier = { #Regular + potential = { + exists = owner + owner = { + is_gestalt = no + is_fallen_empire_spiritualist = no + } + } + job_miner_add = 1 + mult = value:tec_habitat_job_count + } + triggered_desc = { + trigger = { + exists = owner + owner = { + is_gestalt = no + is_fallen_empire_spiritualist = no + } + planet = { + has_planet_flag = advanced_habitat + } + } + text = job_miner_effect_desc + } + + triggered_planet_modifier = { # Fe + potential = { + exists = owner + owner = { is_fallen_empire_spiritualist = yes } + } + job_fe_acolyte_mine_add = 1 + mult = value:tec_habitat_job_count + } + triggered_desc = { + trigger = { + exists = owner + owner = { is_fallen_empire_spiritualist = yes } + planet = { + has_planet_flag = advanced_habitat + } + } + text = job_fe_acolyte_mine_effect_desc + } + + triggered_planet_modifier = { # Gestalt + potential = { + exists = owner + owner = { is_gestalt = yes } + } + job_mining_drone_add = 1 + mult = value:tec_habitat_job_count + } + triggered_desc = { + trigger = { + exists = owner + owner = { is_gestalt = yes } + planet = { + has_planet_flag = advanced_habitat + } + } + text = job_mining_drone_effect_desc + } + + ai_resource_production = { + minerals = 1 + trigger = { + always = yes + } + } +} + +district_pdhab_mining = { + base_buildtime = 240 + min_for_deposits_on_planet = 5 + max_for_deposits_on_planet = 15 + + show_on_uncolonized = { + uses_district_set = pdplanethab + OR = { + has_modifier = hab_terraforming_candidate + has_modifier = hab_pdhabsubglacialocean + } + NOT = { + has_planet_flag = tec_arcology_habitat + } + } + + potential = { + uses_district_set = pdplanethab + OR = { + has_modifier = hab_terraforming_candidate + has_modifier = hab_pdhabsubglacialocean + } + NOT = { + has_planet_flag = tec_arcology_habitat + } + } + + allow = { + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + } + + conversion_ratio = 1 + convert_to = { + district_mining + district_mining_uncapped + } + + resources = { + category = planet_districts_hab_mining + cost = { + minerals = @hab_cost + } + upkeep = { + energy = @hab_maintenance + } + + # New production + produces = { + minerals = 1 + multiplier = value:tec_automated_district_production|BASE|6|BASE_VALUE|tec_habitat_base_production|ECO_CAT|planet_miners|RESOURCE|minerals|REQUISITON|has_material_requisitorium|REQUISITION_AMOUNT|@requisitorium_minerals_reduction| + } + # Resource production civic + produces = { + trigger = { + exists = owner + owner = { + tec_district_generate_basic_resources = yes + } + } + minerals = 2 + } + # / + } + + overlord_resources = { + category = planet_requisitioned_minerals + produces = { + trigger = { + planet = { + has_planet_flag = has_material_requisitorium + } + } + minerals = @requisitorium_minerals_overlord + } + } + + # Indications + triggered_desc = { + trigger = { + planet = { + NOT = { + has_planet_flag = advanced_habitat_2 + } + } + } + text = tec_upgradeable_district_habitat + } + triggered_desc = { + text = tec_building_affect_district_habitat + } + + # Housing + triggered_planet_modifier = { + potential = { + always = yes + } + modifier = { + planet_housing_add = 1 + } + mult = value:tec_habitat_district_housing + } + + # Jobs + triggered_planet_modifier = { #Regular + potential = { + exists = owner + owner = { + is_gestalt = no + is_fallen_empire_spiritualist = no + } + } + job_miner_add = 1 + mult = value:tec_habitat_job_count + } + + triggered_planet_modifier = { # Fe + potential = { + exists = owner + owner = { is_fallen_empire_spiritualist = yes } + } + job_fe_acolyte_mine_add = 1 + mult = value:tec_habitat_job_count + } + + triggered_planet_modifier = { # Machine + potential = { + exists = owner + owner = { is_machine_empire = yes } + } + job_mining_drone_add = 1 + mult = value:tec_habitat_job_count + } + + triggered_planet_modifier = { # Hive + potential = { + exists = owner + owner = { is_hive_empire = yes } + } + job_mining_drone_add = 1 + mult = value:tec_habitat_job_count + } + + # Descs + triggered_desc = { + trigger = { + exists = owner + owner = { + is_gestalt = no + is_fallen_empire_spiritualist = no + } + planet = { + has_planet_flag = advanced_habitat + } + } + text = job_miner_effect_desc + } + triggered_desc = { + trigger = { + exists = owner + owner = { is_gestalt = yes } + planet = { + has_planet_flag = advanced_habitat + } + } + text = job_mining_drone_effect_desc + } + triggered_desc = { + trigger = { + exists = owner + owner = { is_fallen_empire_spiritualist = yes } + planet = { + has_planet_flag = advanced_habitat + } + } + text = job_fe_acolyte_mine_effect_desc + } + + ai_resource_production = { + minerals = 1 + trigger = { + always = yes + } + } +} + +district_pdhab_science = { + base_buildtime = 240 + is_capped_by_modifier = no + + show_on_uncolonized = { + uses_district_set = pdplanethab + has_planet_flag = pd_science_hab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } + NOT = { + has_planet_flag = tec_arcology_habitat + } + } + potential = { uses_district_set = pdplanethab has_planet_flag = pd_science_hab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } NOT = { has_planet_flag = tec_arcology_habitat } } + allow = { + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = penal_habitat } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + } + conversion_ratio = 0.5 convert_to = { district_tec_hab_arcology_research @@ -1606,7 +2200,8 @@ district_pdhab_commercial = { show_on_uncolonized = { uses_district_set = pdplanethab - has_planet_flag = pd_commercial_hab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } exists = from from = { @@ -1619,7 +2214,8 @@ district_pdhab_commercial = { potential = { uses_district_set = pdplanethab - has_planet_flag = pd_commercial_hab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } exists = owner owner = { @@ -1630,6 +2226,14 @@ district_pdhab_commercial = { } } + allow = { + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = penal_habitat } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + } + conversion_ratio = 0.5 convert_to = { district_hab_energy @@ -1763,6 +2367,8 @@ district_pdhab_cultural = { show_on_uncolonized = { uses_district_set = pdplanethab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } exists = from from = { OR = { @@ -1778,6 +2384,8 @@ district_pdhab_cultural = { potential = { uses_district_set = pdplanethab + NOT = { has_modifier = hab_terraforming_candidate } + NOT = { has_modifier = hab_pdhabsubglacialocean } exists = owner owner = { OR = { @@ -1790,6 +2398,14 @@ district_pdhab_cultural = { } } + allow = { + NOT = { has_modifier = resort_colony } + NOT = { has_modifier = resort_colony_pd_hab } + NOT = { has_modifier = penal_habitat } + NOT = { has_modifier = military_pd_habitat_reg } + NOT = { has_modifier = military_pd_habitat_ges } + } + conversion_ratio = 0.5 convert_to = { district_hab_energy @@ -1904,96 +2520,3 @@ district_pdhab_cultural = { } } -district_pdhab_mil = { - base_buildtime = 240 - is_capped_by_modifier = no - - show_on_uncolonized = { - uses_district_set = pdplanethab - has_planet_flag = pd_mil_hab - NOT = { - has_planet_flag = tec_arcology_habitat - } - } - - potential = { - uses_district_set = pdplanethab - has_planet_flag = pd_mil_hab - NOT = { - has_planet_flag = tec_arcology_habitat - } - } - - conversion_ratio = 0.5 - convert_to = { - district_tec_hab_arcology_industry - district_tec_hab_arcology_foundry - district_tec_hab_arcology_research - } - - planet_modifier = { - planet_housing_add = 2 - } - - resources = { - category = planet_districts_hab_mining - cost = { - minerals = @hab_cost - } - upkeep = { - energy = @hab_maintenance - } - } - - triggered_planet_modifier = { - potential = { - exists = owner - owner = { is_hive_empire = yes } - } - modifier = { - job_warrior_drone_add = 2 - } - } - - triggered_planet_modifier = { - potential = { - exists = owner - owner = { is_machine_empire = yes } - } - modifier = { - job_warrior_drone_add = 2 - } - } - - triggered_planet_modifier = { - potential = { - exists = owner - owner = { - is_gestalt = no - is_fallen_empire_spiritualist = no - } - } - modifier = { - job_soldier_add = 2 - } - } - - triggered_desc = { - trigger = { - exists = owner - owner = { is_gestalt = yes } - } - text = job_warrior_drone_effect_desc - } - triggered_desc = { - trigger = { - exists = owner - owner = { - is_gestalt = no - is_fallen_empire_spiritualist = no - } - } - text = job_soldier_effect_desc - } -} - diff --git a/common/megastructures/zz_evolved_planethab_habitats.txt b/common/megastructures/zz_evolved_planethab_habitats.txt index 03dcf19..0ac567c 100644 --- a/common/megastructures/zz_evolved_planethab_habitats.txt +++ b/common/megastructures/zz_evolved_planethab_habitats.txt @@ -5,7 +5,8 @@ pd_asteroid_hab_0 = { construction_entity = "" portrait = "GFX_megastructure_construction_background" place_entity_on_planet_plane = yes - build_time = 450 + show_galactic_map_icon = no + build_time = 900 resources = { category = megastructures @@ -46,7 +47,7 @@ pd_asteroid_hab_0 = { #can_build_megastructure_on_planet = yes NOR = { has_planet_flag = megastructure - has_planet_flag = has_megastructure + # has_planet_flag = has_megastructure solar_system = { has_star_flag = ring_world_built } @@ -72,42 +73,6 @@ pd_asteroid_hab_0 = { # from = country ai_weight = { factor = 0 - - modifier = { - factor = 0 - starbase = { NOT = { has_starbase_size >= starbase_starhold } } - } - - modifier = { - factor = 0 - any_system_planet = { - is_planet_class = pc_pd_asteroid_hab - is_colony = no - } - } - - modifier = { - factor = 3 - solar_system = { - exists = owner - is_same_value = owner.capital_scope.solar_system - } - } - modifier = { - factor = 2 - any_neighbor_system = { - exists = owner - is_same_value = owner.capital_scope.solar_system - } - } - - modifier = { - factor = 0.1 - any_neighbor_system = { - exists = owner - owner = { NOT = { is_same_value = from } } - } - } } on_build_start = {} @@ -117,6 +82,7 @@ pd_asteroid_hab_0 = { fromfrom.planet = { set_planet_flag = pdhab set_planet_flag = colony_event + set_planet_flag = has_megastructure ROOT = { set_star_flag = pdhab } clear_blockers = yes #IF = { @@ -184,8 +150,6 @@ pd_asteroid_hab_0 = { remove_deposit = d_minerals_9 remove_deposit = d_minerals_10 set_planet_flag = pd_mining_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { @@ -214,8 +178,6 @@ pd_asteroid_hab_0 = { remove_deposit = d_energy_9 remove_deposit = d_energy_10 set_planet_flag = pd_energy_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { @@ -254,8 +216,7 @@ pd_asteroid_hab_0 = { } } set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + remove_deposit = d_society_1 remove_deposit = d_society_2 remove_deposit = d_society_3 @@ -314,8 +275,6 @@ pd_asteroid_hab_0 = { remove_deposit = d_trade_value_9 remove_deposit = d_trade_value_10 set_planet_flag = pd_commercial_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { @@ -433,8 +392,6 @@ pd_asteroid_hab_0 = { remove_deposit = d_zro_deposit_1 add_deposit = d_hab_zro_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { limit = { @@ -443,8 +400,6 @@ pd_asteroid_hab_0 = { remove_deposit = d_zro_deposit_2 add_deposit = d_hab_zro_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { limit = { @@ -453,8 +408,6 @@ pd_asteroid_hab_0 = { remove_deposit = d_zro_deposit_3 add_deposit = d_hab_zro_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { @@ -464,8 +417,6 @@ pd_asteroid_hab_0 = { remove_deposit = d_dark_matter_deposit_1 add_deposit = d_hab_dark_matter_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { limit = { @@ -474,8 +425,6 @@ pd_asteroid_hab_0 = { remove_deposit = d_dark_matter_deposit_2 add_deposit = d_hab_dark_matter_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { limit = { @@ -484,8 +433,6 @@ pd_asteroid_hab_0 = { remove_deposit = d_dark_matter_deposit_3 add_deposit = d_hab_dark_matter_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { @@ -495,8 +442,6 @@ pd_asteroid_hab_0 = { remove_deposit = d_living_metal_deposit add_deposit = d_hab_living_metal_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { @@ -506,8 +451,8 @@ pd_asteroid_hab_0 = { remove_deposit = d_alloys_1 add_deposit = d_hab_alloy_1 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -516,8 +461,8 @@ pd_asteroid_hab_0 = { remove_deposit = d_alloys_2 add_deposit = d_hab_alloy_2 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -526,8 +471,8 @@ pd_asteroid_hab_0 = { remove_deposit = d_alloys_3 add_deposit = d_hab_alloy_3 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -536,8 +481,8 @@ pd_asteroid_hab_0 = { remove_deposit = d_alloys_4 add_deposit = d_hab_alloy_4 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -546,8 +491,8 @@ pd_asteroid_hab_0 = { remove_deposit = d_hab_alloy_5 add_deposit = d_hab_alloy_5 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -556,22 +501,20 @@ pd_asteroid_hab_0 = { remove_deposit = d_nanites_deposit add_deposit = d_hab_nanites_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { fromfrom.planet = { has_modifier = terraforming_candidate } } set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } - IF = { - limit = { - planet_size = 5 - } - add_deposit = d_bblock4 + add_modifier = { + modifier = pdhablevel1 + days = -1 } tec_void_dweller_auto_colonize = { OWNER = root.from } } @@ -587,13 +530,14 @@ pd_barren_hab_0 = { construction_entity = "" portrait = "GFX_megastructure_construction_background" place_entity_on_planet_plane = yes + show_galactic_map_icon = no build_time = 900 resources = { category = megastructures cost = { - alloys = 750 - influence = 75 + alloys = 1000 + influence = 100 } } construction_blocks_and_blocked_by = none @@ -628,7 +572,7 @@ pd_barren_hab_0 = { #can_build_megastructure_on_planet = yes NOR = { has_planet_flag = megastructure - has_planet_flag = has_megastructure + # has_planet_flag = has_megastructure solar_system = { has_star_flag = ring_world_built } @@ -647,11 +591,11 @@ pd_barren_hab_0 = { fail_text = "requires_not_minor_planetary_body" NOT = { is_asteroid = yes } } - custom_tooltip = { - fail_text = "requires_different_size" - planet_size <= 25 - planet_size >= 2 - } + # custom_tooltip = { + # fail_text = "requires_different_size" + # planet_size <= 25 + # planet_size >= 2 + # } custom_tooltip = { fail_text = "is_barrenorcold" OR = { @@ -667,23 +611,19 @@ pd_barren_hab_0 = { } # root = system - # from = country + # from = country ai_weight = { - factor = 0 - + factor = 1 + modifier = { factor = 0 - starbase = { NOT = { has_starbase_size >= starbase_starhold } } + starbase = { NOT = { has_starbase_size >= starbase_starfortress } } } modifier = { factor = 0 any_system_planet = { - or = { - is_planet_class = pc_pd_barren_hab - is_planet_class = pc_pd_barren_cold_hab - } - is_colony = no + is_pd_habitat = yes } } @@ -696,28 +636,9 @@ pd_barren_hab_0 = { } modifier = { factor = 2 - any_neighbor_system = { - exists = owner - is_same_value = owner.capital_scope.solar_system - } - } - - modifier = { - factor = 0.1 - any_neighbor_system = { - exists = owner - owner = { NOT = { is_same_value = from } } - } + exists = sector + sector = { has_sector_type = core_sector } } - - modifier = { - factor = 0 - owner = { - or = { - resource_stockpile_compare = { resource = alloys value < 5000 } - } - } - } } on_build_start = {} @@ -843,6 +764,22 @@ pd_barren_hab_0 = { } } } + if = { + limit = { + planet_size > 25 + } + add_modifier = { + modifier = high_gravity days = -1 + } + } + if = { + limit = { + planet_size < 10 + } + add_modifier = { + modifier = low_gravity days = -1 + } + } if = { limit = { OR = { @@ -873,8 +810,6 @@ pd_barren_hab_0 = { remove_deposit = d_minerals_9 remove_deposit = d_minerals_10 set_planet_flag = pd_mining_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } } if = { @@ -903,8 +838,8 @@ pd_barren_hab_0 = { remove_deposit = d_energy_9 remove_deposit = d_energy_10 set_planet_flag = pd_energy_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -943,8 +878,8 @@ pd_barren_hab_0 = { } } set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + remove_deposit = d_society_1 remove_deposit = d_society_2 remove_deposit = d_society_3 @@ -1003,8 +938,8 @@ pd_barren_hab_0 = { remove_deposit = d_trade_value_9 remove_deposit = d_trade_value_10 set_planet_flag = pd_commercial_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -1122,8 +1057,8 @@ pd_barren_hab_0 = { remove_deposit = d_zro_deposit_1 add_deposit = d_hab_zro_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1132,8 +1067,8 @@ pd_barren_hab_0 = { remove_deposit = d_zro_deposit_2 add_deposit = d_hab_zro_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1142,8 +1077,8 @@ pd_barren_hab_0 = { remove_deposit = d_zro_deposit_3 add_deposit = d_hab_zro_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -1153,8 +1088,8 @@ pd_barren_hab_0 = { remove_deposit = d_dark_matter_deposit_1 add_deposit = d_hab_dark_matter_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1163,8 +1098,8 @@ pd_barren_hab_0 = { remove_deposit = d_dark_matter_deposit_2 add_deposit = d_hab_dark_matter_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1173,8 +1108,8 @@ pd_barren_hab_0 = { remove_deposit = d_dark_matter_deposit_3 add_deposit = d_hab_dark_matter_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -1184,8 +1119,8 @@ pd_barren_hab_0 = { remove_deposit = d_living_metal_deposit add_deposit = d_hab_living_metal_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -1195,8 +1130,8 @@ pd_barren_hab_0 = { remove_deposit = d_alloys_1 add_deposit = d_hab_alloy_1 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1205,8 +1140,8 @@ pd_barren_hab_0 = { remove_deposit = d_alloys_2 add_deposit = d_hab_alloy_2 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1215,8 +1150,8 @@ pd_barren_hab_0 = { remove_deposit = d_alloys_3 add_deposit = d_hab_alloy_3 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1225,8 +1160,8 @@ pd_barren_hab_0 = { remove_deposit = d_alloys_4 add_deposit = d_hab_alloy_4 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1235,8 +1170,8 @@ pd_barren_hab_0 = { remove_deposit = d_hab_alloy_5 add_deposit = d_hab_alloy_5 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1245,18 +1180,16 @@ pd_barren_hab_0 = { remove_deposit = d_nanites_deposit add_deposit = d_hab_nanites_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { - limit = { - fromfrom.planet = { has_modifier = terraforming_candidate } - } - set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + limit = { fromfrom.planet = { has_modifier = terraforming_candidate } } remove_modifier = terraforming_candidate add_modifier = { modifier = hab_terraforming_candidate days = -1 } + reroll_deposits = yes + clear_blockers = yes + remove_deposit = d_prospectorium_strip_mine } IF = { limit = { @@ -1297,176 +1230,9 @@ pd_barren_hab_0 = { entity = "pdcmoon_planet_luna_entity" } } - IF = { - limit = { - planet_size = 25 - } - add_deposit = d_bblock15 - add_deposit = d_bblock5 - add_deposit = d_bblock1 - } - IF = { - limit = { - planet_size = 24 - } - add_deposit = d_bblock15 - add_deposit = d_bblock5 - } - IF = { - limit = { - planet_size = 23 - } - add_deposit = d_bblock15 - add_deposit = d_bblock4 - } - IF = { - limit = { - planet_size = 22 - } - add_deposit = d_bblock15 - add_deposit = d_bblock3 - } - IF = { - limit = { - planet_size = 21 - } - add_deposit = d_bblock15 - add_deposit = d_bblock2 - } - IF = { - limit = { - planet_size = 20 - } - add_deposit = d_bblock15 - add_deposit = d_bblock1 - } - IF = { - limit = { - planet_size = 19 - } - add_deposit = d_bblock15 - } - IF = { - limit = { - planet_size = 18 - } - add_deposit = d_bblock10 - add_deposit = d_bblock4 - } - IF = { - limit = { - planet_size = 17 - } - add_deposit = d_bblock10 - add_deposit = d_bblock3 - } - IF = { - limit = { - planet_size = 16 - } - add_deposit = d_bblock10 - add_deposit = d_bblock2 - } - IF = { - limit = { - planet_size = 15 - } - add_deposit = d_bblock10 - add_deposit = d_bblock1 - } - IF = { - limit = { - planet_size = 14 - } - add_deposit = d_bblock10 - } - IF = { - limit = { - planet_size = 13 - } - add_deposit = d_bblock5 - add_deposit = d_bblock4 - } - IF = { - limit = { - planet_size = 12 - } - add_deposit = d_bblock5 - add_deposit = d_bblock3 - } - IF = { - limit = { - planet_size = 11 - } - add_deposit = d_bblock5 - add_deposit = d_bblock2 - } - IF = { - limit = { - planet_size = 10 - is_moon = no - } - add_deposit = d_bblock5 - add_deposit = d_bblock1 - } - IF = { - limit = { - planet_size = 10 - is_moon = yes - } - add_deposit = d_bblock5 - add_deposit = d_bblock3 - } - IF = { - limit = { - planet_size = 9 - is_moon = yes - } - add_deposit = d_bblock5 - add_deposit = d_bblock2 - } - IF = { - limit = { - planet_size = 8 - is_moon = yes - } - add_deposit = d_bblock5 - add_deposit = d_bblock1 - } - IF = { - limit = { - planet_size = 7 - is_moon = yes - } - add_deposit = d_bblock5 - } - IF = { - limit = { - planet_size = 6 - is_moon = yes - } - add_deposit = d_bblock4 - } - IF = { - limit = { - planet_size = 5 - is_moon = yes - } - add_deposit = d_bblock3 - } - IF = { - limit = { - planet_size = 4 - is_moon = yes - } - add_deposit = d_bblock2 - } - IF = { - limit = { - planet_size = 3 - is_moon = yes - } - add_deposit = d_bblock1 + add_modifier = { + modifier = pdhablevel1 + days = -1 } tec_void_dweller_auto_colonize = { OWNER = root.from } } @@ -1482,6 +1248,7 @@ pd_frozen_hab_0 = { construction_entity = "" portrait = "GFX_megastructure_construction_background" place_entity_on_planet_plane = yes + show_galactic_map_icon = no build_time = 900 resources = { @@ -1523,7 +1290,7 @@ pd_frozen_hab_0 = { #can_build_megastructure_on_planet = yes NOR = { has_planet_flag = megastructure - has_planet_flag = has_megastructure + # has_planet_flag = has_megastructure solar_system = { has_star_flag = ring_world_built } @@ -1542,11 +1309,11 @@ pd_frozen_hab_0 = { fail_text = "requires_not_minor_planetary_body" NOT = { is_asteroid = yes } } - custom_tooltip = { - fail_text = "requires_different_size" - planet_size <= 25 - planet_size >= 2 - } + # custom_tooltip = { + # fail_text = "requires_different_size" + # planet_size <= 25 + # planet_size >= 2 + # } custom_tooltip = { fail_text = "is_frozen" OR = { @@ -1558,20 +1325,19 @@ pd_frozen_hab_0 = { } # root = system - # from = country + # from = country ai_weight = { - factor = 0 - + factor = 1 + modifier = { factor = 0 - starbase = { NOT = { has_starbase_size >= starbase_starhold } } + starbase = { NOT = { has_starbase_size >= starbase_starfortress } } } modifier = { factor = 0 any_system_planet = { - is_planet_class = pc_pd_frozen_hab - is_colony = no + is_pd_habitat = yes } } @@ -1584,28 +1350,9 @@ pd_frozen_hab_0 = { } modifier = { factor = 2 - any_neighbor_system = { - exists = owner - is_same_value = owner.capital_scope.solar_system - } - } - - modifier = { - factor = 0.1 - any_neighbor_system = { - exists = owner - owner = { NOT = { is_same_value = from } } - } + exists = sector + sector = { has_sector_type = core_sector } } - - modifier = { - factor = 0 - owner = { - or = { - resource_stockpile_compare = { resource = alloys value < 5000 } - } - } - } } on_build_start = {} @@ -1656,6 +1403,22 @@ pd_frozen_hab_0 = { } } } + if = { + limit = { + planet_size > 25 + } + add_modifier = { + modifier = high_gravity days = -1 + } + } + if = { + limit = { + planet_size < 10 + } + add_modifier = { + modifier = low_gravity days = -1 + } + } if = { limit = { OR = { @@ -1683,8 +1446,8 @@ pd_frozen_hab_0 = { remove_deposit = d_minerals_9 remove_deposit = d_minerals_10 set_planet_flag = pd_mining_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -1713,8 +1476,8 @@ pd_frozen_hab_0 = { remove_deposit = d_energy_9 remove_deposit = d_energy_10 set_planet_flag = pd_energy_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -1753,8 +1516,8 @@ pd_frozen_hab_0 = { } } set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + remove_deposit = d_society_1 remove_deposit = d_society_2 remove_deposit = d_society_3 @@ -1813,8 +1576,8 @@ pd_frozen_hab_0 = { remove_deposit = d_trade_value_9 remove_deposit = d_trade_value_10 set_planet_flag = pd_commercial_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1945,8 +1708,8 @@ pd_frozen_hab_0 = { remove_deposit = d_zro_deposit_1 add_deposit = d_hab_zro_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1955,8 +1718,8 @@ pd_frozen_hab_0 = { remove_deposit = d_zro_deposit_2 add_deposit = d_hab_zro_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1965,8 +1728,8 @@ pd_frozen_hab_0 = { remove_deposit = d_zro_deposit_3 add_deposit = d_hab_zro_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -1976,8 +1739,8 @@ pd_frozen_hab_0 = { remove_deposit = d_dark_matter_deposit_1 add_deposit = d_hab_dark_matter_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1986,8 +1749,8 @@ pd_frozen_hab_0 = { remove_deposit = d_dark_matter_deposit_2 add_deposit = d_hab_dark_matter_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -1996,8 +1759,8 @@ pd_frozen_hab_0 = { remove_deposit = d_dark_matter_deposit_3 add_deposit = d_hab_dark_matter_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -2007,8 +1770,8 @@ pd_frozen_hab_0 = { remove_deposit = d_living_metal_deposit add_deposit = d_hab_living_metal_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -2018,8 +1781,8 @@ pd_frozen_hab_0 = { remove_deposit = d_alloys_1 add_deposit = d_hab_alloy_1 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2028,8 +1791,8 @@ pd_frozen_hab_0 = { remove_deposit = d_alloys_2 add_deposit = d_hab_alloy_2 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2038,8 +1801,8 @@ pd_frozen_hab_0 = { remove_deposit = d_alloys_3 add_deposit = d_hab_alloy_3 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2048,8 +1811,8 @@ pd_frozen_hab_0 = { remove_deposit = d_alloys_4 add_deposit = d_hab_alloy_4 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2058,8 +1821,8 @@ pd_frozen_hab_0 = { remove_deposit = d_hab_alloy_5 add_deposit = d_hab_alloy_5 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2068,26 +1831,34 @@ pd_frozen_hab_0 = { remove_deposit = d_nanites_deposit add_deposit = d_hab_nanites_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { - limit = { - fromfrom.planet = { has_modifier = terraforming_candidate } - } - set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + limit = { fromfrom.planet = { has_modifier = terraforming_candidate } } + remove_modifier = terraforming_candidate + add_modifier = { modifier = hab_terraforming_candidate days = -1 } + reroll_deposits = yes + clear_blockers = yes + remove_deposit = d_prospectorium_strip_mine } if = { - limit = { - fromfrom.planet = { has_modifier = terraforming_candidate } - } - set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } - remove_modifier = terraforming_candidate + limit = { fromfrom.planet = { has_modifier = pdhabsubglacialocean } } + remove_modifier = pdhabsubglacialocean + add_modifier = { modifier = hab_pdhabsubglacialocean days = -1 } + reroll_deposits = yes + clear_blockers = yes + remove_deposit = d_prospectorium_strip_mine + add_deposit = d_phab_food_subglacial + add_deposit = d_phab_food_subglacial + } + if = { + limit = { fromfrom.planet = { has_modifier = frozen_terraforming_candidate } } + remove_modifier = frozen_terraforming_candidate add_modifier = { modifier = hab_terraforming_candidate days = -1 } + reroll_deposits = yes + clear_blockers = yes + remove_deposit = d_prospectorium_strip_mine } IF = { limit = { @@ -2098,221 +1869,55 @@ pd_frozen_hab_0 = { entity = "fhab_moon_01_entity" } } - IF = { - limit = { - planet_size = 25 - } - add_deposit = d_fblock15 - add_deposit = d_fblock5 - add_deposit = d_fblock1 + add_modifier = { + modifier = pdhablevel1 + days = -1 } - IF = { - limit = { - planet_size = 24 - } - add_deposit = d_fblock15 - add_deposit = d_fblock5 - } - IF = { - limit = { - planet_size = 23 - } - add_deposit = d_fblock15 - add_deposit = d_fblock4 - } - IF = { - limit = { - planet_size = 22 - } - add_deposit = d_fblock15 - add_deposit = d_fblock3 - } - IF = { - limit = { - planet_size = 21 - } - add_deposit = d_fblock15 - add_deposit = d_fblock2 - } - IF = { - limit = { - planet_size = 20 - } - add_deposit = d_fblock15 - add_deposit = d_fblock1 - } - IF = { - limit = { - planet_size = 19 - } - add_deposit = d_fblock15 - } - IF = { - limit = { - planet_size = 18 - } - add_deposit = d_fblock10 - add_deposit = d_fblock4 - } - IF = { - limit = { - planet_size = 17 - } - add_deposit = d_fblock10 - add_deposit = d_fblock3 - } - IF = { - limit = { - planet_size = 16 - } - add_deposit = d_fblock10 - add_deposit = d_fblock2 - } - IF = { - limit = { - planet_size = 15 - } - add_deposit = d_fblock10 - add_deposit = d_fblock1 - } - IF = { - limit = { - planet_size = 14 - } - add_deposit = d_fblock10 - } - IF = { - limit = { - planet_size = 13 - } - add_deposit = d_fblock5 - add_deposit = d_fblock4 - } - IF = { - limit = { - planet_size = 12 - } - add_deposit = d_fblock5 - add_deposit = d_fblock3 - } - IF = { - limit = { - planet_size = 11 - } - add_deposit = d_fblock5 - add_deposit = d_fblock2 - } - IF = { - limit = { - planet_size = 10 - is_moon = no - } - add_deposit = d_fblock5 - add_deposit = d_fblock1 - } - IF = { - limit = { - planet_size = 10 - is_moon = yes - } - add_deposit = d_fblock5 - add_deposit = d_fblock3 - } - IF = { - limit = { - planet_size = 9 - is_moon = yes - } - add_deposit = d_fblock5 - add_deposit = d_fblock2 - } - IF = { - limit = { - planet_size = 8 - is_moon = yes - } - add_deposit = d_fblock5 - add_deposit = d_fblock1 - } - IF = { - limit = { - planet_size = 7 - is_moon = yes - } - add_deposit = d_fblock5 - } - IF = { - limit = { - planet_size = 6 - is_moon = yes - } - add_deposit = d_fblock4 - } - IF = { - limit = { - planet_size = 5 - is_moon = yes - } - add_deposit = d_fblock3 - } - IF = { - limit = { - planet_size = 4 - is_moon = yes - } - add_deposit = d_fblock2 - } - IF = { - limit = { - planet_size = 3 - is_moon = yes - } - add_deposit = d_fblock1 - } - tec_void_dweller_auto_colonize = { OWNER = root.from } - } - remove_megastructure = fromfrom - from = { country_event = { id = moonbase.00 } } - } -} - -# see README.txt for example - -pd_gas_giant_hab_0 = { - entity = "" - construction_entity = "" - portrait = "GFX_megastructure_construction_background" - place_entity_on_planet_plane = yes - build_time = 900 - - resources = { - category = megastructures - cost = { - alloys = 1500 - influence = 150 - } - } - construction_blocks_and_blocked_by = none - - potential = { - has_technology = tech_pdhabitat_2 - } - - possible = { - exists = starbase - custom_tooltip = { - fail_text = "requires_inside_border" - is_inside_border = from - } - } - - placement_rules = { - planet_possible = { - custom_tooltip = { - fail_text = "requires_surveyed_planet" - is_surveyed = { # prevent leaking habitability information - who = prev.from - status = yes + tec_void_dweller_auto_colonize = { OWNER = root.from } + } + remove_megastructure = fromfrom + from = { country_event = { id = moonbase.00 } } + } +} + +# see README.txt for example + +pd_gas_giant_hab_0 = { + entity = "" + construction_entity = "" + portrait = "GFX_megastructure_construction_background" + place_entity_on_planet_plane = yes + show_galactic_map_icon = no + build_time = 900 + + resources = { + category = megastructures + cost = { + alloys = 1500 + influence = 150 + } + } + construction_blocks_and_blocked_by = none + + potential = { + has_technology = tech_pdhabitat_2 + } + + possible = { + exists = starbase + custom_tooltip = { + fail_text = "requires_inside_border" + is_inside_border = from + } + } + + placement_rules = { + planet_possible = { + custom_tooltip = { + fail_text = "requires_surveyed_planet" + is_surveyed = { # prevent leaking habitability information + who = prev.from + status = yes } } custom_tooltip = { @@ -2324,7 +1929,7 @@ pd_gas_giant_hab_0 = { #can_build_megastructure_on_planet = yes NOR = { has_planet_flag = megastructure - has_planet_flag = has_megastructure + # has_planet_flag = has_megastructure solar_system = { has_star_flag = ring_world_built } @@ -2356,28 +1961,27 @@ pd_gas_giant_hab_0 = { is_planet_class = pc_cloudless_gas_giant } } - custom_tooltip = { - fail_text = "requires_different_size" - planet_size <= 30 - } + # custom_tooltip = { + # fail_text = "requires_different_size" + # planet_size <= 30 + # } } } # root = system # from = country ai_weight = { - factor = 0 - + factor = 1 + modifier = { factor = 0 - starbase = { NOT = { has_starbase_size >= starbase_starhold } } + starbase = { NOT = { has_starbase_size >= starbase_starfortress } } } modifier = { factor = 0 any_system_planet = { - is_planet_class = pc_pd_gas_giant_hab - is_colony = no + is_pd_habitat = yes } } @@ -2390,30 +1994,12 @@ pd_gas_giant_hab_0 = { } modifier = { factor = 2 - any_neighbor_system = { - exists = owner - is_same_value = owner.capital_scope.solar_system - } - } - - modifier = { - factor = 0.1 - any_neighbor_system = { - exists = owner - owner = { NOT = { is_same_value = from } } - } + exists = sector + sector = { has_sector_type = core_sector } } - - modifier = { - factor = 0 - owner = { - or = { - resource_stockpile_compare = { resource = alloys value < 5000 } - } - } - } } + on_build_start = {} on_build_cancel = {} @@ -2496,8 +2082,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_minerals_9 remove_deposit = d_minerals_10 set_planet_flag = pd_mining_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -2527,8 +2113,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_energy_9 remove_deposit = d_energy_10 set_planet_flag = pd_energy_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -2567,8 +2153,8 @@ pd_gas_giant_hab_0 = { } } set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + remove_deposit = d_society_1 remove_deposit = d_society_2 remove_deposit = d_society_3 @@ -2627,8 +2213,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_trade_value_9 remove_deposit = d_trade_value_10 set_planet_flag = pd_commercial_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -2746,8 +2332,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_zro_deposit_1 add_deposit = d_hab_zro_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2756,8 +2342,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_zro_deposit_2 add_deposit = d_hab_zro_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2766,8 +2352,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_zro_deposit_3 add_deposit = d_hab_zro_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -2777,8 +2363,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_dark_matter_deposit_1 add_deposit = d_hab_dark_matter_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2787,8 +2373,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_dark_matter_deposit_2 add_deposit = d_hab_dark_matter_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2797,8 +2383,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_dark_matter_deposit_3 add_deposit = d_hab_dark_matter_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -2808,8 +2394,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_living_metal_deposit add_deposit = d_hab_living_metal_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -2819,8 +2405,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_alloys_1 add_deposit = d_hab_alloy_1 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2829,8 +2415,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_alloys_2 add_deposit = d_hab_alloy_2 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2839,8 +2425,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_alloys_3 add_deposit = d_hab_alloy_3 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2849,8 +2435,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_alloys_4 add_deposit = d_hab_alloy_4 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2859,8 +2445,8 @@ pd_gas_giant_hab_0 = { remove_deposit = d_hab_alloy_5 add_deposit = d_hab_alloy_5 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -2869,16 +2455,16 @@ pd_gas_giant_hab_0 = { remove_deposit = d_nanites_deposit add_deposit = d_hab_nanites_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { fromfrom.planet = { has_modifier = terraforming_candidate } } set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } IF = { limit = { @@ -2912,160 +2498,13 @@ pd_gas_giant_hab_0 = { entity = "gas_giant_uranus_entity" } } - IF = { - limit = { - planet_size = 35 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm1 - } - IF = { - limit = { - planet_size = 34 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm15 - } - IF = { - limit = { - planet_size = 33 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm10 - add_deposit = d_ggstorm4 - } - IF = { - limit = { - planet_size = 32 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm10 - add_deposit = d_ggstorm3 - } - IF = { - limit = { - planet_size = 31 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm10 - add_deposit = d_ggstorm2 - } - IF = { - limit = { - planet_size = 30 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm10 - add_deposit = d_ggstorm1 - } - IF = { - limit = { - planet_size = 29 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm10 + add_modifier = { + modifier = pdhablevel1 + days = -1 } - IF = { - limit = { - planet_size = 28 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm5 - add_deposit = d_ggstorm4 - } - IF = { - limit = { - planet_size = 27 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm5 - add_deposit = d_ggstorm3 - } - IF = { - limit = { - planet_size = 26 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm5 - add_deposit = d_ggstorm2 - } - IF = { - limit = { - planet_size = 25 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm5 - add_deposit = d_ggstorm1 - } - IF = { - limit = { - planet_size = 24 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm5 - } - IF = { - limit = { - planet_size = 23 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm4 - } - IF = { - limit = { - planet_size = 22 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm3 - } - IF = { - limit = { - planet_size = 21 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm2 - } - IF = { - limit = { - planet_size = 20 - } - add_deposit = d_ggstorm15 - add_deposit = d_ggstorm1 - } - IF = { - limit = { - planet_size = 19 - } - add_deposit = d_ggstorm15 - } - IF = { - limit = { - planet_size = 18 - } - add_deposit = d_ggstorm10 - add_deposit = d_ggstorm4 - } - IF = { - limit = { - planet_size = 17 - } - add_deposit = d_ggstorm10 - add_deposit = d_ggstorm3 - } - IF = { - limit = { - planet_size = 16 - } - add_deposit = d_ggstorm10 - add_deposit = d_ggstorm2 - } - IF = { - limit = { - planet_size = 15 - } - add_deposit = d_ggstorm10 - add_deposit = d_ggstorm1 + add_modifier = { + modifier = pdgasgianthab + days = -1 } tec_void_dweller_auto_colonize = { OWNER = root.from } } @@ -3081,19 +2520,20 @@ pd_hothouse_hab_0 = { construction_entity = "" portrait = "GFX_megastructure_construction_background" place_entity_on_planet_plane = yes + show_galactic_map_icon = no build_time = 900 resources = { category = megastructures cost = { - alloys = 1500 - influence = 150 + alloys = 1000 + influence = 100 } } construction_blocks_and_blocked_by = none potential = { - has_technology = tech_pdhabitat_2 + has_technology = tech_pdhabitat_1 } possible = { @@ -3122,7 +2562,7 @@ pd_hothouse_hab_0 = { #can_build_megastructure_on_planet = yes NOR = { has_planet_flag = megastructure - has_planet_flag = has_megastructure + # has_planet_flag = has_megastructure solar_system = { has_star_flag = ring_world_built } @@ -3141,11 +2581,11 @@ pd_hothouse_hab_0 = { fail_text = "requires_not_minor_planetary_body" NOT = { is_asteroid = yes } } - custom_tooltip = { - fail_text = "requires_different_size" - planet_size <= 25 - planet_size >= 2 - } + # custom_tooltip = { + # fail_text = "requires_different_size" + # planet_size <= 25 + # planet_size >= 2 + # } custom_tooltip = { fail_text = "is_hothouse" OR = { @@ -3158,18 +2598,17 @@ pd_hothouse_hab_0 = { # root = system # from = country ai_weight = { - factor = 0 - + factor = 1 + modifier = { factor = 0 - starbase = { NOT = { has_starbase_size >= starbase_starhold } } + starbase = { NOT = { has_starbase_size >= starbase_starfortress } } } modifier = { factor = 0 any_system_planet = { - is_planet_class = pc_pd_hothouse_hab - is_colony = no + is_pd_habitat = yes } } @@ -3182,28 +2621,9 @@ pd_hothouse_hab_0 = { } modifier = { factor = 2 - any_neighbor_system = { - exists = owner - is_same_value = owner.capital_scope.solar_system - } - } - - modifier = { - factor = 0.1 - any_neighbor_system = { - exists = owner - owner = { NOT = { is_same_value = from } } - } + exists = sector + sector = { has_sector_type = core_sector } } - - modifier = { - factor = 0 - owner = { - or = { - resource_stockpile_compare = { resource = alloys value < 5000 } - } - } - } } on_build_start = {} @@ -3231,6 +2651,22 @@ pd_hothouse_hab_0 = { } change_pc = pc_pd_hothouse_hab } + if = { + limit = { + planet_size > 25 + } + add_modifier = { + modifier = high_gravity days = -1 + } + } + if = { + limit = { + planet_size < 10 + } + add_modifier = { + modifier = low_gravity days = -1 + } + } if = { limit = { OR = { @@ -3258,8 +2694,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_minerals_9 remove_deposit = d_minerals_10 set_planet_flag = pd_mining_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -3289,8 +2725,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_energy_9 remove_deposit = d_energy_10 set_planet_flag = pd_energy_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -3329,8 +2765,8 @@ pd_hothouse_hab_0 = { } } set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + remove_deposit = d_society_1 remove_deposit = d_society_2 remove_deposit = d_society_3 @@ -3389,8 +2825,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_trade_value_9 remove_deposit = d_trade_value_10 set_planet_flag = pd_commercial_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -3508,8 +2944,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_zro_deposit_1 add_deposit = d_hab_zro_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -3518,8 +2954,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_zro_deposit_2 add_deposit = d_hab_zro_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -3528,8 +2964,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_zro_deposit_3 add_deposit = d_hab_zro_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -3539,8 +2975,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_dark_matter_deposit_1 add_deposit = d_hab_dark_matter_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -3549,8 +2985,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_dark_matter_deposit_2 add_deposit = d_hab_dark_matter_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -3559,8 +2995,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_dark_matter_deposit_3 add_deposit = d_hab_dark_matter_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -3570,8 +3006,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_living_metal_deposit add_deposit = d_hab_living_metal_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -3581,8 +3017,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_alloys_1 add_deposit = d_hab_alloy_1 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -3591,8 +3027,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_alloys_2 add_deposit = d_hab_alloy_2 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -3601,8 +3037,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_alloys_3 add_deposit = d_hab_alloy_3 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -3611,8 +3047,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_alloys_4 add_deposit = d_hab_alloy_4 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -3621,8 +3057,8 @@ pd_hothouse_hab_0 = { remove_deposit = d_hab_alloy_5 add_deposit = d_hab_alloy_5 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -3631,18 +3067,16 @@ pd_hothouse_hab_0 = { remove_deposit = d_nanites_deposit add_deposit = d_hab_nanites_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { - limit = { - fromfrom.planet = { has_modifier = terraforming_candidate } - } - set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + limit = { fromfrom.planet = { has_modifier = terraforming_candidate } } remove_modifier = terraforming_candidate add_modifier = { modifier = hab_terraforming_candidate days = -1 } + reroll_deposits = yes + clear_blockers = yes + remove_deposit = d_prospectorium_strip_mine } IF = { limit = { @@ -3653,176 +3087,9 @@ pd_hothouse_hab_0 = { entity = "hothouse_hab_moon_01_entity" } } - IF = { - limit = { - planet_size = 25 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock5 - add_deposit = d_hhblock1 - } - IF = { - limit = { - planet_size = 24 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock5 - } - IF = { - limit = { - planet_size = 23 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock4 - } - IF = { - limit = { - planet_size = 22 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock3 - } - IF = { - limit = { - planet_size = 21 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock2 - } - IF = { - limit = { - planet_size = 20 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock1 - } - IF = { - limit = { - planet_size = 19 - } - add_deposit = d_hhblock15 - } - IF = { - limit = { - planet_size = 18 - } - add_deposit = d_hhblock10 - add_deposit = d_hhblock4 - } - IF = { - limit = { - planet_size = 17 - } - add_deposit = d_hhblock10 - add_deposit = d_hhblock3 - } - IF = { - limit = { - planet_size = 16 - } - add_deposit = d_hhblock10 - add_deposit = d_hhblock2 - } - IF = { - limit = { - planet_size = 15 - } - add_deposit = d_hhblock10 - add_deposit = d_hhblock1 - } - IF = { - limit = { - planet_size = 14 - } - add_deposit = d_hhblock10 - } - IF = { - limit = { - planet_size = 13 - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock4 - } - IF = { - limit = { - planet_size = 12 - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock3 - } - IF = { - limit = { - planet_size = 11 - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock2 - } - IF = { - limit = { - planet_size = 10 - is_moon = no - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock1 - } - IF = { - limit = { - planet_size = 10 - is_moon = yes - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock3 - } - IF = { - limit = { - planet_size = 9 - is_moon = yes - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock2 - } - IF = { - limit = { - planet_size = 8 - is_moon = yes - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock1 - } - IF = { - limit = { - planet_size = 7 - is_moon = yes - } - add_deposit = d_hhblock5 - } - IF = { - limit = { - planet_size = 6 - is_moon = yes - } - add_deposit = d_hhblock4 - } - IF = { - limit = { - planet_size = 5 - is_moon = yes - } - add_deposit = d_hhblock3 - } - IF = { - limit = { - planet_size = 4 - is_moon = yes - } - add_deposit = d_hhblock2 - } - IF = { - limit = { - planet_size = 3 - is_moon = yes - } - add_deposit = d_hhblock1 + add_modifier = { + modifier = pdhablevel1 + days = -1 } tec_void_dweller_auto_colonize = { OWNER = root.from } } @@ -3838,6 +3105,7 @@ pd_molten_hab_0 = { construction_entity = "" portrait = "GFX_megastructure_construction_background" place_entity_on_planet_plane = yes + show_galactic_map_icon = no build_time = 900 resources = { @@ -3879,7 +3147,7 @@ pd_molten_hab_0 = { #can_build_megastructure_on_planet = yes NOR = { has_planet_flag = megastructure - has_planet_flag = has_megastructure + # has_planet_flag = has_megastructure solar_system = { has_star_flag = ring_world_built } @@ -3898,11 +3166,11 @@ pd_molten_hab_0 = { fail_text = "requires_not_minor_planetary_body" NOT = { is_asteroid = yes } } - custom_tooltip = { - fail_text = "requires_different_size" - planet_size <= 25 - planet_size >= 2 - } + # custom_tooltip = { + # fail_text = "requires_different_size" + # planet_size <= 25 + # planet_size >= 2 + # } custom_tooltip = { fail_text = "is_molten" OR = { @@ -3916,18 +3184,17 @@ pd_molten_hab_0 = { # root = system # from = country ai_weight = { - factor = 0 - + factor = 1 + modifier = { factor = 0 - starbase = { NOT = { has_starbase_size >= starbase_starhold } } + starbase = { NOT = { has_starbase_size >= starbase_starfortress } } } modifier = { factor = 0 any_system_planet = { - is_planet_class = pc_pd_molten_hab - is_colony = no + is_pd_habitat = yes } } @@ -3940,28 +3207,9 @@ pd_molten_hab_0 = { } modifier = { factor = 2 - any_neighbor_system = { - exists = owner - is_same_value = owner.capital_scope.solar_system - } + exists = sector + sector = { has_sector_type = core_sector } } - - modifier = { - factor = 0.1 - any_neighbor_system = { - exists = owner - owner = { NOT = { is_same_value = from } } - } - } - - modifier = { - factor = 0 - owner = { - or = { - resource_stockpile_compare = { resource = alloys value < 5000 } - } - } - } } on_build_start = {} @@ -4004,14 +3252,30 @@ pd_molten_hab_0 = { picture = pc_pd_volcanic_hab } } - IF = { - limit = { - is_moon = no - } - set_planet_entity = { - entity = volcanichab_planet_01_entity - picture = pc_pd_volcanic_hab - } + IF = { + limit = { + is_moon = no + } + set_planet_entity = { + entity = volcanichab_planet_01_entity + picture = pc_pd_volcanic_hab + } + } + } + if = { + limit = { + planet_size > 25 + } + add_modifier = { + modifier = high_gravity days = -1 + } + } + if = { + limit = { + planet_size < 10 + } + add_modifier = { + modifier = low_gravity days = -1 } } if = { @@ -4042,8 +3306,8 @@ pd_molten_hab_0 = { remove_deposit = d_minerals_9 remove_deposit = d_minerals_10 set_planet_flag = pd_mining_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -4072,8 +3336,8 @@ pd_molten_hab_0 = { remove_deposit = d_energy_9 remove_deposit = d_energy_10 set_planet_flag = pd_energy_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -4112,8 +3376,8 @@ pd_molten_hab_0 = { } } set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + remove_deposit = d_society_1 remove_deposit = d_society_2 remove_deposit = d_society_3 @@ -4172,8 +3436,8 @@ pd_molten_hab_0 = { remove_deposit = d_trade_value_9 remove_deposit = d_trade_value_10 set_planet_flag = pd_commercial_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -4291,8 +3555,8 @@ pd_molten_hab_0 = { remove_deposit = d_zro_deposit_1 add_deposit = d_hab_zro_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -4301,8 +3565,8 @@ pd_molten_hab_0 = { remove_deposit = d_zro_deposit_2 add_deposit = d_hab_zro_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -4311,8 +3575,8 @@ pd_molten_hab_0 = { remove_deposit = d_zro_deposit_3 add_deposit = d_hab_zro_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -4322,8 +3586,8 @@ pd_molten_hab_0 = { remove_deposit = d_dark_matter_deposit_1 add_deposit = d_hab_dark_matter_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -4332,8 +3596,8 @@ pd_molten_hab_0 = { remove_deposit = d_dark_matter_deposit_2 add_deposit = d_hab_dark_matter_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -4342,8 +3606,8 @@ pd_molten_hab_0 = { remove_deposit = d_dark_matter_deposit_3 add_deposit = d_hab_dark_matter_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -4353,8 +3617,8 @@ pd_molten_hab_0 = { remove_deposit = d_living_metal_deposit add_deposit = d_hab_living_metal_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -4364,8 +3628,8 @@ pd_molten_hab_0 = { remove_deposit = d_alloys_1 add_deposit = d_hab_alloy_1 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -4374,8 +3638,8 @@ pd_molten_hab_0 = { remove_deposit = d_alloys_2 add_deposit = d_hab_alloy_2 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -4384,8 +3648,8 @@ pd_molten_hab_0 = { remove_deposit = d_alloys_3 add_deposit = d_hab_alloy_3 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -4394,8 +3658,8 @@ pd_molten_hab_0 = { remove_deposit = d_alloys_4 add_deposit = d_hab_alloy_4 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -4404,8 +3668,8 @@ pd_molten_hab_0 = { remove_deposit = d_hab_alloy_5 add_deposit = d_hab_alloy_5 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -4414,16 +3678,16 @@ pd_molten_hab_0 = { remove_deposit = d_nanites_deposit add_deposit = d_hab_nanites_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { - limit = { - fromfrom.planet = { has_modifier = terraforming_candidate } - } - set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + limit = { fromfrom.planet = { has_modifier = terraforming_candidate } } + remove_modifier = terraforming_candidate + add_modifier = { modifier = hab_terraforming_candidate days = -1 } + reroll_deposits = yes + clear_blockers = yes + remove_deposit = d_prospectorium_strip_mine } IF = { limit = { @@ -4435,176 +3699,9 @@ pd_molten_hab_0 = { entity = "mhab_moon_01_entity" } } - IF = { - limit = { - planet_size = 25 - } - add_deposit = d_mblock15 - add_deposit = d_mblock5 - add_deposit = d_mblock1 - } - IF = { - limit = { - planet_size = 24 - } - add_deposit = d_mblock15 - add_deposit = d_mblock5 - } - IF = { - limit = { - planet_size = 23 - } - add_deposit = d_mblock15 - add_deposit = d_mblock4 - } - IF = { - limit = { - planet_size = 22 - } - add_deposit = d_mblock15 - add_deposit = d_mblock3 - } - IF = { - limit = { - planet_size = 21 - } - add_deposit = d_mblock15 - add_deposit = d_mblock2 - } - IF = { - limit = { - planet_size = 20 - } - add_deposit = d_mblock15 - add_deposit = d_mblock1 - } - IF = { - limit = { - planet_size = 19 - } - add_deposit = d_mblock15 - } - IF = { - limit = { - planet_size = 18 - } - add_deposit = d_mblock10 - add_deposit = d_mblock4 - } - IF = { - limit = { - planet_size = 17 - } - add_deposit = d_mblock10 - add_deposit = d_mblock3 - } - IF = { - limit = { - planet_size = 16 - } - add_deposit = d_mblock10 - add_deposit = d_mblock2 - } - IF = { - limit = { - planet_size = 15 - } - add_deposit = d_mblock10 - add_deposit = d_mblock1 - } - IF = { - limit = { - planet_size = 14 - } - add_deposit = d_mblock10 - } - IF = { - limit = { - planet_size = 13 - } - add_deposit = d_mblock5 - add_deposit = d_mblock4 - } - IF = { - limit = { - planet_size = 12 - } - add_deposit = d_mblock5 - add_deposit = d_mblock3 - } - IF = { - limit = { - planet_size = 11 - } - add_deposit = d_mblock5 - add_deposit = d_mblock2 - } - IF = { - limit = { - planet_size = 10 - is_moon = no - } - add_deposit = d_mblock5 - add_deposit = d_mblock1 - } - IF = { - limit = { - planet_size = 10 - is_moon = yes - } - add_deposit = d_mblock5 - add_deposit = d_mblock3 - } - IF = { - limit = { - planet_size = 9 - is_moon = yes - } - add_deposit = d_mblock5 - add_deposit = d_mblock2 - } - IF = { - limit = { - planet_size = 8 - is_moon = yes - } - add_deposit = d_mblock5 - add_deposit = d_mblock1 - } - IF = { - limit = { - planet_size = 7 - is_moon = yes - } - add_deposit = d_mblock5 - } - IF = { - limit = { - planet_size = 6 - is_moon = yes - } - add_deposit = d_mblock4 - } - IF = { - limit = { - planet_size = 5 - is_moon = yes - } - add_deposit = d_mblock3 - } - IF = { - limit = { - planet_size = 4 - is_moon = yes - } - add_deposit = d_mblock2 - } - IF = { - limit = { - planet_size = 3 - is_moon = yes - } - add_deposit = d_mblock1 + add_modifier = { + modifier = pdhablevel1 + days = -1 } tec_void_dweller_auto_colonize = { OWNER = root.from } } @@ -4620,18 +3717,19 @@ pd_toxic_hab_0 = { construction_entity = "" portrait = "GFX_megastructure_construction_background" place_entity_on_planet_plane = yes + show_galactic_map_icon = no build_time = 900 resources = { category = megastructures cost = { - alloys = 1500 - influence = 150 + alloys = 1000 + influence = 100 } } construction_blocks_and_blocked_by = none potential = { - has_technology = tech_pdhabitat_2 + has_technology = tech_pdhabitat_1 } possible = { @@ -4660,7 +3758,7 @@ pd_toxic_hab_0 = { #can_build_megastructure_on_planet = yes NOR = { has_planet_flag = megastructure - has_planet_flag = has_megastructure + # has_planet_flag = has_megastructure solar_system = { has_star_flag = ring_world_built } @@ -4679,11 +3777,11 @@ pd_toxic_hab_0 = { fail_text = "requires_not_minor_planetary_body" NOT = { is_asteroid = yes } } - custom_tooltip = { - fail_text = "requires_different_size" - planet_size <= 25 - planet_size >= 2 - } + # custom_tooltip = { + # fail_text = "requires_different_size" + # planet_size <= 25 + # planet_size >= 2 + # } custom_tooltip = { fail_text = "is_toxic" OR = { @@ -4696,18 +3794,17 @@ pd_toxic_hab_0 = { # root = system # from = country ai_weight = { - factor = 0 - + factor = 1 + modifier = { factor = 0 - starbase = { NOT = { has_starbase_size >= starbase_starhold } } + starbase = { NOT = { has_starbase_size >= starbase_starfortress } } } modifier = { factor = 0 any_system_planet = { - is_planet_class = pc_pd_toxic_hab - is_colony = no + is_pd_habitat = yes } } @@ -4720,28 +3817,9 @@ pd_toxic_hab_0 = { } modifier = { factor = 2 - any_neighbor_system = { - exists = owner - is_same_value = owner.capital_scope.solar_system - } + exists = sector + sector = { has_sector_type = core_sector } } - - modifier = { - factor = 0.1 - any_neighbor_system = { - exists = owner - owner = { NOT = { is_same_value = from } } - } - } - - modifier = { - factor = 0 - owner = { - or = { - resource_stockpile_compare = { resource = alloys value < 5000 } - } - } - } } on_build_start = {} @@ -4769,6 +3847,22 @@ pd_toxic_hab_0 = { } change_pc = pc_pd_toxic_hab } + if = { + limit = { + planet_size > 25 + } + add_modifier = { + modifier = high_gravity days = -1 + } + } + if = { + limit = { + planet_size < 10 + } + add_modifier = { + modifier = low_gravity days = -1 + } + } if = { limit = { OR = { @@ -4796,8 +3890,8 @@ pd_toxic_hab_0 = { remove_deposit = d_minerals_9 remove_deposit = d_minerals_10 set_planet_flag = pd_mining_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -4827,8 +3921,8 @@ pd_toxic_hab_0 = { remove_deposit = d_energy_9 remove_deposit = d_energy_10 set_planet_flag = pd_energy_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -4867,8 +3961,8 @@ pd_toxic_hab_0 = { } } set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + remove_deposit = d_society_1 remove_deposit = d_society_2 remove_deposit = d_society_3 @@ -4927,8 +4021,8 @@ pd_toxic_hab_0 = { remove_deposit = d_trade_value_9 remove_deposit = d_trade_value_10 set_planet_flag = pd_commercial_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -5046,8 +4140,8 @@ pd_toxic_hab_0 = { remove_deposit = d_zro_deposit_1 add_deposit = d_hab_zro_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -5056,8 +4150,8 @@ pd_toxic_hab_0 = { remove_deposit = d_zro_deposit_2 add_deposit = d_hab_zro_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -5066,8 +4160,8 @@ pd_toxic_hab_0 = { remove_deposit = d_zro_deposit_3 add_deposit = d_hab_zro_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -5077,8 +4171,8 @@ pd_toxic_hab_0 = { remove_deposit = d_dark_matter_deposit_1 add_deposit = d_hab_dark_matter_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -5087,8 +4181,8 @@ pd_toxic_hab_0 = { remove_deposit = d_dark_matter_deposit_2 add_deposit = d_hab_dark_matter_2 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -5097,8 +4191,8 @@ pd_toxic_hab_0 = { remove_deposit = d_dark_matter_deposit_3 add_deposit = d_hab_dark_matter_3 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -5108,8 +4202,8 @@ pd_toxic_hab_0 = { remove_deposit = d_living_metal_deposit add_deposit = d_hab_living_metal_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { @@ -5119,8 +4213,8 @@ pd_toxic_hab_0 = { remove_deposit = d_alloys_1 add_deposit = d_hab_alloy_1 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -5129,8 +4223,8 @@ pd_toxic_hab_0 = { remove_deposit = d_alloys_2 add_deposit = d_hab_alloy_2 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -5139,8 +4233,8 @@ pd_toxic_hab_0 = { remove_deposit = d_alloys_3 add_deposit = d_hab_alloy_3 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -5149,8 +4243,8 @@ pd_toxic_hab_0 = { remove_deposit = d_alloys_4 add_deposit = d_hab_alloy_4 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -5159,8 +4253,8 @@ pd_toxic_hab_0 = { remove_deposit = d_hab_alloy_5 add_deposit = d_hab_alloy_5 set_planet_flag = pd_foundry_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { limit = { @@ -5169,16 +4263,24 @@ pd_toxic_hab_0 = { remove_deposit = d_nanites_deposit add_deposit = d_hab_nanites_1 set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + + } if = { - limit = { - fromfrom.planet = { has_modifier = terraforming_candidate } - } - set_planet_flag = pd_science_hab - IF = { limit = { NOT = { has_planet_flag = pd_hab_d1 } } set_planet_flag = pd_hab_d1 } - ELSE_IF = { limit = { has_planet_flag = pd_hab_d1 } set_planet_flag = pd_hab_d2 } + limit = { fromfrom.planet = { has_modifier = terraforming_candidate } } + remove_modifier = terraforming_candidate + add_modifier = { modifier = hab_terraforming_candidate days = -1 } + reroll_deposits = yes + clear_blockers = yes + remove_deposit = d_prospectorium_strip_mine + } + if = { + limit = { fromfrom.planet = { has_modifier = toxic_terraforming_candidate } } + remove_modifier = toxic_terraforming_candidate + add_modifier = { modifier = hab_terraforming_candidate days = -1 } + reroll_deposits = yes + clear_blockers = yes + remove_deposit = d_prospectorium_strip_mine } IF = { limit = { @@ -5189,176 +4291,9 @@ pd_toxic_hab_0 = { entity = "toxic_hab_moon_01_entity" } } - IF = { - limit = { - planet_size = 25 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock5 - add_deposit = d_hhblock1 - } - IF = { - limit = { - planet_size = 24 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock5 - } - IF = { - limit = { - planet_size = 23 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock4 - } - IF = { - limit = { - planet_size = 22 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock3 - } - IF = { - limit = { - planet_size = 21 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock2 - } - IF = { - limit = { - planet_size = 20 - } - add_deposit = d_hhblock15 - add_deposit = d_hhblock1 - } - IF = { - limit = { - planet_size = 19 - } - add_deposit = d_hhblock15 - } - IF = { - limit = { - planet_size = 18 - } - add_deposit = d_hhblock10 - add_deposit = d_hhblock4 - } - IF = { - limit = { - planet_size = 17 - } - add_deposit = d_hhblock10 - add_deposit = d_hhblock3 - } - IF = { - limit = { - planet_size = 16 - } - add_deposit = d_hhblock10 - add_deposit = d_hhblock2 - } - IF = { - limit = { - planet_size = 15 - } - add_deposit = d_hhblock10 - add_deposit = d_hhblock1 - } - IF = { - limit = { - planet_size = 14 - } - add_deposit = d_hhblock10 - } - IF = { - limit = { - planet_size = 13 - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock4 - } - IF = { - limit = { - planet_size = 12 - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock3 - } - IF = { - limit = { - planet_size = 11 - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock2 - } - IF = { - limit = { - planet_size = 10 - is_moon = no - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock1 - } - IF = { - limit = { - planet_size = 10 - is_moon = yes - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock3 - } - IF = { - limit = { - planet_size = 9 - is_moon = yes - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock2 - } - IF = { - limit = { - planet_size = 8 - is_moon = yes - } - add_deposit = d_hhblock5 - add_deposit = d_hhblock1 - } - IF = { - limit = { - planet_size = 7 - is_moon = yes - } - add_deposit = d_hhblock5 - } - IF = { - limit = { - planet_size = 6 - is_moon = yes - } - add_deposit = d_hhblock4 - } - IF = { - limit = { - planet_size = 5 - is_moon = yes - } - add_deposit = d_hhblock3 - } - IF = { - limit = { - planet_size = 4 - is_moon = yes - } - add_deposit = d_hhblock2 - } - IF = { - limit = { - planet_size = 3 - is_moon = yes - } - add_deposit = d_hhblock1 + add_modifier = { + modifier = pdhablevel1 + days = -1 } tec_void_dweller_auto_colonize = { OWNER = root.from } } diff --git a/common/scripted_effects/zz_evolved_planethab_effects.txt b/common/scripted_effects/zz_evolved_planethab_effects.txt index 501b4ca..1010a3d 100644 --- a/common/scripted_effects/zz_evolved_planethab_effects.txt +++ b/common/scripted_effects/zz_evolved_planethab_effects.txt @@ -240,29 +240,131 @@ tec_pdplanethab_clear_habitat_specific_data = { remove_planet_flag = tec_arcology_habitat remove_planet_flag = tec_civil_habitat remove_planet_flag = tec_industrial_habitat + remove_planet_flag = pd_farming_hab + remove_planet_flag = pd_energy_hab + remove_planet_flag = pd_mining_hab + remove_planet_flag = pd_science_hab - remove_modifier = tec_pm_arcology_habitat - - remove_deposit = d_expanded_dome_system - remove_deposit = d_expanded_dome_system - remove_deposit = d_expanded_dome_system_1 - remove_deposit = d_expanded_dome_system_1 + remove_modifier = pm_tec_arcology_habitat if = { limit = { - has_modifier = engineered_habitat + has_modifier = pm_tec_engineered_habitat } - remove_modifier = engineered_habitat + remove_modifier = pm_tec_engineered_habitat add_modifier = { - modifier = engineered_weather + modifier = pm_tec_engineered_weather + } + } + # regular + if = { + limit = { + owner = { + is_fallen_empire = no + is_gestalt = no + } + } + switch = { + trigger = has_building + building_hab_major_capital = { + remove_building = building_hab_major_capital + add_building = building_major_capital + } + building_hab_system_capital = { + remove_building = building_hab_system_capital + add_building = building_system_capital + } + } + } + # hive + else_if = { + limit = { + owner = { + is_fallen_empire = no + is_hive_empire = yes + tec_is_biohive = no + tec_is_cybernetic_hive = No + } + } + switch = { + trigger = has_building + building_tec_hab_hive_major_capital = { + remove_building = building_tec_hab_hive_major_capital + add_building = building_hive_major_capital + } + building_tec_hab_hive_system_capital = { + remove_building = building_tec_hab_hive_system_capital + add_building = building_hive_system_capital + } + } + } + # biohive + else_if = { + limit = { + owner = { + tec_is_biohive = yes + is_fallen_empire = no + } + } + switch = { + trigger = has_building + building_tec_hab_biohive_major_capital = { + remove_building = building_tec_hab_biohive_major_capital + add_building = building_tec_biohive_major_capital + } + building_tec_hab_biohive_system_capital = { + remove_building = building_tec_hab_biohive_system_capital + add_building = building_tec_biohive_system_capital + } } } - remove_building = building_hab_system_capital - add_building = building_system_capital + # cyberhive + else_if = { + limit = { + owner = { + tec_is_cybernetic_hive = yes + is_fallen_empire = no + } + } + switch = { + trigger = has_building + building_tec_hab_cyberhive_major_capital = { + remove_building = building_tec_hab_cyberhive_major_capital + add_building = building_tec_cyberhive_major_capital + } + building_tec_hab_cyberhive_system_capital = { + remove_building = building_tec_hab_cyberhive_system_capital + add_building = building_tec_cyberhive_system_capital + } + } + } + # machine + else_if = { + limit = { + owner = { + is_machine_empire = yes + is_fallen_empire = no + } + } + switch = { + trigger = has_building + building_tec_hab_machine_major_capital = { + remove_building = building_tec_hab_machine_major_capital + add_building = building_tec_machine_major_capital + } + building_tec_hab_machine_system_capital = { + remove_building = building_tec_hab_machine_system_capital + add_building = building_tec_machine_system_capital + } + } + } + + validate_planet_buildings_and_districts = yes } tec_pdplanethab_remove_terraforming_modifiers = { remove_modifier = hab_terraforming_candidate + remove_modifier = hab_pdhabsubglacialocean remove_modifier = pdterra_storm remove_modifier = pdterra_tidallocked remove_modifier = pdterra_glacio @@ -281,10 +383,6 @@ tec_pdplanethab_remove_terraforming_modifiers = { remove_modifier = pdterra_reef remove_modifier = pdterra_coral remove_modifier = pdterra_supercon - remove_modifier = terraforming_methane - remove_modifier = terraforming_ammonia - remove_modifier = terraforming_sulfur - remove_modifier = terraforming_ash } tec_ecu_faction_demands = { diff --git a/localisation/english/zz_evolved_pdhab_l_english.yml b/localisation/english/zz_evolved_pdhab_l_english.yml index 4c6057c..34e7661 100644 --- a/localisation/english/zz_evolved_pdhab_l_english.yml +++ b/localisation/english/zz_evolved_pdhab_l_english.yml @@ -24,7 +24,8 @@ decision_tec_pdplanethab_arcology_project_science:0 "$ap_arcology_project$ - Aca decision_tec_pdplanethab_arcology_project_science_effects:1 "Turns the planet into an §Y$pc_city$§!, increasing £housing£ §Y$PLANET_HOUSING_TITLE$§!, §YResource Production§! and §YPop Growth§! and unlocking special £district£ §YArcology Districts§! at the expense of the planet's natural resources becoming §Rinaccessible§!, preventing all further construction of £district£ §YGenerator§!, §YMining§! and §YAgriculture Districts§!.\n\nEquips the Ecumenopolis with academic districts, providing access to £physics£ £society£ £engineering£ £district£ §YResearch Districts§! and £volatile_motes£ £exotic_gases£ £rare_crystals£ £district£ §YRefinery Districts§!.\n\n§RDue to the effort used on the further modification of the planet assets and industry, this decision is irreversible.§!" decision_tec_pdplanethab_arcology_project_science_desc:1 "An unceasing stretch of arcologies will unite the planet from pole to pole, creating one global megacity, one ecumenopolis.\n\nBy suiting this Ecumenopolis with specialized labs and experimental equipment, we will make it serve well as a great source of £engineering£ §YResearch§! and £exotic_gases£ §YExotic materials§!." -tec_pdplanethab_requires_arcology_habitat:0 "Expansion and clearing of planetary £blocker£ §YBlockers§! is restricted by the limited infrastructure. Requires the §HPlanetary Habitat§! to be an §HArcology Planetary Habitat§! which can be done using the §Y$ap_arcology_project$§! ascension perk." - tec_allow_pdplanethab_arcology_project:0 "§HUnlocks Decisions:§! $decision_tec_pdplanethab_arcology_civil$ & $decision_tec_pdplanethab_arcology_industrial$" -decision_tec_pdplanethab_arcology_project_effects:0 "Provides two decisions to turn §YFully upgraded§! planetary habitats into an §YPlanetart Habitat Arcologies§!, making £district£ §YHabitation Districts§! provide £building£ Building Slots, and either specialize it into £alloys£ £consumer_goods£ §YIndustrial Arcology Habitats§! or £physics£ £society£ £engineering£ £mod_country_admin_cap_add£ §YCivilian Arcology Habitats§!, with each district providing a passive production of the respective type.\n§ROnce completely enacted, the decision is irreversible.§!" \ No newline at end of file +decision_tec_pdplanethab_arcology_project_effects:0 "Provides two decisions to turn §YFully upgraded§! planetary habitats into an §YPlanetart Habitat Arcologies§!, making £district£ §YHabitation Districts§! provide £building£ Building Slots, and either specialize it into £alloys£ £consumer_goods£ §YIndustrial Arcology Habitats§! or £physics£ £society£ £engineering£ £mod_country_admin_cap_add£ §YCivilian Arcology Habitats§!, with each district providing a passive production of the respective type.\n§ROnce completely enacted, the decision is irreversible.§!" + + +decision_tec_hab_arcology_special_habitat_block:0 "£trigger_no£§RHabitat must be §Y$resort_colony_pd_hab$§, §Y$penal_habitat$§ or §Y$military_pd_habitat_reg$§§!" \ No newline at end of file diff --git a/thumbnail.png b/thumbnail.png index a328f9c..e7db89c 100644 Binary files a/thumbnail.png and b/thumbnail.png differ diff --git a/thumbnail.psd b/thumbnail.psd index b1f40f0..3210952 100644 Binary files a/thumbnail.psd and b/thumbnail.psd differ