﻿# Pilgrims and Preachers - decisions

# Camp version of By God Alone's "Stage an Act of Devotion", which vanilla
# hides from landless adventurers. Additive: the vanilla decision is untouched.
ppr_camp_act_of_devotion_decision = {
	picture = {
		reference = "gfx/interface/illustrations/decisions/pam_decision_act_of_devotion.dds"
	}
	decision_group_type = religious

	desc = ppr_camp_act_of_devotion_decision_desc
	selection_tooltip = ppr_camp_act_of_devotion_decision_tooltip

	sort_order = 80
	ai_check_interval = 0 # Player-only

	is_shown = {
		ppr_can_stage_camp_devotion_trigger = yes
	}

	is_valid = {
		is_at_war = no
		custom_tooltip = {
			text = pam_decision_act_of_devotion_sp_tooltip
			has_fulfillment_parameter = sp_act_of_devotion_decision
		}
	}

	is_valid_showing_failures_only = {
		is_available_quick = {
			alive = yes
			adult = yes
			at_war = no
			imprisoned = no
			activity = no
		}
	}

	cooldown = { years = 10 }

	cost = {
		piety = major_piety_value
	}

	effect = {
		custom_tooltip = pam_decision_act_of_devotion_tooltip_effect
		trigger_event = ppr_decision_events.0001
		# Same catalyst as the vanilla decision
		if = {
			limit = {
				religion = religion:christianity_religion
				situation:the_christian_church ?= {
					situation_top_has_catalyst = catalyst_the_christian_church_staged_act_of_devotion
				}
			}
			situation:the_christian_church = {
				trigger_situation_catalyst = catalyst_the_christian_church_staged_act_of_devotion
			}
		}
	}

	ai_potential = {
		always = no
	}

	ai_will_do = {
		base = 0
	}
}
