﻿MTXXX_coin_toss = {
	integer_range = { min = 0 max = 1 }
}

weighted_calc_true_if_value = {
	value = 0

	if = {
		limit = { not = { has_trait = ambitious } }

		add = 20
	}

	if = {
		limit = { opinion = { target = liege value > 0 } }

		add = 20
	}

	if = {
		limit = { opinion = { target = liege value > 20 } }

		add = 20
	}

	if = {
		limit = { opinion = { target = liege value > 40 } }

		add = 20
	}

	if = {
		limit = { opinion = { target = liege value > 60 } }

		add = 20
	}

	if = {
		limit = { MTXXX_liege_flouts_council_faith_tradition_trigger = { LIEGE = liege } }

		add = 20
	}

	if = {
		limit = { MTXXX_dislikes_liege_flouting_council_faith_tradition_trigger = yes }

		subtract = 5
	}
}
