﻿##################################################
# MORTAL REALM (Y: 0-3)
# Tree: mortal_realm_tree
##################################################

mortal_muscle_reconstruction_perk = {
	lifestyle = cultivation_lifestyle
	tree = mortal_realm_tree
	position = { 0 0 }
	
	icon = node_cultivation
	
	auto_selection_weight = {
		value = 1000
		if = {
			limit = {
				OR = {
					has_focus = cultivation_orthodox_focus
					has_focus = cultivation_unorthodox_focus
					has_focus = cultivation_demonic_focus
					has_focus = cultivation_vagrant_focus
				}
			}
			multiply = 5
		}
	}
	
	character_modifier = {
		prowess = 1
		health = 0.25
	}
}

mortal_bone_reconstruction_perk = {
	lifestyle = cultivation_lifestyle
	tree = mortal_realm_tree
	position = { 2 0 }
	
	icon = node_cultivation
	
	character_modifier = {
		prowess = 1
		health = 0.25
	}
}

mortal_internal_reconstruction_perk = {
	lifestyle = cultivation_lifestyle
	tree = mortal_realm_tree
	position = { 0 2 }
	
	icon = node_cultivation
	parent = mortal_muscle_reconstruction_perk
	
	character_modifier = {
		prowess = 2
		health = 0.5
	}
}

mortal_external_reconstruction_perk = {
	lifestyle = cultivation_lifestyle
	tree = mortal_realm_tree
	position = { 2 2 }
	
	icon = node_cultivation
	parent = mortal_bone_reconstruction_perk
	
	character_modifier = {
		prowess = 2
		health = 0.5
	}
}

mortal_body_reconstruction_perk = {
	lifestyle = cultivation_lifestyle
	tree = mortal_realm_tree
	position = { 1 3 }
	
	icon = node_cultivation
	parent = mortal_internal_reconstruction_perk
	parent = mortal_external_reconstruction_perk
	
	character_modifier = {
		prowess = 2
		health = 0.5
	}
}

mortal_qi_gathering_breakthrough_perk = {
	lifestyle = cultivation_lifestyle
	tree = mortal_realm_tree
	position = { 1 4 }
	
	icon = cultivation_qi_gathering_f
	parent = mortal_body_reconstruction_perk
	
	trait = cultivation_qi_gathering	# Shows trait tooltip in perk tree UI
	
	effect = {
		# No need to remove trait - it was never added!
		# The 'trait =' above is ONLY for UI tooltip
		add_character_flag = can_attempt_qi_gathering_breakthrough
		trigger_event = cultivation_breakthrough.1000
	}
	
	character_modifier = {
		prowess = 2
		learning = 1
	}
}