cfh_highvalue_gold_greed = {
	name = CFH_HIGHVALUE_CB_NAME_GOLD_GREED_CONQUEST
	war_name = CFH_HIGHVALUE_WAR_NAME_GOLD_GREED_CONQUEST
	sprite = 27
	truce_days = 3650
	hostile_against_others = yes
	full_hostility = yes
	is_permanent = yes
	check_all_titles = yes # if permanent, setting this to true will check against all of someones titles, including vassal held titles
	can_ask_to_join_war = no
	allowed_to_target_tributaries = no
	
	infamy_modifier = 2
	
	sort_priority = 795
	
	can_use = {
		NOT = { 
			has_game_rule = {
				name = cfh_rule_highvalue
				value = off
			}
		}
		ROOT = {
			NOT = { is_liege_or_above = FROM }
			mercenary = no
			clan = no
			tier = count
		}
	}

	can_use_title = {
		OR = {
			has_building = cfh_highvalue_ca_gold_mine_0
			has_building = cfh_highvalue_ca_gold_mine_1
			has_building = cfh_highvalue_ca_gold_mine_2
			has_building = cfh_highvalue_ca_gold_mine_3
			has_building = cfh_highvalue_ca_gold_mine_4
			has_building = cfh_highvalue_ct_gold_mine_0
			has_building = cfh_highvalue_ct_gold_mine_1
			has_building = cfh_highvalue_ct_gold_mine_2
			has_building = cfh_highvalue_ct_gold_mine_3
			has_building = cfh_highvalue_ct_gold_mine_4
			has_building = cfh_highvalue_tb_gold_mine_0
			has_building = cfh_highvalue_tb_gold_mine_1
			has_building = cfh_highvalue_tb_gold_mine_2
			has_building = cfh_highvalue_tp_gold_mine_0
			has_building = cfh_highvalue_tp_gold_mine_1
			has_building = cfh_highvalue_tp_gold_mine_2
			has_building = cfh_highvalue_tp_gold_mine_3
			has_building = cfh_highvalue_tp_gold_mine_4
		}
	}

	is_valid_title = {
		OR = {
			FROM = {
				has_landed_title = PREV
			}
			holder_scope = {
				is_liege_or_above = FROM
			}
		}
	}

	on_success_title = {
		usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion }
	}

	on_fail_title = {
		ROOT = {
			prestige = -200
		}
		FROM = {
			participation_scaled_prestige = 100
		}
		any_defender = {
			limit = { NOT = { character = FROM } }
			hidden_tooltip = { participation_scaled_prestige = 100 }
		}
	}

	on_reverse_demand = {
		ROOT = {
			prestige = -100
			transfer_scaled_wealth = {
				to = FROM
				value = 2.0
			}
		}
		FROM = {
			participation_scaled_prestige = 100
		}
		any_defender = {
			limit = { NOT = { character = FROM } }
			hidden_tooltip = { participation_scaled_prestige = 100 }
		}
	}
	
	attacker_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	attacker_ai_defeat_worth = {
		factor = 100
	}

	defender_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	defender_ai_defeat_worth = {
		factor = 100
	}
	
	ai_will_do = { 
		factor = 1
		modifier = {
			factor = 0.1
			ROOT = {
				independent = no
				same_liege = FROM
			}
		}
	}
}

cfh_highvalue_silver_greed = {
	name = CFH_HIGHVALUE_CB_NAME_SILVER_GREED_CONQUEST
	war_name = CFH_HIGHVALUE_WAR_NAME_SILVER_GREED_CONQUEST
	sprite = 27
	truce_days = 3650
	hostile_against_others = yes
	full_hostility = yes
	is_permanent = yes
	check_all_titles = yes # if permanent, setting this to true will check against all of someones titles, including vassal held titles
	can_ask_to_join_war = no
	allowed_to_target_tributaries = no
	
	infamy_modifier = 2
	
	sort_priority = 795
	
	can_use = {
		NOT = { 
			has_game_rule = {
				name = cfh_rule_highvalue
				value = off
			}
		}
		ROOT = {
			NOT = { is_liege_or_above = FROM }
			mercenary = no
			clan = no
			tier = count
		}
	}

	can_use_title = {
		OR = {
			has_building = cfh_highvalue_ca_silver_mine_0
			has_building = cfh_highvalue_ca_silver_mine_1
			has_building = cfh_highvalue_ca_silver_mine_2
			has_building = cfh_highvalue_ca_silver_mine_3
			has_building = cfh_highvalue_ca_silver_mine_4
			has_building = cfh_highvalue_ct_silver_mine_0
			has_building = cfh_highvalue_ct_silver_mine_1
			has_building = cfh_highvalue_ct_silver_mine_2
			has_building = cfh_highvalue_ct_silver_mine_3
			has_building = cfh_highvalue_ct_silver_mine_4
			has_building = cfh_highvalue_tb_silver_mine_0
			has_building = cfh_highvalue_tb_silver_mine_1
			has_building = cfh_highvalue_tb_silver_mine_2
			has_building = cfh_highvalue_tp_silver_mine_0
			has_building = cfh_highvalue_tp_silver_mine_1
			has_building = cfh_highvalue_tp_silver_mine_2
			has_building = cfh_highvalue_tp_silver_mine_3
			has_building = cfh_highvalue_tp_silver_mine_4
		}
	}

	is_valid_title = {
		OR = {
			FROM = {
				has_landed_title = PREV
			}
			holder_scope = {
				is_liege_or_above = FROM
			}
		}
	}

	on_success_title = {
		usurp_title_plus_barony_if_unlanded = { target = ROOT type = invasion }
			hidden_tooltip = {
				ROOT = {
					vassalize_or_take_under_title = {
						title = PREV
						enemy = FROM
						type = invasion
					}
				}
			}
	}

	on_fail_title = {
		ROOT = {
			prestige = -200
		}
		FROM = {
			participation_scaled_prestige = 100
		}
		any_defender = {
			limit = { NOT = { character = FROM } }
			hidden_tooltip = { participation_scaled_prestige = 100 }
		}
	}

	on_reverse_demand = {
		ROOT = {
			prestige = -100
			transfer_scaled_wealth = {
				to = FROM
				value = 2.0
			}
		}
		FROM = {
			participation_scaled_prestige = 100
		}
		any_defender = {
			limit = { NOT = { character = FROM } }
			hidden_tooltip = { participation_scaled_prestige = 100 }
		}
	}
	
	attacker_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	attacker_ai_defeat_worth = {
		factor = 100
	}

	defender_ai_victory_worth = {
		factor = -1 # always accept
	}
	
	defender_ai_defeat_worth = {
		factor = 100
	}
	
	ai_will_do = { 
		factor = 1
		modifier = {
			factor = 0.1
			ROOT = {
				independent = no
				same_liege = FROM
			}
		}
	}
}