﻿# OVERRIDE of the vanilla scripted rule can_start_bartering (common/scripted_rules/00_rules.txt,
# CK3 1.20.1.1). The first two lines are vanilla. Pilgrims and Preachers gives the barter mode to
# every landless adventurer (zzz_ppr_government_types.txt), so here only Pilgrims camps may use it,
# as a "preaching expedition". Player-only for now.

# Can this character start bartering right now? (can_barter will always get checked first)
# root: the potential bartering character
can_start_bartering = {
	# Minimum barter goods required for AI to start bartering is governed by the MIN_BARTER_GOODS_TO_START_BARTERING define in defines/ai/00_ai.txt
	government_allows = barter
	is_at_war = no
	trigger_if = {
		limit = { government_has_flag = government_is_landless_adventurer }
		custom_tooltip = {
			text = ppr_preaching_pilgrims_only_tt
			has_realm_law = ppr_camp_purpose_pilgrims
		}
		custom_tooltip = {
			text = ppr_preaching_players_only_tt
			is_ai = no
		}
	}
}

# OVERRIDE of the vanilla scripted rule can_start_raid (common/scripted_rules/00_rules.txt, CK3 1.20.1.1).
# The first line is vanilla. A Pilgrims camp does not raid (stated in the purpose description and its
# encyclopedia entry ppr_pilgrims).
can_start_raid = {
	is_at_war = no
	custom_tooltip = {
		text = ppr_pilgrims_cannot_raid_tt
		NOT = { has_realm_law = ppr_camp_purpose_pilgrims }
	}
}
