﻿elemental_mage_perk = {
	lifestyle = magic_lifestyle
	tree = elemental_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
		}
	}
	character_modifier = {
		prowess = 2
	}
	effect = {
		custom_description_no_bullet = {
			text = mage_effect
		}
		add_trait_force_tooltip = mage
	}
}

burning_hands_perk = {
	lifestyle = magic_lifestyle
	tree = elemental_magic
	position = { 0 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 = elemental_mage_perk
}


fireball_perk = {
	lifestyle = magic_lifestyle
	tree = elemental_magic
	position = { 0 2.5 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	character_modifier = {
		enemy_hard_casualty_modifier = 0.25
	}
	
	parent = burning_hands_perk
}


living_earthworks_perk = {
	lifestyle = magic_lifestyle
	tree = elemental_magic
	position = { 2 1.25 }
	icon = node_diplomacy
	
	parent = elemental_mage_perk
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_1
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	character_modifier = {
		fort_level = 2
	}
}


golem_creation_perk = {
	lifestyle = magic_lifestyle
	tree = elemental_magic
	position = { 2 2.5 }
	icon = node_diplomacy
	
	parent = living_earthworks_perk
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	effect = {
		custom_description_no_bullet = {
			text = golem_creation_perk_effect
		}
	}
}


control_water_perk = {
	lifestyle = magic_lifestyle
	tree = elemental_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
		}
	}
	
	character_modifier = {
		naval_movement_speed_mult = 0.25
		no_water_crossing_penalty = yes
	}
	
	parent = elemental_mage_perk
}


drought_perk = {
	lifestyle = magic_lifestyle
	tree = elemental_magic
	position = { 4 2.5 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = control_water_perk
	
	character_modifier = {
		siege_phase_time = -0.3
	}
}


elemental_magic_8_perk = {
	lifestyle = magic_lifestyle
	tree = elemental_magic
	position = { 2 3.75 }
	icon = node_diplomacy
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_2
			has_trait = magic_potential_3
		}
	}
	
	parent = fireball_perk
	parent = golem_creation_perk
	parent = drought_perk
	
	effect = {
		custom_description_no_bullet = {
			text = placeholder_effect
		}
	}
}


elemental_magic_9_perk = {
	lifestyle = magic_lifestyle
	tree = elemental_magic
	position = { 2 5 }
	icon = elemental_capstone
	
	can_be_picked = {
		OR = {
			has_trait = magic_potential_3
		}
	}
	
	parent = elemental_magic_8_perk
	
	effect = {
		custom_description_no_bullet = {
			text = placeholder_effect
		}
	}
}
