﻿# OVERRIDE of the vanilla objects GetActivitySpecialType and GetActivitySpecialTypeDesc
# (common/customizable_localization/00_activity_loc.txt, CK3 1.20.1.1).
# They label the activity progression bar and are hard-wired per activity type, so the
# only way to give the Camp Retreat a labelled bar is to copy them and add an entry.
# Everything above the "Pilgrims and Preachers" entries is an exact copy of vanilla:
# re-copy it if a game update changes the vanilla file.

GetActivitySpecialType = {
	type = activity

	#Pilgrimage
	##Pious Type
	text = {
		trigger = {
			has_activity_type = activity_pilgrimage
			OR = {
				has_activity_option = {
					category = special_type
					option = pilgrimage_type_pious
				}
				has_activity_option = {
					category = special_type
					option = pilgrimage_type_hajj
				}
			}

		}
		localization_key = pilgrimage_piousness
	}

	##Worldly Type
	text = {
		trigger = {
			has_activity_type = activity_pilgrimage
			has_activity_option = {
				category = special_type
				option = pilgrimage_type_worldly
			}
		}
		localization_key = pilgrimage_worldliness
	}

	##Uni Visit
	text = {
		trigger = {
			has_activity_type = activity_adult_education
		}
		localization_key = activity_adult_education_success
	}

	##Camp Party
	text = {
		trigger = { has_activity_type = activity_camp_party }
		localization_key = activity_camp_party_success
	}

	##Pilgrims and Preachers: Camp Retreat
	text = {
		trigger = { has_activity_type = ppr_activity_camp_retreat }
		localization_key = ppr_activity_camp_retreat_success
	}
}

GetActivitySpecialTypeDesc = { # Only used for Pilgrimages
	type = activity

	#Pilgrimage
	##Pious Type
	text = {
		trigger = {
			has_activity_type = activity_pilgrimage
			has_activity_option = {
				category = special_type
				option = pilgrimage_type_pious
			}
		}
		localization_key = pilgrimage_piousness_desc
	}

	##Worldly Type
	text = {
		trigger = {
			has_activity_type = activity_pilgrimage
			has_activity_option = {
				category = special_type
				option = pilgrimage_type_worldly
			}
		}
		localization_key = pilgrimage_worldliness_desc
	}

	##Camp Party
	text = {
		trigger = { has_activity_type = activity_camp_party }
		localization_key = activity_camp_party_success_desc
	}

	##Pilgrims and Preachers: Camp Retreat
	text = {
		trigger = { has_activity_type = ppr_activity_camp_retreat }
		localization_key = ppr_activity_camp_retreat_success_desc
	}
}
