#Defensive armies can't transport of the planet
#Garrison armies are created by pops
#maintenance is directly scripted here. 0.25 translates to 0.25 monthly cost (excluding other upkeep modifiers)
#morale_damage = 1		# average morale damage of the army, default: auto (calculated from morale * MORALE_DAMAGE_MULT)


# Clone Armies克隆人军
clone_army = {
	damage = 1.00
	health = 1.00
	morale = 1.00
	collateral_damage = 1.25
	war_exhaustion = 0.50
	time = 30
	maintenance = 0.50
	icon_frame = 7
	pop_limited = no
	
	cost = {
		minerals = 50
	}
	
	prerequisites = { "tech_gene_banks" }
	
	show_tech_unlock_if = { NOT = { has_authority = auth_machine_intelligence } }
	
	allow = {
		has_building = "building_clone_vats"
	}
	potential = {
		from = {
			NOR = {
				has_trait = "trait_robotic_1"
				has_trait = "trait_robotic_2"
				has_trait = "trait_robotic_3"
				has_trait = "trait_machine_unit"
				has_trait = "trait_magic_machine"
				has_trait = "trait_xilin_building"
				has_trait = "trait_divinity"
				has_trait = "trait_robotic_xilin"		
				has_trait = trait_tree_spirit
				is_sapient = no
			}
		}
		owner = {
			NOT = { has_authority = auth_machine_intelligence }
		}
	}
}


# Psionic Armies灵能军
psionic_army = {
	damage = 2.0
	morale_damage = 1.5
	health = 1.75
	morale = 2.5
	collateral_damage = 0.5
	war_exhaustion = 3.0
	time = 120
	maintenance = 2.5
	icon_frame = 9
	
	cost = {
		minerals = 250
	}
	
	prerequisites = { "tech_telepathy" }
	potential = {
		from = {
			OR = {
				NOT = { host_has_dlc = "Utopia" }
				OR = {
					has_trait = trait_latent_psionic
					has_trait = trait_psionic
				}
			}
			NOR = {
				has_trait = "trait_robotic_1"
				has_trait = "trait_robotic_2"
				has_trait = "trait_robotic_3"
				has_trait = "trait_machine_unit"
				has_trait = "trait_magic_machine"
				has_trait = "trait_xilin_building"
				has_trait = "trait_divinity"
				has_trait = "trait_robotic_xilin"		
				has_trait = trait_tree_spirit
				is_sapient = no
			}
		}
		owner = {
			NOT = { has_authority = auth_machine_intelligence }
		}
	}
}

# Gene Warrior Armies基因战士
gene_warrior_army = {
	damage = 2.0
	health = 2.5
	morale = 2.5
	morale_damage = 1.0
	collateral_damage = 0.75
	war_exhaustion = 3.0
	time = 150
	maintenance = 3.0
	icon_frame = 6
	
	cost = {
		minerals = 300
	}
	
	prerequisites = { "tech_gene_seed_purification" }
	potential = {
		from = {
			NOR = {
				has_trait = "trait_robotic_1"
				has_trait = "trait_robotic_2"
				has_trait = "trait_robotic_3"
				has_trait = "trait_machine_unit"
				has_trait = "trait_magic_machine"
				has_trait = "trait_xilin_building"
				has_trait = "trait_divinity"
				has_trait = "trait_robotic_xilin"		
				has_trait = trait_tree_spirit
				is_sapient = no
			}
		}
		owner = {
			NOT = { has_authority = auth_machine_intelligence }
		}
	}
}


# Assault Armies
assault_army = {
	damage = 1.00
	health = 1.00
	morale = 1.00
	morale_damage = 1.00
	collateral_damage = 1.00
	war_exhaustion = 1.00
	time = 90
	maintenance = 1.0
	icon_frame = 2
	prerequisites = { "tech_assault_armies" }
	cost = {
		minerals = 100
	}
	show_tech_unlock_if = { 
		OR = {
			NOT = { has_authority = auth_machine_intelligence }
			has_valid_civic = civic_machine_assimilator
		}
	}
	potential = {
		from = {
			NOR = {
				has_trait = "trait_robotic_1"
				has_trait = "trait_robotic_2"
				has_trait = "trait_robotic_3"
				has_trait = "trait_machine_unit"
				has_trait = "trait_xilin_building"
				has_trait = "trait_robotic_xilin"	
				has_trait = trait_tree_spirit
				is_sapient = no
			}
		}
		owner = {
			OR = {
				NOT = { has_authority = auth_machine_intelligence }
				has_valid_civic = civic_machine_assimilator
			}
		}
	}
}
