
CRI_power_balance = {
	initial_value = 0
	left_side = CRI_mufti_side	
	right_side = CRI_khan_side	
	decision_category = CRI_balance_of_power_category

	### Neutral status
	range = {
		id = CRI_balance_range
		min = -0.25
		max = 0.25
		modifier = {
			political_advisor_cost_factor = 0.15
		}
		on_activate = {

		}
		on_deactivate = {
			
		}
	}

	### Khan Giray
	side = {
		id = CRI_khan_side
		icon = GFX_bop_CRI_khan_side

		range = {
			id = CRI_khan_medium_control_range
			min = 0.25
			max = 0.75
			modifier = {
				war_support_factor = 0.05
				experience_gain_army = 0.02
				max_surrender_limit_offset = 0.02
				research_speed_factor = 0.02
				resistance_damage_to_garrison = -0.10
			}
			on_activate = {

			}
			on_deactivate = {
				
			}
		}

		range = {
			id = CRI_khan_total_control_range
			min = 0.75
			max = 1
			modifier = {
				war_support_factor = 0.1
				research_speed_factor = 0.04
				experience_gain_army = 0.08
				max_surrender_limit_offset = 0.05
				political_power_factor = -0.10
				annex_cost_factor = -0.2
				resistance_damage_to_garrison = -0.20
			}
			on_activate = {
				set_power_balance_gfx = {
					id = CRI_power_balance
					side = CRI_khan_side
					gfx = GFX_bop_CRI_khan_improved_side
				}
			}
			on_deactivate = {
				set_power_balance_gfx = {
					id = CRI_power_balance
					side = CRI_khan_side
					gfx = GFX_bop_CRI_khan_side
				}
			}
		}
	}

	### Mufti
	side = {
		id = CRI_mufti_side	
		icon = GFX_bop_CRI_mufti_side

		range = {
			id = CRI_mufti_medium_control_range
			min = -0.75
			max = -0.25
			modifier = {
				stability_factor = 0.05
				political_power_factor = 0.05
				neutrality_drift = 0.02
				non_core_manpower = 0.02
			}
			on_activate = {
				
			}
			on_deactivate = {
				
			}
		}

		range = {
			id = CRI_mufti_total_control_range
			min = -1
			max = -0.75
			modifier = {
				stability_factor = 0.1
				political_power_factor = 0.1
				neutrality_drift = 0.05
				non_core_manpower = 0.04
				war_support_factor = -0.05
				offensive_war_stability_factor = -0.1
			}
			on_activate = {
				set_power_balance_gfx = {
					id = CRI_power_balance
					side = CRI_mufti_side
					gfx = GFX_bop_CRI_mufti_improved_side
				}
				if = {
					limit = { NOT = { has_country_flag = cua_restore_crimean_khanate_flag } }
					set_cosmetic_tag = CRI_EMIRATE
				}
			}
			on_deactivate = {
				set_power_balance_gfx = {
					id = CRI_power_balance
					side = CRI_mufti_side
					gfx = GFX_bop_CRI_mufti_side
				}
				if = {
					limit = { NOT = { has_country_flag = cua_restore_crimean_khanate_flag } }
					drop_cosmetic_tag = yes
				}
			}
		}
	}
}

