﻿mp_pause_travel_plan = {
	hidden_effect = {
		current_travel_plan ?= {
			pause_travel_plan_mp = yes
		}
	}
}

mp_resume_travel_plan = {
	hidden_effect = {
		if = {
			limit = { has_multiple_players = yes }
			current_travel_plan ?= {
				resume_travel_plan = yes
			}
		}
	}
}

mp_delay_travel_plan = {
	hidden_effect = {
		if = {
			limit = { has_multiple_players = yes }
			current_travel_plan ?= {
				delay_travel_plan = {
					days = $DAYS$
				}
			}
		}
	}
}

food_poison_chance_effect = {
	custom_tooltip = chance_of_food_poisoning
	hidden_effect = {
		random = {
			chance = food_poison_value
			contract_disease_effect = { DISEASE = ill TREATMENT_EVENT = yes }
		}
	}
}

add_poi_diplomacy_experience_effect = {
	poi_lifestyle_experience_effect = {
		LIFESTYLE = diplomacy
		VALUE = travel_medium_xp
	}
}

add_poi_martial_experience_effect = {
	poi_lifestyle_experience_effect = {
		LIFESTYLE = martial
		VALUE = travel_medium_xp
	}
}

add_poi_stewardship_experience_effect = {
	poi_lifestyle_experience_effect = {
		LIFESTYLE = stewardship
		VALUE = travel_medium_xp
	}
}

add_poi_intrigue_experience_effect = {
	poi_lifestyle_experience_effect = {
		LIFESTYLE = intrigue
		VALUE = travel_medium_xp
	}
}

add_poi_learning_experience_effect = {
	poi_lifestyle_experience_effect = {
		LIFESTYLE = learning
		VALUE = travel_medium_xp
	}
}

add_poi_wanderer_experience_effect = {
	if = {
		limit = {
			has_bp3_dlc_trigger = yes
		}
		poi_lifestyle_experience_effect = {
			LIFESTYLE = wanderer
			VALUE = travel_medium_xp
		}
	}
}

poi_lifestyle_experience_effect = {
	add_$LIFESTYLE$_lifestyle_xp = $VALUE$
}
