bohemia_silesia_relations = {
	
	type = country

	allow = {
		tag = BOH
		exists = SIL
		not = { war_with = SIL }
		not = { relation = { who = SIL value = 100 } }
	}
	abort = {
		or = {
			not = { exists = SIL }
			war_with = SIL
		}
	}
	success = {
		relation = { who = SIL value = 150 }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			not = { relation = { who = SIL value = 0 } }
		}
		modifier = {
			factor = 2
			not = { relation = { who = SIL value = -100 } }
		}	
	}
	effect = {
		infamy = -5
	}
}

diplo_annex_silesia = {
	
	type = country

	allow = {
		tag = BOH
		is_subject = no
		is_lesser_in_union = no
		exists = SIL
		SIL = {
			vassal_of = BOH
			neighbour = this
			not = { num_of_cities = this }
			owns = 264		# Breslau
			religion_group = this
		}
	}
	abort = {
		or = {
			not = { exists = SIL }
			is_lesser_in_union = yes
			is_subject = yes
			SIL = {
				not = { religion_group = this }
			}
		}
	}
	success = {
		not = { exists = SIL }
		owns = 264
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			relation = { who = SIL value = 100 }
		}
		modifier = {
			factor = 2
			relation = { who = SIL value = 200 }
		}
	}
	effect = {
		prestige = 0.1
	}
}

bohemia_hungary_relations = {
	
	type = country

	allow = {
		tag = BOH
		exists = HUN
		not = { war_with = HUN }
		not = { relation = { who = HUN value = 100 } }
	}
	abort = {
		or = {
			not = { exists = HUN }
			war_with = HUN
		}
	}
	success = {
		relation = { who = HUN value = 150 }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			not = { relation = { who = HUN value = 0 } }
		}
		modifier = {
			factor = 2
			not = { relation = { who = HUN value = -100 } }
		}	
	}
	effect = {
		stability = 1
	}
}

defend_bohemia_against_hungary = {
	
	type = country

	allow = {
		tag = BOH
		exists = HUN
		war_with = HUN
	}
	abort = {
		or = {
			not = { war_with = HUN }
			not = { exists = HUN }
		}
	}
	success = {
		not = { war_with = HUN }
		not = { bohemia = { owned_by = HUN } }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			mil = 7
		}
		modifier = {
			factor = 2
			HUN = { not = { mil = 5 } }
		}
	}
	effect = {
		army_tradition = 0.3
		stability = 1
	}
}

bohemia_austria_relations = {
	
	type = country

	allow = {
		tag = BOH
		exists = HAB
		not = { war_with = HAB }
		not = { relation = { who = HAB value = 100 } }
	}
	abort = {
		or = {
			not = { exists = HAB }
			war_with = HAB
		}
	}
	success = {
		relation = { who = HAB value = 150 }
	}
	chance = {
		factor = 1000
		modifier = {
			factor = 2
			not = { relation = { who = HAB value = 0 } }
		}
		modifier = {
			factor = 2
			not = { relation = { who = HAB value = -100 } }
		}	
	}
	effect = {
		infamy = -1
	}
}

