﻿############################
# AMENITIES COST VALUES
############################
# BASE VALUES

base_court_amenities_cost = {
	value = 15
	add = {
		value = monthly_character_income
		multiply = 2
	}
	add = {
		value = sub_realm_size
		multiply = 0.5
	}
	divide = {
		add = 4
		subtract = {
			add = 0.25
			multiply = court_grandeur_current_level
		}
	}
	if = { # Add a baseline depending on rank
		limit = {
			highest_held_title_tier = tier_empire
		}
		add = 8
	}
	if = { # Add a baseline depending on rank
		limit = {
			highest_held_title_tier = tier_kingdom
		}
		add = 10
	}
	if = { # Add a baseline depending on rank
		limit = {
			highest_held_title_tier = tier_duchy
		}
		add = 12
	}
	if = {
		limit = {
			culture = {
				has_cultural_era_or_later = culture_era_late_medieval
			}
		}
		multiply = {
			value = 1.75
		}
	}
	else_if = {
		limit = {
			culture = {
				has_cultural_era_or_later = culture_era_high_medieval
			}
		}
		multiply = {
			value = 1.5
		}
	}
	else_if = {
		limit = {
			culture = {
				has_cultural_era_or_later = culture_era_early_medieval
			}
		}
		multiply = {
			value = 1.25
		} 
	}
	if = {
		limit = {
			has_game_rule = hard_difficulty
			is_ai = yes
		}
		multiply = 0.75
	}
	else_if = {
		limit = {
			has_game_rule = very_hard_difficulty
			is_ai = yes
		}
		multiply = 0.5
	}
}

court_amenities_cost_level_1 = {
	value = base_court_amenities_cost
	divide = 96
	min = 0.2
	if = {
		limit = {
			government_has_flag = government_is_tribal
		}
	 #	divide = 2
		min = 0.1
	}
}
court_amenities_cost_level_2 = {
	value = base_court_amenities_cost
	divide = 48
	min = 0.4
	if = {
		limit = {
			government_has_flag = government_is_tribal
		}
	 #	divide = 2
		min = 0.2
	}
}
court_amenities_cost_level_3 = {
	value = base_court_amenities_cost
	divide = 32
	min = 0.6
	if = {
		limit = {
			government_has_flag = government_is_tribal
		}
	 #	divide = 2
		min = 0.3
	}
}
court_amenities_cost_level_4 = {
	value = base_court_amenities_cost
	divide = 24
	min = 0.8
	if = {
		limit = {
			government_has_flag = government_is_tribal
		}
	 #	divide = 2
		min = 0.4
	}
}