﻿life_mage_perk = {
	lifestyle = magic_lifestyle
	tree = life_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
	}
}

inward_reflection_perk = {
	lifestyle = magic_lifestyle
	tree = life_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
		}
	}
	
	character_modifier = {
		health = 0.5
		life_expectancy = 20
	}
	
	parent = life_mage_perk
}


inward_perfection_perk = {
	lifestyle = magic_lifestyle
	tree = life_magic
	position = { 0 2.5 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = inward_reflection_perk
	
	character_modifier = {
		health = 0.5
		life_expectancy = 20
		no_prowess_loss_from_age = yes
	}
}

heal_perk = {
	lifestyle = magic_lifestyle
	tree = life_magic
	position = { 2 1.25 }
	icon = node_diplomacy
	
	parent = life_mage_perk
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_1
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	effect = {
		custom_description_no_bullet = {
			text = heal_perk_effect
		}
	}
}


greater_heal_perk = {
	lifestyle = magic_lifestyle
	tree = life_magic
	position = { 2 2.5 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = heal_perk
	
	effect = {
		custom_description_no_bullet = {
			text = greater_heal_perk_effect
		}
	}
}


battlefield_life_mage_perk = {
	lifestyle = magic_lifestyle
	tree = life_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 = life_mage_perk
	
	character_modifier = {
		hard_casualty_modifier = -0.3
	}
}


greater_battlefield_life_mage_perk = {
	lifestyle = magic_lifestyle
	tree = life_magic
	position = { 4 2.5 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = battlefield_life_mage_perk
	
	character_modifier = {
		hard_casualty_modifier = -0.3
	}
}


purity_of_body_perk = {
	lifestyle = magic_lifestyle
	tree = life_magic
	position = { 2 3.75 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = inward_perfection_perk
	parent = greater_heal_perk
	parent = greater_battlefield_life_mage_perk
	
	character_modifier = {
		life_expectancy = 10
	}
	
	effect = {
		custom_description_no_bullet = {
			text = purity_of_body_perk_effect
		}
		add_character_flag = immune_to_disease
	}
}


avatar_of_life_perk = {
	lifestyle = magic_lifestyle
	tree = life_magic
	position = { 2 5 }
	icon = life_capstone
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_3
		}
	}
	
	parent = purity_of_body_perk
	
	effect = {
		custom_description_no_bullet = {
			text = avatar_of_life_perk_effect
		}
		add_trait_force_tooltip = avatar_of_life
	}
}

