@hab_cost = 150 @hab_maintenance = 2 @low_hab_maintenance = 0.25 @hab_time = 360 # NOTE: district_hab_energy_max_add, district_hab_mining_max_add and district_hab_science_max_add # are provided by habitat_modifiers on orbital deposits # These modifiers are equal to 1 + FLOOR(n/2), where n is the deposit size. district_hab_housing = { base_buildtime = @hab_time exempt_from_ai_planet_specialization = yes overlay_icon = GFX_district_government zone_slots = { slot_city_government slot_habitat_01 slot_habitat_02 } show_on_uncolonized = { uses_district_set = habitat } potential = { uses_district_set = habitat NAND = { is_capital = yes owner = { has_menace_perk = menp_behemoth_mind_meld } } } convert_to = { district_mindlink } resources = { category = planet_districts_hab cost = { alloys = @hab_cost } upkeep = { energy = @hab_maintenance alloys = @low_hab_maintenance } } planet_modifier = { planet_housing_add = 1000 } triggered_planet_modifier = { potential = { exists = owner owner = { has_active_tradition = tr_prosperity_void_works } } modifier = { planet_housing_add = 100 } } triggered_planet_modifier = { potential = { exists = owner owner = { is_tankbound_empire = yes } } modifier = { job_production_overseer_add = 100 } } inline_script = { script = districts/ai_urban_district_extra_weighting } } district_hab_energy = { base_buildtime = @hab_time is_uncapped = { always = no } overlay_icon = GFX_district_energy zone_slots = { slot_habitat_energy } show_on_uncolonized = { uses_district_set = habitat } potential = { uses_district_set = habitat } convert_to = { } planet_modifier = { planet_housing_add = 300 } resources = { category = planet_districts_hab_energy cost = { alloys = @hab_cost } upkeep = { energy = @hab_maintenance alloys = @low_hab_maintenance } } planet_modifier = { planet_housing_add = 300 } triggered_planet_modifier = { potential = { exists = owner owner = { is_tankbound_empire = yes } } modifier = { job_technician_automated_workforce_mult = 1.0 } } inline_script = { script = jobs/habitat_technicians_add AMOUNT = @habitat_rural_district_jobs } on_built = { planet_event = { id = megastructures.200 # Spawn an energy orbital } } inline_script = { script = districts/district_triggered_name_generator } } district_hab_mining = { base_buildtime = @hab_time is_uncapped = { always = no } overlay_icon = GFX_district_minerals zone_slots = { slot_habitat_minerals } show_on_uncolonized = { uses_district_set = habitat } potential = { uses_district_set = habitat } resources = { category = planet_districts_hab_mining cost = { alloys = @hab_cost } upkeep = { energy = @hab_maintenance alloys = @low_hab_maintenance } } planet_modifier = { planet_housing_add = 300 } triggered_planet_modifier = { potential = { exists = owner owner = { is_tankbound_empire = yes } } modifier = { job_miner_automated_workforce_mult = 1.0 } } inline_script = { script = jobs/habitat_miners_add AMOUNT = @habitat_rural_district_jobs } on_built = { planet_event = { id = megastructures.210 # Spawn a mining orbital } } inline_script = { script = districts/district_triggered_name_mining } } district_hab_science = { base_buildtime = @hab_time is_uncapped = { always = no } overlay_icon = GFX_district_research zone_slots = { slot_habitat_research } show_on_uncolonized = { uses_district_set = habitat } potential = { uses_district_set = habitat } prerequisites = { tech_basic_science_lab_1 } allow = { hidden_trigger = { OR = { NOT = { exists = owner } owner = { has_technology = tech_basic_science_lab_1 } has_deposit = d_payback_habitat_research } } } resources = { category = planet_districts_hab cost = { alloys = @hab_cost } upkeep = { energy = @hab_maintenance alloys = @low_hab_maintenance } } planet_modifier = { planet_housing_add = 300 } inline_script = { script = jobs/habitat_researchers_add AMOUNT = @habitat_research_district_jobs } on_built = { planet_event = { id = megastructures.220 # Spawn a research orbital } } triggered_name = { text = city_research_1 } }