# from = country
# this = species

purge_plnmg_organic = {
	pop_escape_chance = 0.15
	pop_decline_rate = 75

	potential = { exists = from }

	allow = {
		custom_tooltip = {
			fail_text = PURGES_ALLOWED
			from = { has_policy_flag = purge_allowed }
		}
		from = { any_owned_colony = { has_plnmg_any_farm_t2 = yes } }
		if = {
			limit = { from = { not = { has_technology = tech_planetmega_junik } } }
			is_robotic_species = no
		}
	}

	ai_will_do = {
		factor = 0
	}
}

purge_plnmg_torture = {
	pop_escape_chance = 0.05
	pop_decline_rate = 85

	potential = {
		from? = {
            or = {
                has_civic = civic_machine_terminator
                has_civic = civic_fanatic_purifiers
                has_civic = civic_hive_devouring_swarm
            }
        }
	}

	allow = {
		custom_tooltip = {
			fail_text = PURGES_ALLOWED
			from = { has_policy_flag = purge_allowed }
		}
		from = { any_owned_colony = { has_plnmg_torture_building = yes } }
		nor = {
            is_same_value = from.founder_species
            is_same_value = from.owner_main_species
        }
	}

	ai_will_do = {
		factor = 0
	}
}
