##################################################
# QI GATHERING REALM (Y: 4-9)
# Tree: qi_gathering_tree
# Has branching at Meridian 3!
##################################################

qi_gathering_meridian_1_perk = {
	lifestyle = cultivation_lifestyle
	tree = qi_gathering_tree
	position = { 1 0 }
	
	can_be_picked = {
		has_trait = cultivation_qi_gathering
	}
	icon = node_cultivation

	
	character_modifier = {
		learning = 1
		martial = 1
	}
}

qi_gathering_meridian_2_perk = {
	lifestyle = cultivation_lifestyle
	tree = qi_gathering_tree
	position = { 1 1 }
	
	can_be_picked = {
		has_trait = cultivation_qi_gathering
	}
	icon = node_cultivation
	parent = qi_gathering_meridian_1_perk
	
	character_modifier = {
		learning = 1
		prowess = 1
	}
}

# BRANCH: Meridian 3a (left path)
qi_gathering_meridian_3a_perk = {
	lifestyle = cultivation_lifestyle
	tree = qi_gathering_tree
	position = { 0 2 }
	
	can_be_picked = {
		has_trait = cultivation_qi_gathering
	}
	icon = node_cultivation
	parent = qi_gathering_meridian_2_perk
	
	character_modifier = {
		learning = 1
		health = 0.25
	}
}

# BRANCH: Meridian 3b (right path)
qi_gathering_meridian_3b_perk = {
	lifestyle = cultivation_lifestyle
	tree = qi_gathering_tree
	position = { 2 2 }
	
	can_be_picked = {
		has_trait = cultivation_qi_gathering
	}
	icon = node_cultivation
	parent = qi_gathering_meridian_2_perk
	
	character_modifier = {
		prowess = 1
		health = 0.25
	}
}

# Merges from both 3a and 3b
qi_gathering_meridian_4_perk = {
	lifestyle = cultivation_lifestyle
	tree = qi_gathering_tree
	position = { 1 3 }
	
	can_be_picked = {
		has_trait = cultivation_qi_gathering
	}
	icon = node_cultivation
	parent = qi_gathering_meridian_3a_perk
	parent = qi_gathering_meridian_3b_perk
	
	character_modifier = {
		learning = 2
		prowess = 1
		health = 0.5
	}
}

qi_gathering_qi_refining_breakthrough_perk = {
	lifestyle = cultivation_lifestyle
	tree = qi_gathering_tree
	position = { 1 4 }
	
	can_be_picked = {
		has_trait = cultivation_qi_gathering
	}
	icon = cultivation_qi_refining_f
	parent = qi_gathering_meridian_4_perk
	
	trait = cultivation_qi_refining	# 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_refining_breakthrough
		trigger_event = cultivation_breakthrough.1100
	}
	
	character_modifier = {
		learning = 2
		prowess = 2
		monthly_lifestyle_xp_gain_mult = 0.05
	}
}