﻿
gpt_bestow_favor = {
	picture = { reference = "gfx/interface/illustrations/decisions/gpt_bestow_favor.dds" }
	sort_order = 5
	decision_group_type = admin
	title = gpt_bestow_favor_title
    desc = gpt_bestow_favor_desc
    selection_tooltip = gpt_bestow_favor_tooltip
    confirm_text = gpt_bestow_favor_confirm_text

 #	cooldown = { years = 5 }

	is_shown = {
		is_landless_adventurer = no
		is_ai = no
		has_trait = gpt_social_strata
		is_landed = yes
		OR = {
			has_game_rule = GPT_rfavor_player
			has_game_rule = GPT_rfavor_count
			has_game_rule = GPT_rfavor_duke
			has_game_rule = GPT_rfavor_king
		}
	 #	NOR = {
	 #		faith = { has_doctrine_parameter = unreformed }
	 #		government_has_flag = government_is_tribal
	 #	 	culture = { has_cultural_tradition = tradition_horse_lords }
	 #	}
	}

	cost = {
		prestige = {
			value = 0
			if = { limit = { highest_held_title_tier = 5 } add = 300 }
			if = { limit = { highest_held_title_tier = 4 } add = 200 }
			if = { limit = { highest_held_title_tier = 3 } add = 150 }
			if = { limit = { highest_held_title_tier = 2 } add = 100 }
			if = { limit = { has_character_flag = gpt_favoring_dynasty } multiply = 2 }
			if = { limit = { has_character_flag = gpt_favoring_nobility } multiply = 2 }
			if = { limit = { has_character_flag = gpt_favoring_merchants } multiply = 2 }
			if = { limit = { has_character_flag = gpt_favoring_knights } multiply = 2 }
			if = { limit = { has_character_flag = gpt_favoring_clergy } multiply = 2 }
			if = { limit = { has_character_flag = gpt_favoring_peasants } multiply = 2 }
			if = { limit = { has_character_flag = gpt_favoring_criminals } multiply = 2 }
		}
	}

	effect = {

		custom_tooltip = gpt_bestow_favor_tip_1
		custom_tooltip = gpt_bestow_favor_tip_2
		custom_tooltip = gpt_bestow_favor_tip_3

		trigger_event = {
			id = bestow_favor_events.0001
		}
	}
	
	is_valid = {
		is_at_war = no
		is_imprisoned = no
		is_adult = yes
	}

	ai_check_interval = 0
}

gpt_revoke_favor = {
	picture = { reference = "gfx/interface/illustrations/decisions/gpt_revoke_favor.dds" }
	sort_order = 5
	decision_group_type = admin
	title = gpt_revoke_favor_title
    desc = gpt_revoke_favor_desc
    selection_tooltip = gpt_revoke_favor_tooltip
    confirm_text = gpt_revoke_favor_confirm_text

 	cooldown = { years = 5 }

	is_shown = {
		is_landless_adventurer = no
		is_ai = no
		has_trait = gpt_social_strata
		is_landed = yes
		OR = {
			has_game_rule = GPT_rfavor_player
			has_game_rule = GPT_rfavor_count
			has_game_rule = GPT_rfavor_duke
			has_game_rule = GPT_rfavor_king
		}
	 #	NOR = {
	 #		faith = { has_doctrine_parameter = unreformed }
	 #		government_has_flag = government_is_tribal
	 #	 	culture = { has_cultural_tradition = tradition_horse_lords }
	 #	}
	}

	cost = {
		prestige = {
			value = 0
			if = { limit = { highest_held_title_tier = 5 } add = 300 }
			if = { limit = { highest_held_title_tier = 4 } add = 200 }
			if = { limit = { highest_held_title_tier = 3 } add = 150 }
			if = { limit = { highest_held_title_tier = 2 } add = 100 }
		}
	}

	effect = {

	 #	custom_tooltip = gpt_revoke_favor_tip_1
	 #	custom_tooltip = gpt_revoke_favor_tip_2
	 #	custom_tooltip = gpt_revoke_favor_tip_3

		trigger_event = {
			id = bestow_favor_events.0002
		}
	}
	
	is_valid = {
		is_at_war = no
		is_imprisoned = no
		is_adult = yes
	}

	ai_check_interval = 0
}






gpt_adv_bestow_favor = {
	picture = { reference = "gfx/interface/illustrations/decisions/gpt_adv_bestow_favor.dds" }
	sort_order = 5
	decision_group_type = admin
	title = gpt_adv_bestow_favor_title
    desc = gpt_adv_bestow_favor_desc
    selection_tooltip = gpt_adv_bestow_favor_tooltip
    confirm_text = gpt_adv_bestow_favor_confirm_text

 #	cooldown = { years = 5 }

	is_shown = {
		is_landless_adventurer = yes
		is_ai = no
		has_trait = gpt_adv_social_strata
		OR = {
			has_game_rule = gpt_adv_rfavor_player
			has_game_rule = gpt_adv_rfavor_count
		}
	 #	NOR = {
	 #		faith = { has_doctrine_parameter = unreformed }
	 #		government_has_flag = government_is_tribal
	 #	 	culture = { has_cultural_tradition = tradition_horse_lords }
	 #	}
	}

	cost = {
		prestige = {
			value = 0
			if = { limit = { highest_held_title_tier = 5 } add = 300 }
			if = { limit = { highest_held_title_tier = 4 } add = 200 }
			if = { limit = { highest_held_title_tier = 3 } add = 150 }
			if = { limit = { highest_held_title_tier = 2 } add = 100 }
			if = { limit = { has_character_flag = gpt_adv_favoring_nobility } multiply = 2 }
			if = { limit = { has_character_flag = gpt_adv_favoring_merchants } multiply = 2 }
			if = { limit = { has_character_flag = gpt_adv_favoring_knights } multiply = 2 }
			if = { limit = { has_character_flag = gpt_adv_favoring_clergy } multiply = 2 }
			if = { limit = { has_character_flag = gpt_adv_favoring_peasants } multiply = 2 }
			if = { limit = { has_character_flag = gpt_adv_favoring_criminals } multiply = 2 }
		}
	}

	effect = {

		custom_tooltip = gpt_adv_bestow_favor_tip_1
		custom_tooltip = gpt_adv_bestow_favor_tip_2
		custom_tooltip = gpt_adv_bestow_favor_tip_3

		trigger_event = {
			id = bestow_favor_adv_events.0001
		}
	}
	
	is_valid = {
		is_at_war = no
		is_imprisoned = no
		is_adult = yes
	}

	ai_check_interval = 0
}