﻿physician_terrible_revoke_position = {
	category = interaction_category_diplomacy
	interface_priority = 120
	common_interaction = yes
	icon = seneschal_court_position
	
	hidden = yes
	prompt = physician_terrible_revoke_position_prompt
	
	is_shown = {
		scope:recipient = scope:actor
	}	

	populate_recipient_list = {
		physician_terrible_populate_effect = { POS = court_physician_court_position }
		physician_terrible_populate_effect = { POS = travel_leader_court_position }
		physician_terrible_populate_effect = { POS = antiquarian_court_position }
		physician_terrible_populate_effect = { POS = seneschal_court_position }
		physician_terrible_populate_effect = { POS = court_tutor_court_position }
		physician_terrible_populate_effect = { POS = wet_nurse_court_position }
		physician_terrible_populate_effect = { POS = charioteer_court_position }
		physician_terrible_populate_effect = { POS = bookmaker_court_position }
		physician_terrible_populate_effect = { POS = akolouthos_court_position }
		physician_terrible_populate_effect = { POS = chief_eunuch_court_position }
		physician_terrible_populate_effect = { POS = master_of_horse_court_position }
		physician_terrible_populate_effect = { POS = master_of_hunt_court_position }
		physician_terrible_populate_effect = { POS = master_assassin_court_position }
		physician_terrible_populate_effect = { POS = cultural_emissary_court_position }
		physician_terrible_populate_effect = { POS = cave_hermit_court_position }
		physician_terrible_populate_effect = { POS = chief_qadi_court_position }
		physician_terrible_populate_effect = { POS = court_gardener_court_position }
		physician_terrible_populate_effect = { POS = court_scholar_court_position }
		physician_terrible_populate_effect = { POS = chronicler_court_position }
		physician_terrible_populate_effect = { POS = champion_court_position }
		physician_terrible_populate_effect = { POS = court_brewmaster_court_position }
		physician_terrible_populate_effect = { POS = lady_in_waiting_court_position }
		physician_terrible_populate_effect = { POS = royal_architect_court_position }
		physician_terrible_populate_effect = { POS = high_almoner_court_position }
		physician_terrible_populate_effect = { POS = court_poet_court_position }
		physician_terrible_populate_effect = { POS = court_musician_court_position }
		physician_terrible_populate_effect = { POS = cupbearer_court_position }
		physician_terrible_populate_effect = { POS = food_taster_court_position }
		physician_terrible_populate_effect = { POS = keeper_of_swans_court_position }
		physician_terrible_populate_effect = { POS = court_jester_court_position }
		physician_terrible_populate_effect = { POS = executioner_court_position }
		physician_terrible_populate_effect = { POS = bodyguard_court_position }
		physician_terrible_populate_effect = { POS = court_artificer_court_position }
		physician_terrible_populate_effect = { POS = garuda_court_position }
		physician_terrible_populate_effect = { POS = second_camp_officer }
		physician_terrible_populate_effect = { POS = quartermaster_camp_officer }
		physician_terrible_populate_effect = { POS = armorer_camp_officer }
		physician_terrible_populate_effect = { POS = chief_forager_camp_officer }
		physician_terrible_populate_effect = { POS = master_thief_camp_officer }
		physician_terrible_populate_effect = { POS = head_porter_camp_officer }
		physician_terrible_populate_effect = { POS = head_groom_camp_officer }
		physician_terrible_populate_effect = { POS = huntperson_camp_officer }
		physician_terrible_populate_effect = { POS = kennelperson_camp_officer }
		physician_terrible_populate_effect = { POS = chief_engineer_camp_officer }
		physician_terrible_populate_effect = { POS = witness_camp_officer }
		physician_terrible_populate_effect = { POS = person_haggler_camp_officer }
		physician_terrible_populate_effect = { POS = camp_cook_camp_officer }
		physician_terrible_populate_effect = { POS = master_bard_camp_officer }
		physician_terrible_populate_effect = { POS = stooge_camp_officer }
		physician_terrible_populate_effect = { POS = master_of_arms_camp_officer }
		physician_terrible_populate_effect = { POS = light_cavalry_captain_camp_officer }
		physician_terrible_populate_effect = { POS = camelry_captain_camp_officer }
		physician_terrible_populate_effect = { POS = elephantry_captain_camp_officer }
		physician_terrible_populate_effect = { POS = heavy_cavalry_captain_camp_officer }
		physician_terrible_populate_effect = { POS = horse_archer_captain_camp_officer }
		physician_terrible_populate_effect = { POS = archer_captain_camp_officer }
		physician_terrible_populate_effect = { POS = heavy_infantry_captain_camp_officer }
		physician_terrible_populate_effect = { POS = light_infantry_captain_camp_officer }
		physician_terrible_populate_effect = { POS = pike_captain_camp_officer }
		physician_terrible_populate_effect = { POS = master_of_spoils_camp_officer }
		physician_terrible_populate_effect = { POS = laureate_camp_officer }
		physician_terrible_populate_effect = { POS = camp_priest_camp_officer }
		physician_terrible_populate_effect = { POS = grand_preceptor_court_position }
		physician_terrible_populate_effect = { POS = grand_mentor_court_position }
		physician_terrible_populate_effect = { POS = grand_guardian_court_position }
		physician_terrible_populate_effect = { POS = fire_dragon_engineer_court_position }
		physician_terrible_populate_effect = { POS = keeper_of_the_harem_court_position }
		physician_terrible_populate_effect = { POS = favored_minister_court_position }
		physician_terrible_populate_effect = { POS = minister_bureaucrat_court_position }
		physician_terrible_populate_effect = { POS = eparch_court_position }
		physician_terrible_populate_effect = { POS = court_guru_court_position }
		physician_terrible_populate_effect = { POS = court_brahmin_court_position }
		physician_terrible_populate_effect = { POS = khlon_glan_court_position }
		physician_terrible_populate_effect = { POS = court_astrologer_court_position }
		physician_terrible_populate_effect = { POS = boyan_court_position }
	}
	
	on_accept = {
		physician_terrible_revoke_effect = { POS = court_physician_court_position }
		physician_terrible_revoke_effect = { POS = travel_leader_court_position }
		physician_terrible_revoke_effect = { POS = antiquarian_court_position }
		physician_terrible_revoke_effect = { POS = seneschal_court_position }
		physician_terrible_revoke_effect = { POS = court_tutor_court_position }
		physician_terrible_revoke_effect = { POS = wet_nurse_court_position }
		physician_terrible_revoke_effect = { POS = charioteer_court_position }
		physician_terrible_revoke_effect = { POS = bookmaker_court_position }
		physician_terrible_revoke_effect = { POS = akolouthos_court_position }
		physician_terrible_revoke_effect = { POS = chief_eunuch_court_position }
		physician_terrible_revoke_effect = { POS = master_of_horse_court_position }
		physician_terrible_revoke_effect = { POS = master_of_hunt_court_position }
		physician_terrible_revoke_effect = { POS = master_assassin_court_position }
		physician_terrible_revoke_effect = { POS = cultural_emissary_court_position }
		physician_terrible_revoke_effect = { POS = cave_hermit_court_position }
		physician_terrible_revoke_effect = { POS = chief_qadi_court_position }
		physician_terrible_revoke_effect = { POS = court_gardener_court_position }
		physician_terrible_revoke_effect = { POS = court_scholar_court_position }
		physician_terrible_revoke_effect = { POS = chronicler_court_position }
		physician_terrible_revoke_effect = { POS = champion_court_position }
		physician_terrible_revoke_effect = { POS = court_brewmaster_court_position }
		physician_terrible_revoke_effect = { POS = lady_in_waiting_court_position }
		physician_terrible_revoke_effect = { POS = royal_architect_court_position }
		physician_terrible_revoke_effect = { POS = high_almoner_court_position }
		physician_terrible_revoke_effect = { POS = court_poet_court_position }
		physician_terrible_revoke_effect = { POS = court_musician_court_position }
		physician_terrible_revoke_effect = { POS = cupbearer_court_position }
		physician_terrible_revoke_effect = { POS = food_taster_court_position }
		physician_terrible_revoke_effect = { POS = keeper_of_swans_court_position }
		physician_terrible_revoke_effect = { POS = court_jester_court_position }
		physician_terrible_revoke_effect = { POS = executioner_court_position }
		physician_terrible_revoke_effect = { POS = bodyguard_court_position }
		physician_terrible_revoke_effect = { POS = court_artificer_court_position }
		physician_terrible_revoke_effect = { POS = garuda_court_position }
		physician_terrible_revoke_effect = { POS = second_camp_officer }
		physician_terrible_revoke_effect = { POS = quartermaster_camp_officer }
		physician_terrible_revoke_effect = { POS = armorer_camp_officer }
		physician_terrible_revoke_effect = { POS = chief_forager_camp_officer }
		physician_terrible_revoke_effect = { POS = master_thief_camp_officer }
		physician_terrible_revoke_effect = { POS = head_porter_camp_officer }
		physician_terrible_revoke_effect = { POS = head_groom_camp_officer }
		physician_terrible_revoke_effect = { POS = huntperson_camp_officer }
		physician_terrible_revoke_effect = { POS = kennelperson_camp_officer }
		physician_terrible_revoke_effect = { POS = chief_engineer_camp_officer }
		physician_terrible_revoke_effect = { POS = witness_camp_officer }
		physician_terrible_revoke_effect = { POS = person_haggler_camp_officer }
		physician_terrible_revoke_effect = { POS = camp_cook_camp_officer }
		physician_terrible_revoke_effect = { POS = master_bard_camp_officer }
		physician_terrible_revoke_effect = { POS = stooge_camp_officer }
		physician_terrible_revoke_effect = { POS = master_of_arms_camp_officer }
		physician_terrible_revoke_effect = { POS = light_cavalry_captain_camp_officer }
		physician_terrible_revoke_effect = { POS = camelry_captain_camp_officer }
		physician_terrible_revoke_effect = { POS = elephantry_captain_camp_officer }
		physician_terrible_revoke_effect = { POS = heavy_cavalry_captain_camp_officer }
		physician_terrible_revoke_effect = { POS = horse_archer_captain_camp_officer }
		physician_terrible_revoke_effect = { POS = archer_captain_camp_officer }
		physician_terrible_revoke_effect = { POS = heavy_infantry_captain_camp_officer }
		physician_terrible_revoke_effect = { POS = light_infantry_captain_camp_officer }
		physician_terrible_revoke_effect = { POS = pike_captain_camp_officer }
		physician_terrible_revoke_effect = { POS = master_of_spoils_camp_officer }
		physician_terrible_revoke_effect = { POS = laureate_camp_officer }
		physician_terrible_revoke_effect = { POS = camp_priest_camp_officer }
		physician_terrible_revoke_effect = { POS = grand_preceptor_court_position }
		physician_terrible_revoke_effect = { POS = grand_mentor_court_position }
		physician_terrible_revoke_effect = { POS = grand_guardian_court_position }
		physician_terrible_revoke_effect = { POS = fire_dragon_engineer_court_position }
		physician_terrible_revoke_effect = { POS = keeper_of_the_harem_court_position }
		physician_terrible_revoke_effect = { POS = favored_minister_court_position }
		physician_terrible_revoke_effect = { POS = minister_bureaucrat_court_position }
		physician_terrible_revoke_effect = { POS = eparch_court_position }
		physician_terrible_revoke_effect = { POS = court_guru_court_position }
		physician_terrible_revoke_effect = { POS = court_brahmin_court_position }
		physician_terrible_revoke_effect = { POS = khlon_glan_court_position }
		physician_terrible_revoke_effect = { POS = court_astrologer_court_position }
		physician_terrible_revoke_effect = { POS = boyan_court_position }
		scope:secondary_recipient = {
			if = {
				limit = {
					NOT = { has_character_flag = no_revoke_opinion_loss }
				}
				add_opinion = {
					modifier = revoked_court_position_opinion
					target = scope:actor
					opinion = -30
				}
				hidden_effect = {
					remove_opinion = {
						modifier = revoked_court_position_opinion
						target = scope:actor
						single = yes
					}
				}
			}
		}
		scope:actor = {
			if = {
				limit = {
					has_trait = compassionate				
				}
				add_stress = minor_stress_gain
			}
			if = {
				limit = {
					has_trait = callous
				}
				add_stress = minor_stress_loss
			}
		}
	}

	auto_accept = yes
}





