
politician_is_science_director = {
    optimize_memory
    OR = {
        owner? = { has_valid_civic = civic_technocracy }
        has_active_building = building_institute
        has_active_building = building_vultaum_reality_computer
        has_active_building = building_fe_lab_1
        has_active_building = building_fe_lab_2
        # compatibility
        has_carrier_flag = politician_is_science_director
        check_modifier_value = { modifier = politician_is_science_director value > 0 }
    }
}

has_planetary_shield_building = {
    OR = {
        has_building = building_planetary_shield_generator
        has_building = building_ozone_thickener
        has_plnmg_any_headquarter = yes
    }
}

# This = species or pop group, COLONY = the colony scope from here
species_can_grow_on_colony = {
    is_sapient = yes
    species = {
        is_robotic = no
        NOT = { has_species_flag = nivlac_no_procreation }
    }
    citizenship_allows_species_growth = { COLONY = $COLONY$ }
    can_necrophage_species_grow = { COLONY = $COLONY$ }
    ### added by this mod
    $COLONY$ = {
        has_default_planet_regulation_modifier = no
        has_gestalt_planet_regulation_modifier = no
    }
}
