wayfarer_the_real_threat_value = {
	value = 1
	if = {
		limit = { is_landed = yes }
		add = {
			add = 100
			multiply = primary_title.tier
		}
	}
	if = {
		limit = { has_relation_rival = root }
		add = 100
	}
	if = {
		limit = { is_close_family_of = root }
		add = 100
	}
	if = {
		limit = { has_any_court_position = yes }
		add = 10
	}
}

max_regiment_count_plus_one = {
	value = maa_regiments_max_count
	add = 1
}

battle_poi_number_value = {
	value = 3500
	if = {
		limit = {
			current_year > 1400
		}
		multiply = 6
	}
	else_if = {
		limit = {
			current_year > 1300
		}
		multiply = 5
	}
	else_if = {
		limit = {
			current_year > 1200
		}
		multiply = 4
	}
	else_if = {
		limit = {
			current_year > 1100
		}
		multiply = 3
	}
	else_if = {
		limit = {
			current_year > 1000
		}
		multiply = 2
	}
}

inspection_levy_reward_value = {
	value = 150
	multiply = {
		value = root.highest_held_title_tier
		subtract = 1
	}
	multiply = {
		value = current_year
		subtract = 900
		divide = 100
		floor = yes
	}
	min = 100
	max = 2000
}

extra_building_resources_value = {
	value = 0

	if = {
		limit = {
			has_variable = extra_building_resources
		}
		add = var:extra_building_resources
	}
	min = 1

	desc = MODIFIER_DEFINITION_EXTRA_BUILDING_RESOURCES
}

court_brewmaster_multiplier = {
	value = 1

	if = {
		limit = {
			any_court_position_holder = {
				type = court_brewmaster_court_position
				aptitude = {
					court_position = court_brewmaster_court_position
					value >= 4
				}
			}
		}
		multiply = 1.25
	}
	else_if = {
		limit = {
			any_court_position_holder = {
				type = court_brewmaster_court_position
				aptitude = {
					court_position = court_brewmaster_court_position
					value >= 3
				}
			}
		}
		multiply = 1.2
	}
	else_if = {
		limit = {
			any_court_position_holder = {
				type = court_brewmaster_court_position
				aptitude = {
					court_position = court_brewmaster_court_position
					value >= 2
				}
			}
		}
		multiply = 1.15
	}
	else_if = {
		limit = {
			any_court_position_holder = {
				type = court_brewmaster_court_position
				aptitude = {
					court_position = court_brewmaster_court_position
					value >= 1
				}
			}
		}
		multiply = 1.1
	}
	else_if = {
		limit = {
			any_court_position_holder = {
				type = court_brewmaster_court_position
			}
		}
		multiply = 1.05
	}
}

brewery_counter_value = {
	value = current_year

	scope:brewery_county ?= {
		subtract = var:brewery_counter_var
	}
}

brewery_counter_25 = {
	value = current_year
	subtract = var:brewery_counter_var

	divide = 25
	floor = yes
	multiply = 25
}

church_investment_value = {
	value = current_year

	subtract = var:church_investment_year_var

	divide = 2
	ceiling = yes
	min = 1

	desc = MODIFIER_DEFINITION_CHURCH_INVESTMENTS
}

of_the_people_perk_value = {
	value = 0
	add = diplomacy
	multiply = 10
	min = 50
}

bosporan_kingdom_modifier_scale_value = {
	value = 1
	every_house_member = {
		every_held_title = {
			limit = {
				tier = tier_county
				title_province = { geographical_region = black_sea_coast_region }
			}
			add = 1
		}
	}
	max = 15

	desc = MODIFIER_DEFINITION_BOSPORAN_KINGDOM
}
