﻿time_mage_perk = {
	lifestyle = magic_lifestyle
	tree = time_magic
	position = { 2 0 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_1
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	auto_selection_weight = {
		value = 11
		if = {
			limit = {
				has_trait = magic_potential
			}
			add = 1989
		}
		if = {
			limit = {
				can_start_new_lifestyle_tree_trigger = no
			}
			multiply = 0
		}
	}
	effect = {
		custom_description_no_bullet = {
			text = mage_effect
		}
		add_trait_force_tooltip = mage
	}
	character_modifier = {
		monthly_income_mult = 0.1
	}
}

glimpse_the_future_perk = {
	lifestyle = magic_lifestyle
	tree = time_magic
	position = { 0 1.25 }
	icon = node_diplomacy
	
	character_modifier = {
		cultural_head_fascination_mult = 0.35
	}
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_1
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = time_mage_perk
}


finacial_times_perk = {
	lifestyle = magic_lifestyle
	tree = time_magic
	position = { 0 2.5 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = glimpse_the_future_perk
	
	character_modifier = {
		monthly_income_mult = 0.5
	}
}


celerity_perk = {
	lifestyle = magic_lifestyle
	tree = time_magic
	position = { 2 1.25 }
	icon = node_diplomacy
	
	parent = time_mage_perk
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_1
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	character_modifier = {
		prowess = 4
	}
}


mass_celerity_perk = {
	lifestyle = magic_lifestyle
	tree = time_magic
	position = { 2 2.5 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = celerity_perk
	
	character_modifier = {
		movement_speed = 0.25
		retreat_losses = -0.2
	}
}


slowness_perk = {
	lifestyle = magic_lifestyle
	tree = time_magic
	position = { 4 1.25 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_1
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = time_mage_perk
	
	character_modifier = {
		prowess = 4
	}
}


mass_slowness_perk = {
	lifestyle = magic_lifestyle
	tree = time_magic
	position = { 4 2.5 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = slowness_perk
	
	character_modifier = {
		advantage = 5
		hard_casualty_modifier = -0.2
	}
}


temporal_manipulation_perk = {
	lifestyle = magic_lifestyle
	tree = time_magic
	position = { 2 3.75 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = finacial_times_perk
	parent = mass_celerity_perk
	parent = mass_slowness_perk
	
	character_modifier = {
		monthly_income_mult = 1
		build_speed = -0.5
	}
}


master_of_time_perk = {
	lifestyle = magic_lifestyle
	tree = time_magic
	position = { 2 5 }
	icon = trait_master_of_time
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_3
		}
	}
	
	parent = temporal_manipulation_perk
	
	effect = {
		add_trait_force_tooltip = master_of_time
	}
}
