
# vanilla style planet killer
tech_plnmg_integrated_interthought = {
	icon = tech_pk_neutron
	area = physics
	cost = @tier5cost3
	tier = 5
	is_rare = yes
	is_dangerous = yes
	#is_reverse_engineerable = no
	category = { computing }
	prerequisites = { "tech_plnmg_interthought" "tech_colossus" }
	#ai_update_type = military
	weight = @tier5weight3
	weight_modifier = {
		inline_script = {
			script = technologies/rare_technologies_weight_modifiers
			TECHNOLOGY = tech_plnmg_integrated_interthought
		}
		modifier = {
			divide = 3
			nor = {
				is_homicidal = yes
				and = { is_xenophage = yes }
				is_gestalt = yes
				is_xenophobe = yes
			}
		}
	}
	ai_weight = {
		factor = 0
	}
}

tech_plnmg_pk_toxifier = {
	icon = tech_pk_nanobots
	area = engineering
	cost = @tier5cost3
	tier = 5
	is_rare = yes
	category = { voidcraft }
	prerequisites = { "tech_planetmega_colossus" }
	potential = {
		#has_toxoids = yes
		has_ascension_perk = ap_detox
		or = {
			has_relic = r_toxic_god
			any_owned_fleet = { is_ship_size = toxic_god }
		}
	}
	#ai_update_type = military
	weight = @tier5weight3
	weight_modifier = {
		inline_script = {
			script = technologies/rare_technologies_weight_modifiers
			TECHNOLOGY = tech_plnmg_pk_toxifier
		}
		modifier = {
			factor = 0
			not = { has_origin = origin_toxic_knights }
		}
	}
	ai_weight = { factor = 0 }
}

tech_plnmg_pk_maw = {
	icon = tech_pk_cracker
	area = society
	cost = @tier5cost3
	tier = 5
	is_rare = yes
	is_dangerous = yes
	category = { biology }
	prerequisites = { "tech_planetmega_colossus" }
	#potential = { has_menace_perk = menp_behemoth_hatchling_2 }
	potential = { always = no }
	#ai_update_type = military
	weight = @tier5weight3
	weight_modifier = {
		inline_script = {
			script = technologies/rare_technologies_weight_modifiers
			TECHNOLOGY = tech_plnmg_pk_maw
		}
	}
	ai_weight = { factor = 0 }
}

# accelerated planet killer

tech_plnmg_optimized_colossus = {
	area = engineering
	cost = @pmtech_tier6cost3
	icon = tech_planetmega_colossus
	tier = 5
	is_rare = yes
	is_dangerous = yes
	is_reverse_engineerable = no
	category = { voidcraft }
	prerequisites = { "tech_planetmega_colossus" }
	#ai_update_type = military
	weight = @pmtech_tier6weight3
	weight_modifier = {
		inline_script = {
			script = technologies/rare_technologies_weight_modifiers
			TECHNOLOGY = tech_plnmg_optimized_colossus
		}
	}
	ai_weight = { weight = 0 }
}

tech_plnmg_btc_1 = {
	icon = tech_btc_1
	area = engineering
	cost = @pmtech_tier5cost4
	tier = 5
	is_rare = yes
	is_dangerous = yes
	is_reverse_engineerable = no
	category = { voidcraft }
	prerequisites = { "tech_plnmg_optimized_colossus" }
	#ai_update_type = military
	weight = @tier5weight3
	weight_modifier = {
		inline_script = {
			script = technologies/rare_technologies_weight_modifiers
			TECHNOLOGY = tech_plnmg_btc_1
		}
		modifier = {
			factor = 0
			nor = {
				is_xenophobe = yes
				is_militarist = yes
				is_authoritarian = yes
				is_gestalt = yes
			}
		}
	}
	potential = {
		nor = {
			is_player_crisis = yes
			has_menace_perk = menp_star_eater
		}
	}
	ai_weight = { factor = 0 }
}

tech_plnmg_interthought_aeg = {
	icon = tech_pk_nanobots
	area = physics
	cost = @pmtech_tier5cost4
	tier = 5
	is_rare = yes
	#is_reverse_engineerable = no
	category = { computing }
	prerequisites = { "tech_planetmega_colossus" "tech_plnmg_integrated_interthought" }
	#ai_update_type = military
	weight = @tier5weight3
	weight_modifier = {
		inline_script = {
			script = technologies/rare_technologies_weight_modifiers
			TECHNOLOGY = tech_plnmg_interthought_aeg
		}
	}
	ai_weight = { factor = 0 }
}

tech_plnmg_pk_toxifier_aeq = {
	icon = tech_pk_nanobots
	area = engineering
	cost = @pmtech_tier5cost4
	tier = 5
	is_rare = yes
	category = { voidcraft }
	prerequisites = { "tech_plnmg_pk_toxifier" }
	potential = { always = no }
	#ai_update_type = military
	weight = @tier5weight3
	weight_modifier = {
		inline_script = {
			script = technologies/rare_technologies_weight_modifiers
			TECHNOLOGY = tech_plnmg_pk_toxifier_aeq
		}
	}
	ai_weight = { factor = 0 }
}

tech_plnmg_ultimate_pk = {
	icon = tech_pk_godray
	area = engineering
	cost = @pmtech_tier7cost3
	tier = 5
	is_rare = yes
	is_dangerous = yes
	is_reverse_engineerable = no
	category = { voidcraft }
	prerequisites = { "tech_planetmega_ultimate_sp" }
	weight = @pmtech_tier7weight1
	potential = { is_ai = no }
	weight_modifier = {
		inline_script = {
			script = technologies/tech_t4_plnmg_weight_modifiers
			TECH = tech_plnmg_ultimate_pk
		}
	}
	ai_weight = { factor = 0 }
}

