# rank_value = higher value rank effects take priority over lower ones in being assigned, also determines icon index
# enforce_subject_rank_check = if yes, this rank is invalid for subjects with a subject type where overlord needs to have higher rank if overlord has that rank or higher
# prestige_average_threshold = multiple of average country prestige
# prestige_relative_threshold = relative to highest prestige country
# min_generals = minimum amount of generals in the country; if below, game will auto-generate
# min_commander_rank_random / max_commander_rank_random = min/max ranks when auto-generating commander rank
# possible = {} must evaluate to true for rank to be able to be assigned
# can_colonize = whether a country of this rank can colonize
# diplo_pact_cost = Diplomatic pacts with country of this rank have their cost multiplied by 1 + this amount

################
## RECOGNIZED ##
################

great_power = {
	rank_value = 7
	icon_index = 4
	
	enforce_subject_rank_check = yes
	
	diplo_pact_cost = 2.0
	
	prestige_average_threshold = 5.0
	prestige_relative_threshold = 0.75
	
	infamy_aggressor_scaling = 0.20
	infamy_target_scaling = 0.20

	valid_country_types = {
		recognized
		colonial
	}
	
	modifier = {
		country_influence_add = 1000
		country_diplomatic_play_maneuvers_add = 100
		country_max_declared_interests_add = 5
		country_loan_interest_rate_mult = -0.5
	}
}

major_power = {
	rank_value = 6
	icon_index = 3
	
	enforce_subject_rank_check = yes
	
	diplo_pact_cost = 1.5
	
	prestige_average_threshold = 2.5
	prestige_relative_threshold = 0.5
	
	infamy_aggressor_scaling = 0.10
	infamy_target_scaling = 0.10

	valid_country_types = {
		recognized
		colonial
	}
	
	modifier = {
		country_influence_add = 750
		country_diplomatic_play_maneuvers_add = 75
		country_max_declared_interests_add = 3
		country_loan_interest_rate_mult = -0.25
	}
}

minor_power = {
	rank_value = 4
	icon_index = 2
	
	enforce_subject_rank_check = yes

	prestige_average_threshold = 0.6
	prestige_relative_threshold = 0.15
	
	valid_country_types = {
		recognized
		colonial
	}
	
	modifier = {
		country_influence_add = 600
		country_diplomatic_play_maneuvers_add = 60
		country_max_declared_interests_add = 1
	}
}

insignificant_power = {
	rank_value = 2
	icon_index = 1

	infamy_aggressor_scaling = -0.10
	infamy_target_scaling = -0.10
	
	valid_country_types = {
		recognized
		colonial
	}
	
	modifier = {
		country_influence_add = 500
		country_diplomatic_play_maneuvers_add = 50
		country_loan_interest_rate_mult = 0.25
	}
}

##################
## UNRECOGNIZED ##
##################

unrecognized_major_power = {
	rank_value = 5
	icon_index = 3
	
	enforce_subject_rank_check = yes

	prestige_average_threshold = 2.5
	prestige_relative_threshold = 0.5
	
	infamy_aggressor_scaling = 0.50
	infamy_target_scaling = -0.30

	valid_country_types = {
		unrecognized
	}
	
	modifier = {
		country_influence_add = 750
		country_diplomatic_play_maneuvers_add = 75
		country_max_declared_interests_add = 2
		country_tech_spread_mult = -0.15
		country_loan_interest_rate_mult = 0.5
	}
}

unrecognized_regional_power = {
	rank_value = 3
	icon_index = 2
	
	enforce_subject_rank_check = yes

	diplo_pact_cost = 0.75
	
	prestige_average_threshold = 0.6
	prestige_relative_threshold = 0.15
	
	infamy_aggressor_scaling = 0.40
	infamy_target_scaling = -0.40

	valid_country_types = {
		unrecognized
	}
	
	modifier = {
		country_influence_add = 600
		country_diplomatic_play_maneuvers_add = 60
		country_max_declared_interests_add = 1
		country_tech_spread_mult = -0.20
		country_loan_interest_rate_mult = 0.75
	}
}


unrecognized_power = {
	rank_value = 1
	icon_index = 1

	diplo_pact_cost = 0.5
	
	infamy_aggressor_scaling = 0.30
	infamy_target_scaling = -0.50

	valid_country_types = {
		unrecognized
	}
	
	modifier = {
		country_influence_add = 500	
		country_diplomatic_play_maneuvers_add = 50
		country_tech_spread_mult = -0.25
		country_loan_interest_rate_mult = 1.0
	}
}

###################
## DECENTRALIZED ##
###################

decentralized_power = {
	rank_value = 0
	icon_index = 1
	
	valid_country_types = {
		decentralized
	}
	
	modifier = {
		country_diplomatic_play_maneuvers_add = 30
		building_subsistence_output_mult = -0.15
		building_throughput_mult = -0.15		
	}
}
