# Register cultivation GUI files

# Cultivation trait visibility checks
# Place in common/scripted_guis/cultivation_trait_display.txt

### LEFT PARTNER FINDER ###

open_left_partner_finder = {
	scope = character
	
	effect = {
		# Open the character finder window
		open_interaction_window = {
			interaction = find_cultivation_left_partner
			actor = root
		}
	}
}

remove_left_partner = {
	scope = character
	
	is_shown = {
		has_variable = cultivation_left_partner
	}
	
	effect = {
		remove_variable = cultivation_left_partner
	}
}

### RIGHT PARTNER FINDER ###

open_right_partner_finder = {
	scope = character
	
	effect = {
		# Open the character finder window
		open_interaction_window = {
			interaction = find_cultivation_right_partner
			actor = root
		}
	}
}

remove_right_partner = {
	scope = character
	
	is_shown = {
		has_variable = cultivation_right_partner
	}
	
	effect = {
		remove_variable = cultivation_right_partner
	}
}

### TRAIT VISIBILITY (for cultivation level display) ###

show_qi_gathering = {
	scope = character
	is_shown = {
		has_trait = cultivation_qi_gathering
	}
}

show_qi_refining = {
	scope = character
	is_shown = {
		has_trait = cultivation_qi_refining
	}
}

show_qi_building = {
	scope = character
	is_shown = {
		has_trait = cultivation_qi_building
	}
}

show_core_formation = {
	scope = character
	is_shown = {
		has_trait = cultivation_core_formation
	}
}

show_nascent_soul = {
	scope = character
	is_shown = {
		has_trait = cultivation_nascent_soul
	}
}

show_heavenly_being = {
	scope = character
	is_shown = {
		has_trait = cultivation_heavenly_being
	}
}

show_four_axis = {
	scope = character
	is_shown = {
		has_trait = cultivation_four_axis
	}
}

show_integration = {
	scope = character
	is_shown = {
		has_trait = cultivation_integration
	}
}

show_star_shattering = {
	scope = character
	is_shown = {
		has_trait = cultivation_star_shattering
	}
}

show_sacred_vessel = {
	scope = character
	is_shown = {
		has_trait = cultivation_sacred_vessel
	}
}

show_entering_nirvana = {
	scope = character
	is_shown = {
		has_trait = cultivation_entering_nirvana
	}
}

show_true_immortal = {
	scope = character
	is_shown = {
		has_trait = cultivation_true_immortal
	}
}

show_mortal = {
	scope = character
	is_shown = {
		NOT = { 
			has_trait = cultivation_qi_gathering
			has_trait = cultivation_qi_refining
			has_trait = cultivation_qi_building
			has_trait = cultivation_core_formation
			has_trait = cultivation_nascent_soul
			has_trait = cultivation_heavenly_being
			has_trait = cultivation_four_axis
			has_trait = cultivation_integration
			has_trait = cultivation_star_shattering
			has_trait = cultivation_sacred_vessel
			has_trait = cultivation_entering_nirvana
			has_trait = cultivation_true_immortal
        }   
	}
}