DEN_balance_of_power = {
	initial_value = 0.0
	left_side = DEN_welfare_side	
	right_side = DEN_warfare_side
	decision_category = DEN_balance_of_power_category

#### WELFARE ####
	side = {
		id = DEN_welfare_side	
		icon = GFX_bop_DEN_welfare_side

		range = {
			id = DEN_welfare_low_range
			min = -0.3
			max = -0
			modifier = {
				production_speed_infrastructure_factor = 0.05
				production_speed_rail_way_factor = 0.05
				production_speed_industrial_complex_factor = 0.05
				#political_power_gain = 0.05
				research_speed_factor = 0.025
				monthly_population = 0.05
				economy_cost_factor = -0.05
				trade_laws_cost_factor = -0.05

				mobilization_laws_cost_factor = 0.05
				production_speed_arms_factory_factor = -0.025
				training_time_factor = 0.025
				production_factory_max_efficiency_factor = -0.025
				production_factory_efficiency_gain_factor = -0.025
				production_factory_start_efficiency_factor = -0.025
			}
			on_activate = {
			
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_welfare_medium_range
			min = -0.6
			max = -0.3
			modifier = {
				production_speed_infrastructure_factor = 0.1
				production_speed_rail_way_factor = 0.1
				production_speed_industrial_complex_factor = 0.1
				#political_power_gain = 0.05
				research_speed_factor = 0.05
				monthly_population = 0.1
				economy_cost_factor = -0.1
				trade_laws_cost_factor = -0.1

				mobilization_laws_cost_factor = 0.1
				production_speed_arms_factory_factor = -0.05
				training_time_factor = 0.05
				production_factory_max_efficiency_factor = -0.05
				production_factory_efficiency_gain_factor = -0.05
				production_factory_start_efficiency_factor = -0.05
			}
			on_activate = {
				
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_welfare_high_range
			min = -0.9
			max = -0.6
			modifier = {
				production_speed_infrastructure_factor = 0.15
				production_speed_rail_way_factor = 0.15
				production_speed_industrial_complex_factor = 0.15
				#political_power_gain = 0.1
				research_speed_factor = 0.075
				monthly_population = 0.15
				economy_cost_factor = -0.15
				trade_laws_cost_factor = -0.15

				mobilization_laws_cost_factor = 0.15
				production_speed_arms_factory_factor = -0.1
				training_time_factor = 0.1
				production_factory_max_efficiency_factor = -0.1
				production_factory_efficiency_gain_factor = -0.1
				production_factory_start_efficiency_factor = -0.1
			}
			on_activate = {
			
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_welfare_max_range
			min = -1
			max = -0.9
			modifier = {
				production_speed_infrastructure_factor = 0.2
				production_speed_rail_way_factor = 0.2
				production_speed_industrial_complex_factor = 0.2
				#political_power_gain = 0.15
				research_speed_factor = 0.1
				monthly_population = 0.2
				economy_cost_factor = -0.2
				trade_laws_cost_factor = -0.2

				mobilization_laws_cost_factor = 0.2
				production_speed_arms_factory_factor = -0.15
				training_time_factor = 0.15
				production_factory_max_efficiency_factor = -0.15
				production_factory_efficiency_gain_factor = -0.15
				production_factory_start_efficiency_factor = -0.15
			}
			on_activate = {
				set_power_balance_gfx = {
					id = DEN_balance_of_power
					side = DEN_welfare_side
					gfx = GFX_bop_DEN_welfare_improved_side
				}
			}
			on_deactivate = {
				set_power_balance_gfx = {
					id = DEN_balance_of_power
					side = DEN_welfare_side
					gfx = GFX_bop_DEN_welfare_side
				}
			}

		}
	}

#### WARFARE ####
	side = {
		id = DEN_warfare_side	
		icon = GFX_bop_DEN_warfare_side

		range = {
			id = DEN_warfare_low_range
			min = 0
			max = 0.3
			modifier = {
				production_speed_arms_factory_factor = 0.05
				training_time_factor = -0.05
				production_factory_max_efficiency_factor = 0.05
				production_factory_efficiency_gain_factor = 0.05
				production_factory_start_efficiency_factor = 0.05
				mobilization_speed = 0.05
				mobilization_laws_cost_factor = -0.05

				economy_cost_factor = 0.05
				trade_laws_cost_factor = 0.05
				production_speed_infrastructure_factor = -0.05
				production_speed_rail_way_factor = -0.05
				production_speed_industrial_complex_factor = -0.05
				}
			on_activate = {
			
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_warfare_medium_range
			min = 0.3
			max = 0.6
			modifier = {
				production_speed_arms_factory_factor = 0.1
				training_time_factor = -0.1
				production_factory_max_efficiency_factor = 0.1
				production_factory_efficiency_gain_factor = 0.1
				production_factory_start_efficiency_factor = 0.1
				mobilization_speed = 0.1
				mobilization_laws_cost_factor = -0.1

				economy_cost_factor = 0.1
				trade_laws_cost_factor = 0.1
				production_speed_infrastructure_factor = -0.1
				production_speed_rail_way_factor = -0.1
				production_speed_industrial_complex_factor = -0.1
				}
			on_activate = {
				
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_warfare_high_range
			min = 0.6
			max = 0.9
			modifier = {
				production_speed_arms_factory_factor = 0.15
				training_time_factor = -0.15
				production_factory_max_efficiency_factor = 0.15
				production_factory_efficiency_gain_factor = 0.15
				production_factory_start_efficiency_factor = 0.15
				mobilization_speed = 0.15
				mobilization_laws_cost_factor = -0.15

				economy_cost_factor = 0.15
				trade_laws_cost_factor = 0.15
				production_speed_infrastructure_factor = -0.15
				production_speed_rail_way_factor = -0.15
				production_speed_industrial_complex_factor = -0.15
				}
			on_activate = {
				
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_warfare_max_range
			min = 0.9
			max = 1
			modifier = {
				production_speed_arms_factory_factor = 0.3
				training_time_factor = -0.3
				production_factory_max_efficiency_factor = 0.3
				production_factory_efficiency_gain_factor = 0.3
				production_factory_start_efficiency_factor = 0.3
				mobilization_speed = 0.3
				mobilization_laws_cost_factor = -0.3

				economy_cost_factor = 0.3
				trade_laws_cost_factor = 0.3
				production_speed_infrastructure_factor = -0.3
				production_speed_rail_way_factor = -0.3
				production_speed_industrial_complex_factor = -0.3
				}
			on_activate = {
				set_power_balance_gfx = {
					id = DEN_balance_of_power
					side = DEN_warfare_side
					gfx = GFX_bop_DEN_warfare_improved_side
				}
			}
			on_deactivate = {
				set_power_balance_gfx = {
					id = DEN_balance_of_power
					side = DEN_warfare_side
					gfx = GFX_bop_DEN_warfare_side
				}
			}

		}
	}
}

########################
########################
#### OCCUPATION BOP ####
########################
########################
DEN_occupation_balance = {
	initial_value = 0.0
	left_side = DEN_annexation_side
	right_side = DEN_autonomy_side	
	decision_category = DEN_occupation_category
#### ANNEXATION ####
	side = {
		id = DEN_annexation_side	
		icon = GFX_bop_DEN_annexation_side

		range = {
			id = DEN_annexation_low_range
			min = -0.3
			max = -0
			modifier = {
				autonomy_gain = -0.1
				political_power_gain = -0.05
				master_ideology_drift = 0.05
				
				extra_trade_to_overlord_factor = 0.05 
				overlord_trade_cost_factor = -0.05
				production_speed_buildings_factor = 0.025
				license_subject_master_purchase_cost = -0.05
			}
			on_activate = {
			
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_annexation_medium_range
			min = -0.6
			max = -0.3
			modifier = {
				autonomy_gain = -0.15
				political_power_gain = -0.1
				master_ideology_drift = 0.1
				
				extra_trade_to_overlord_factor = 0.1
				overlord_trade_cost_factor = -0.1
				production_speed_buildings_factor = 0.05
				license_subject_master_purchase_cost = -0.1
			}
			on_activate = {
				
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_annexation_high_range
			min = -0.9
			max = -0.6
			modifier = {
				autonomy_gain = -0.2
				political_power_gain = -0.15
				master_ideology_drift = 0.15
				
				extra_trade_to_overlord_factor = 0.15
				overlord_trade_cost_factor = -0.15
				production_speed_buildings_factor = 0.1
				license_subject_master_purchase_cost = -0.15
			}
			on_activate = {
				
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_annexation_max_range
			min = -1
			max = -0.9
			modifier = {
				autonomy_gain = -0.25
				political_power_gain = -0.2
				master_ideology_drift = 0.2
				
				extra_trade_to_overlord_factor = 0.2
				overlord_trade_cost_factor = -0.2
				production_speed_buildings_factor = 0.15
				license_subject_master_purchase_cost = -0.2
			}
			on_activate = {
				set_power_balance_gfx = {
					id = DEN_occupation_balance
					side = DEN_annexation_side
					gfx = GFX_bop_DEN_annexation_improved_side
				}
			}
			on_deactivate = {
				set_power_balance_gfx = {
					id = DEN_occupation_balance
					side = DEN_annexation_side
					gfx = GFX_bop_DEN_annexation_side
				}
			}
		}
	}
#### Autonomy ####
	side = {
		id = DEN_autonomy_side	
		icon = GFX_bop_DEN_autonomy_side

		range = {
			id = DEN_autonomy_low_range
			min = 0
			max = 0.3
			modifier = {
				autonomy_gain = 0.1
				political_power_gain = 0.025 
				
				extra_trade_to_overlord_factor = -0.05 
				overlord_trade_cost_factor = 0.05
				production_speed_buildings_factor = -0.025
				license_subject_master_purchase_cost = 0.05
			}
			on_activate = {
			
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_autonomy_medium_range
			min = 0.3
			max = 0.6
			modifier = {
				autonomy_gain = 0.2
				political_power_gain = 0.05
				
				extra_trade_to_overlord_factor = -0.1
				overlord_trade_cost_factor = 0.1
				production_speed_buildings_factor = -0.05
				license_subject_master_purchase_cost = 0.1
			}
			on_activate = {
				
			}
			on_deactivate = {
			
			}

		}
		range = {
			id = DEN_autonomy_high_range
			min = 0.6
			max = 0.9
			modifier = {
				autonomy_gain = 0.3
				political_power_gain = 0.1
				
				extra_trade_to_overlord_factor = -0.15
				overlord_trade_cost_factor = 0.15
				production_speed_buildings_factor = -0.1
				license_subject_master_purchase_cost = 0.15
			}
			on_activate = {
			
			}
			on_deactivate = {
			
			}
		}
		range = {
			id = DEN_autonomy_max_range
			min = 0.9
			max = 1
			modifier = {
				autonomy_gain = 0.4
				political_power_gain = 0.15
				
				extra_trade_to_overlord_factor = -0.2
				overlord_trade_cost_factor = 0.2
				production_speed_buildings_factor = -0.15
				license_subject_master_purchase_cost = 0.2
			}
			on_activate = {
				set_power_balance_gfx = {
					id = DEN_occupation_balance
					side = DEN_autonomy_side
					gfx = GFX_bop_DEN_autonomy_improved_side
				}
			}
			on_deactivate = {
				set_power_balance_gfx = {
					id = DEN_occupation_balance
					side = DEN_autonomy_side
					gfx = GFX_bop_DEN_autonomy_side
				}
			}
		}
	}
}

