trade_post_decisions = {

	establish_customs_duty_1 = {
		is_high_prio = yes
		filter = owned
		ai_target_filter = owned
		
		from_potential = {
		
		}

		potential = {
			has_trade_post = yes
			owner = { character = FROM }
			trade_post_owner = {
				NOT = {
					character = FROM
					is_liege_or_above  = FROM
				}
			}
		}
		allow = {
			FROM = {
				wealth = 100
				prestige = 300
				TECH_TRADE_PRACTICES = 1
			}
			custom_tooltip = {
				text = TOOLTIP_CUSTOMS_RESTRICTION
				NOT = { location = { trade_post_has_building = tr_customs_office_1 }}
			}
		}
		effect = {
			FROM = {
				wealth = -100
				prestige = -300
				add_character_modifier = {
					name = customs_office_modifier
					duration = -1
					stacking = yes
				}
			}
			hidden_tooltip = {
				ROOT = {
					add_to_extra_holding = { type = trade_post building = tr_customs_office_1 }
				}
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}
}