﻿
has_inspirational_lifestyle_trait_trigger = {
	custom_tooltip = {
		text = has_inspirational_lifestyle_trait
		OR = {
			has_trait = inspirational_blacksmith
			has_trait = inspirational_goldsmith
			has_trait = inspirational_artisan
			has_trait = inspirational_author
			has_trait = inspirational_weaver
			has_trait = inspirational_alchemist
		}
	}	
}

has_inspirational_lifestyle_xp_trigger = {
	custom_tooltip = {
		text = has_inspirational_lifestyle_rank_$RANK$
		OR = {
			has_trait_xp = {
				trait = inspirational_blacksmith
				track = weaponsmith
				value >= $XP$
			}
			has_trait_xp = {
				trait = inspirational_blacksmith
				track = armorsmith
				value >= $XP$
			}
			has_trait_xp = {
				trait = inspirational_goldsmith
				track = majesty
				value >= $XP$
			}
			has_trait_xp = {
				trait = inspirational_goldsmith
				track = luxury
				value >= $XP$
			}
			has_trait_xp = {
				trait = inspirational_artisan
				track = sculpture
				value >= $XP$
			}
			has_trait_xp = {
				trait = inspirational_artisan
				track = carpentry
				value >= $XP$
			}
			has_trait_xp = {
				trait = inspirational_author
				track = manuscripts
				value >= $XP$
			}
			has_trait_xp = {
				trait = inspirational_weaver
				track = wall_hanging
				value >= $XP$
			}
			has_trait_xp = {
				trait = inspirational_alchemist
				track = theory
				value >= $XP$
			}
		}
	}
}

#replaced vanilla triggers
court_artificer_validity_trigger = {
	base_court_position_validity_trigger = { EMPLOYER = $EMPLOYER$ }
	is_landed = no
	custom_tooltip = {
		text = NONE_NOT_THE_SPOUSE_OF_CHARACTER_COURT_POSITION
		NOT = { is_spouse_of = $EMPLOYER$ }
	}
	OR = {
		custom_tooltip = {
			text = has_a_completed_inspiration
			has_completed_inspiration = yes
		}
		custom_tooltip = {
			text = has_an_inspiration
			exists = inspiration
		}
		has_inspirational_lifestyle_trait_trigger = yes
	}
	custom_tooltip = {
		text = none_does_not_have_a_full_time_job
		trigger_if = {
			limit = { NOT = { has_court_position = court_artificer_court_position } }
			court_position_does_not_already_have_a_job_trigger = yes # This positions is considered a job, and cannot be held at the same time as another similar position
		}
	}
}