
ETH_centralization_balance = {
	initial_value = -0.25
	left_side = ETH_mesafint_side	
	right_side = ETH_mekwanint_side	
	decision_category = ETH_centralization_balance_of_power_category
	### The "middle ground"
	range = {
		id = ETH_balance_range
		min = -0.15
		max = 0.15
		modifier = {
			war_support_factor = 0
			research_speed_factor = 0
			political_power_factor = 0
			max_command_power_mult = 0
			consumer_goods_factor = 0
			custom_modifier_tooltip = ETH_balance_range_tt
		}
		on_activate = {
			# State Variables
			set_variable = { ETH_state_decentralization_building_slots = 0 }
			set_variable = { ETH_state_decentralization_infrastructure = 0.00 }
			set_variable = { ETH_state_decentralization_resources = 0 }
			set_variable = { ETH_state_decentralization_defence = 0 }
			set_variable = { ETH_state_decentralization_attack = 0 }
			set_variable = { ETH_state_decentralization_recruitable_population = 0 }
			set_variable = { ETH_state_decentralization_army_speed = 0 }
			# Country Variables
			set_variable = { ETH_decentralist_advisor_cost = 150 }
			set_variable = { ETH_centralist_advisor_cost = 150 }
		}
		on_deactivate = {
			# deactivation effect
		}

	}

	### Decentralization 
	side = {
		id = ETH_mesafint_side	
		icon = GFX_bop_ETH_decentralisation_side
		range = {
			id = ETH_mesafint_total_control_range
			min = -1
			max = -0.9
			modifier = {

				war_support_factor = 0.1
				research_speed_factor = -0.1
				political_power_factor = -0.1
				max_command_power_mult = 0.1
				consumer_goods_factor = 0.15

				custom_modifier_tooltip = ETH_mesafint_total_control_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = -0.2 }
				set_variable = { ETH_state_decentralization_infrastructure = -0.15 }
				set_variable = { ETH_state_decentralization_resources = -0.15 }
				set_variable = { ETH_state_decentralization_defence = 0.15 }
				set_variable = { ETH_state_decentralization_attack = 0.15 }
				set_variable = { ETH_state_decentralization_recruitable_population = -0.15 }
				set_variable = { ETH_state_decentralization_army_speed = 0.1 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 100 }
				set_variable = { ETH_centralist_advisor_cost = 200 }
				custom_effect_tooltip = ETH_risk_of_disintegration_tt
				custom_effect_tooltip = ETH_risk_of_demoralized_ras_tt
				IF = {
					limit = {
						AND = {
							has_stability < 0.15
							check_variable = { ROOT.party_popularity@ruling_party < 0.4 }
						}
						NOT = { has_country_flag = ETH_disintegration_happened_flag }
					}
					country_event = {
						id = BBA_ethiopia_balance_of_power_events.10
						hours = 4
						random_hours = 8
					}
					set_country_flag = ETH_disintegration_happened_flag 
				}
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_mesafint_dominant_range
			min = -0.9
			max = -0.65
			modifier = {
				war_support_factor = 0.1
				research_speed_factor = -0.1
				political_power_factor = -0.1
				max_command_power_mult = 0.1
				consumer_goods_factor = 0.1
				custom_modifier_tooltip = ETH_mesafint_dominant_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = -0.1 }
				set_variable = { ETH_state_decentralization_infrastructure = -0.05 }
				set_variable = { ETH_state_decentralization_resources = -0.05 }
				set_variable = { ETH_state_decentralization_defence = 0.1 }
				set_variable = { ETH_state_decentralization_attack = 0.1}
				set_variable = { ETH_state_decentralization_recruitable_population = -0.1 }
				set_variable = { ETH_state_decentralization_army_speed = 0.1 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 125 }
				set_variable = { ETH_centralist_advisor_cost = 175 }
				IF = {
					limit = { NOT = { has_country_flag = ETH_mesafint_dominant_flag } }
					add_stability = -0.05
					set_country_flag = ETH_mesafint_dominant_flag
				}
				custom_effect_tooltip = ETH_risk_of_demoralized_ras_tt
				
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_mesafint_power_range
			min = -0.65
			max = -0.35
			modifier = {
				war_support_factor = 0.05
				research_speed_factor = -0.05
				political_power_factor = -0.05
				max_command_power_mult = 0.05
				consumer_goods_factor = 0.05
				custom_modifier_tooltip = ETH_mesafint_power_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0 }
				set_variable = { ETH_state_decentralization_infrastructure = -0.05 }
				set_variable = { ETH_state_decentralization_resources = -0.05 }
				set_variable = { ETH_state_decentralization_defence = 0.1 }
				set_variable = { ETH_state_decentralization_attack = 0.05 }
				set_variable = { ETH_state_decentralization_recruitable_population = -0.1 }
				set_variable = { ETH_state_decentralization_army_speed = 0.05 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 100 }
				set_variable = { ETH_centralist_advisor_cost = 200 }
				IF = {
					limit = { NOT = { has_country_flag = ETH_mesafint_power_flag } }
					add_stability = -0.05
					set_country_flag = ETH_mesafint_power_flag
				}
				custom_effect_tooltip = ETH_risk_of_demoralized_ras_tt
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_mesafint_influence_range
			min = -0.35
			max = -0.15
			modifier = {
				research_speed_factor = -0.05
				max_command_power_mult = 0.05
				custom_modifier_tooltip = ETH_mesafint_influence_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0 }
				set_variable = { ETH_state_decentralization_infrastructure = -0.05 }
				set_variable = { ETH_state_decentralization_resources = -0.05 }
				set_variable = { ETH_state_decentralization_defence = 0.05 }
				set_variable = { ETH_state_decentralization_attack = 0.05 }
				set_variable = { ETH_state_decentralization_recruitable_population = -0.05 }
				set_variable = { ETH_state_decentralization_army_speed = 0.05 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 125 }
				set_variable = { ETH_centralist_advisor_cost = 175 }
				custom_effect_tooltip = ETH_risk_of_demoralized_ras_tt
			}
			on_deactivate = {
				# deactivation effect
			}

		}
	}
	side = {
		id = ETH_mekwanint_side	
		icon = GFX_bop_ETH_centralisation_side
		range = {
			id = ETH_mekwanint_influence_range
			min = 0.15
			max = 0.35
			modifier = {
				war_support_factor = 0
				research_speed_factor = 0
				political_power_factor = 0.05
				max_command_power_mult = 0
				consumer_goods_factor = 0
				custom_modifier_tooltip = ETH_mekwanint_influence_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0 }
				set_variable = { ETH_state_decentralization_infrastructure = 0.05 }
				set_variable = { ETH_state_decentralization_resources = 0.05 }
				set_variable = { ETH_state_decentralization_defence = 0 }
				set_variable = { ETH_state_decentralization_attack = 0 }
				set_variable = { ETH_state_decentralization_recruitable_population = 0.05 }
				set_variable = { ETH_state_decentralization_army_speed = 0 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 150 }
				set_variable = { ETH_centralist_advisor_cost = 125 }
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_mekwanint_power_range
			min = 0.35
			max = 0.65
			modifier = {
				war_support_factor = 0
				research_speed_factor = 0.05
				political_power_factor = 0.05
				max_command_power_mult = 0
				consumer_goods_factor = -0.05

				custom_modifier_tooltip = ETH_mekwanint_power_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0 }
				set_variable = { ETH_state_decentralization_infrastructure = 0.05 }
				set_variable = { ETH_state_decentralization_resources = 0.05 }
				set_variable = { ETH_state_decentralization_defence = -0.05 }
				set_variable = { ETH_state_decentralization_attack = -0.05 }
				set_variable = { ETH_state_decentralization_recruitable_population = 0.05 }
				set_variable = { ETH_state_decentralization_army_speed = 0 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 150 }
				set_variable = { ETH_centralist_advisor_cost = 125 }

				IF = {
					limit = { NOT = { has_country_flag = ETH_mekwanint_power_flag } }
					add_popularity = {
						ideology = ROOT
						popularity = -0.05
					}
					set_country_flag = ETH_mekwanint_power_flag
				}
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_mekwanint_dominant_range
			min = 0.65
			max = 0.9
			modifier = {
				war_support_factor = 0
				research_speed_factor = 0.05
				political_power_factor = 0.1
				max_command_power_mult = 0
				consumer_goods_factor = -0.05
				custom_modifier_tooltip = ETH_mekwanint_dominant_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0 }
				set_variable = { ETH_state_decentralization_infrastructure = 0.1 }
				set_variable = { ETH_state_decentralization_resources = 0.1 }
				set_variable = { ETH_state_decentralization_defence = -0.1 }
				set_variable = { ETH_state_decentralization_attack = -0.1 }
				set_variable = { ETH_state_decentralization_recruitable_population = 0.1 }
				set_variable = { ETH_state_decentralization_army_speed = -0.05 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 175 }
				set_variable = { ETH_centralist_advisor_cost = 100 }

				IF = {
					limit = { NOT = { has_country_flag = ETH_mekwanint_dominant_flag } }
					add_popularity = {
						ideology = ROOT
						popularity = -0.05
					}
					set_country_flag = ETH_mekwanint_dominant_flag
				}
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_mekwanint_total_control_range
			min = 0.9
			max = 1
			modifier = {
				war_support_factor = 0
				research_speed_factor = 0.05
				political_power_factor = 0.1
				max_command_power_mult = 0
				consumer_goods_factor = -0.1
				custom_modifier_tooltip = ETH_mekwanint_total_control_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0 }
				set_variable = { ETH_state_decentralization_infrastructure = 0.15 }
				set_variable = { ETH_state_decentralization_resources = 0.15 }
				set_variable = { ETH_state_decentralization_defence = -0.15 }
				set_variable = { ETH_state_decentralization_attack = -0.15 }
				set_variable = { ETH_state_decentralization_recruitable_population = 0.15 }
				set_variable = { ETH_state_decentralization_army_speed = -0.05 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 200 }
				set_variable = { ETH_centralist_advisor_cost = 75 }

				# RISK MANAGEMENT #TODO_TA make tooltip
				custom_effect_tooltip = ETH_risk_of_rebellion_tt
				hidden_effect = {
					IF = {
						limit = {
							OR = {
								has_stability < 0.15
								check_variable = { ROOT.party_popularity@ruling_party < 0.4 }
							}
							NOT = { has_country_flag = ETH_rebellion_happened_flag }
						}
						country_event = {
							id = BBA_ethiopia_balance_of_power_events.01
							hours = 4
							random_hours = 8
						}
						set_country_flag = ETH_rebellion_happened_flag
					}
				}
			}
			on_deactivate = {
				# deactivation effect
			}

		}
	}
	### Decentralization - Anarchist
	side = {
		id = ETH_decentralization_anarchist
		icon = GFX_bop_ETH_anarchist_side
		range = {
			id = ETH_total_anarchist_range
			min = -1
			max = -0.9
			modifier = {

				war_support_factor = 0.1
				research_speed_factor = -0.1
				political_power_factor = -0.1
				max_command_power_mult = 0.1
				consumer_goods_factor = -0.05

				custom_modifier_tooltip = ETH_mesafint_total_control_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { 	ETH_state_decentralization_building_slots = -0.2 }
				set_variable = { 	ETH_state_decentralization_infrastructure = -0.1 }
				set_variable = { 	ETH_state_decentralization_resources = -0.1 }
				set_variable = { 	ETH_state_decentralization_defence = 0.15 }
				set_variable = { 	ETH_state_decentralization_attack = 0.15 }
				set_variable = { 	ETH_state_decentralization_recruitable_population = 0.1 }
				set_variable = { 	ETH_state_decentralization_army_speed = 0.1 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 50 }
				set_variable = { ETH_centralist_advisor_cost = 	250 }
				custom_effect_tooltip = ETH_risk_of_disintegration_tt
				#custom_effect_tooltip = ETH_risk_of_demoralized_ras_tt
				IF = {
					limit = {
						AND = {
							has_stability < 0.15
							check_variable = { ROOT.party_popularity@ruling_party < 0.4 }
						}
						NOT = { has_country_flag = ETH_disintegration_happened_flag }
					}
					country_event = {
						id = BBA_ethiopia_balance_of_power_events.10
						hours = 4
						random_hours = 8
					}
					set_country_flag = ETH_disintegration_happened_flag 
				}
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_anarchist_dominant_range
			min = -0.9
			max = -0.65
			modifier = {
				war_support_factor = 0.05
				research_speed_factor = -0.05
				political_power_factor = -0.05
				max_command_power_mult = 0.05
				consumer_goods_factor = -0.05
				custom_modifier_tooltip = ETH_mesafint_dominant_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = -0.1 }
				set_variable = { ETH_state_decentralization_infrastructure = -0.05 }
				set_variable = { ETH_state_decentralization_resources = -0.1 }
				set_variable = { ETH_state_decentralization_defence = 0.1 }
				set_variable = { ETH_state_decentralization_attack = 0.1 }
				set_variable = { ETH_state_decentralization_recruitable_population = 0.05 }
				set_variable = { ETH_state_decentralization_army_speed = 0.05 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 75 }
				set_variable = { ETH_centralist_advisor_cost = 225 }
				IF = {
					limit = { NOT = { has_country_flag = ETH_mesafint_dominant_flag } }
					add_stability = -0.05
					set_country_flag = ETH_mesafint_dominant_flag
				}
				#custom_effect_tooltip = ETH_risk_of_demoralized_ras_tt
				
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_anarchist_power_range
			min = -0.65
			max = -0.35
			modifier = {
				research_speed_factor = -0.05
				political_power_factor = -0.05
				max_command_power_mult = 0.05
				custom_modifier_tooltip = ETH_mesafint_power_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0 }
				set_variable = { ETH_state_decentralization_infrastructure = -0.05 }
				set_variable = { ETH_state_decentralization_resources = -0.05 }
				set_variable = { ETH_state_decentralization_defence = 0.05 }
				set_variable = { ETH_state_decentralization_attack = 0.05 }
				set_variable = { ETH_state_decentralization_recruitable_population = 0.05 }
				set_variable = { ETH_state_decentralization_army_speed = 0 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 100 }
				set_variable = { ETH_centralist_advisor_cost = 200 }
				IF = {
					limit = { NOT = { has_country_flag = ETH_mesafint_power_flag } }
					add_stability = -0.05
					set_country_flag = ETH_mesafint_power_flag
				}
				#custom_effect_tooltip = ETH_risk_of_demoralized_ras_tt
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_anarchist_influence_range
			min = -0.35
			max = -0.15
			modifier = {
				research_speed_factor = -0.05
				political_power_factor = -0.05
				custom_modifier_tooltip = ETH_mesafint_influence_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0 }
				set_variable = { ETH_state_decentralization_infrastructure = -0.05 }
				set_variable = { ETH_state_decentralization_resources = 0 }
				set_variable = { ETH_state_decentralization_defence = 0.05 }
				set_variable = { ETH_state_decentralization_attack = 0.05 }
				set_variable = { ETH_state_decentralization_recruitable_population = 0.05 }
				set_variable = { ETH_state_decentralization_army_speed = 0 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 125 }
				set_variable = { ETH_centralist_advisor_cost = 175 }
				#custom_effect_tooltip = ETH_risk_of_demoralized_ras_tt
			}
			on_deactivate = {
				# deactivation effect
			}

		}
	}
	# Centralization - Communist
	side = {
		id = ETH_communist_side	
		icon = GFX_bop_ETH_communist_side
		range = {
			id = ETH_communist_influence_range
			min = 0.15
			max = 0.35
			modifier = {
				war_support_factor = 0
				research_speed_factor = 0
				political_power_factor = 0.05
				max_command_power_mult = 0
				consumer_goods_factor = 0
				custom_modifier_tooltip = ETH_mekwanint_influence_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0 }
				set_variable = { ETH_state_decentralization_infrastructure = 0.05 }
				set_variable = { ETH_state_decentralization_resources = 0.05 }
				set_variable = { ETH_state_decentralization_defence = 0 }
				set_variable = { ETH_state_decentralization_attack = 0 }
				set_variable = { ETH_state_decentralization_recruitable_population = 0 }
				set_variable = { ETH_state_decentralization_army_speed = 0 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 175 }
				set_variable = { ETH_centralist_advisor_cost = 125 }
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_communist_power_range
			min = 0.35
			max = 0.65
			modifier = {
				political_power_factor = 0.05

				custom_modifier_tooltip = ETH_mekwanint_power_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0 }
				set_variable = { ETH_state_decentralization_infrastructure = 0.05 }
				set_variable = { ETH_state_decentralization_resources = 0.05 }
				set_variable = { ETH_state_decentralization_defence = 0 }
				set_variable = { ETH_state_decentralization_attack = 0 }
				set_variable = { ETH_state_decentralization_recruitable_population = -0.05 }
				set_variable = { ETH_state_decentralization_army_speed = 0 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 200 }
				set_variable = { ETH_centralist_advisor_cost = 100 }

				IF = {
					limit = { NOT = { has_country_flag = ETH_communist_power_flag } }
					add_popularity = {
						ideology = ROOT
						popularity = -0.05
					}
					set_country_flag = ETH_communist_power_flag
				}
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_communist_dominant_range
			min = 0.65
			max = 0.9
			modifier = {
				war_support_factor = 0
				research_speed_factor = 0.05
				political_power_factor = 0.1
				max_command_power_mult = 0
				custom_modifier_tooltip = ETH_mekwanint_dominant_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0.1 }
				set_variable = { ETH_state_decentralization_infrastructure = 0.1 }
				set_variable = { ETH_state_decentralization_resources = 0.1 }
				set_variable = { ETH_state_decentralization_defence = -0.05 }
				set_variable = { ETH_state_decentralization_attack = -0.05 }
				set_variable = { ETH_state_decentralization_recruitable_population = -0.1 }
				set_variable = { ETH_state_decentralization_army_speed = 0 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 225 }
				set_variable = { ETH_centralist_advisor_cost = 75 }

				IF = {
					limit = { NOT = { has_country_flag = ETH_communist_dominant_flag } }
					add_popularity = {
						ideology = ROOT
						popularity = -0.05
					}
					set_country_flag = ETH_communist_dominant_flag
				}
			}
			on_deactivate = {
				# deactivation effect
			}

		}
		range = {
			id = ETH_communist_total_control_range
			min = 0.9
			max = 1
			modifier = {
				research_speed_factor = 0.1
				political_power_factor = 0.1
				max_command_power_mult = 0
				consumer_goods_factor = 0.05
				custom_modifier_tooltip = ETH_mekwanint_total_control_range_state_modifiers_tt
			}
			on_activate = {
				# State Variables
				set_variable = { ETH_state_decentralization_building_slots = 0.1 }
				set_variable = { ETH_state_decentralization_infrastructure = 0.15 }
				set_variable = { ETH_state_decentralization_resources = 0.15 }
				set_variable = { ETH_state_decentralization_defence = -0.1 }
				set_variable = { ETH_state_decentralization_attack = -0.1 }
				set_variable = { ETH_state_decentralization_recruitable_population = 0.1 }
				set_variable = { ETH_state_decentralization_army_speed = -0.05 }
				# Country Variables
				set_variable = { ETH_decentralist_advisor_cost = 250 }
				set_variable = { ETH_centralist_advisor_cost = 50 }

				# RISK MANAGEMENT #TODO_TA make tooltip
				custom_effect_tooltip = ETH_risk_of_rebellion_tt
				hidden_effect = {
					IF = {
						limit = {
							OR = {
								has_stability < 0.15
								check_variable = { ROOT.party_popularity@ruling_party < 0.4 }
							}
							NOT = { has_country_flag = ETH_rebellion_happened_flag }
						}
						country_event = {
							id = BBA_ethiopia_balance_of_power_events.01
							hours = 4
							random_hours = 8
						}
						set_country_flag = ETH_rebellion_happened_flag
					}
				}
			}
			on_deactivate = {
				# deactivation effect
			}

		}
	}
}

