wasteland_economy_electr_dec = {
		distribute_electr_small = {
			allowed = {
				always = no
			}
			available = {
				NOT = { has_country_flag = electr_distribution }
				OR = {
					AND = {
						is_ai = no
						set_temp_variable = { required_cells = num_of_military_factories }
						multiply_temp_variable = { required_cells = 25 }
						has_equipment = { energy_cells > required_cells }
					}
					AND = {
						is_ai = yes
						set_temp_variable = { ai_electr = num_of_military_factories }
						multiply_temp_variable = { ai_electr = 2 }
						check_variable = { resource@electricity > ai_electr }
					}
				}
			}
			visible = {
				always = no
			}

			cost = 10
			days_remove = 180
			days_re_enable = 180
			ai_will_do = {
				factor = 1
			}

			complete_effect = {      
				custom_effect_tooltip = civilian_assets_removal_tt 
				hidden_effect = {
					random_country = {
						limit = { is_ai = yes }
						set_temp_variable = { dump = THIS }
					}
					set_temp_variable = { required_cells = num_of_military_factories }
					multiply_temp_variable = { required_cells = 25 }
					send_equipment = {
						equipment = energy_cells
						amount = required_cells
						target = dump
					}
				}
				set_country_flag = electr_distribution
				if = {
					limit = { has_global_flag = debug_logs }
					log = "[GetDateText]: [Root.GetName] distribute_electr_small"
				}
			}
			
			remove_effect = {
				clr_country_flag = electr_distribution
			}

			modifier = {
				industrial_capacity_factory  = 0.10
			}
		}
		
		distribute_electr_medium = {
			allowed = {
				always = no
			}
			available = {
				NOT = { has_country_flag = electr_distribution }
				OR = {
					AND = {					
						is_ai = no
						set_temp_variable = { required_cells = num_of_military_factories }
						multiply_temp_variable = { required_cells = 50 }
						has_equipment = { energy_cells > required_cells }
					}
					AND = {
						is_ai = yes
						set_temp_variable = { ai_electr = num_of_military_factories }
						multiply_temp_variable = { ai_electr = 4 }
						check_variable = { resource@electricity > ai_electr }
					}
				}
			}
			visible = {
				always = no
			}

			cost = 20
			days_remove = 180
			days_re_enable = 180
			ai_will_do = {
				factor = 1
			}

			complete_effect = {      
				custom_effect_tooltip = civilian_assets_removal_tt 
				hidden_effect = {
					random_country = {
						limit = { is_ai = yes }
						set_temp_variable = { dump = THIS }
					}
					set_temp_variable = { required_cells = num_of_military_factories }
					multiply_temp_variable = { required_cells = 50 }
					send_equipment = {
						equipment = energy_cells
						amount = required_cells
						target = dump
					}
				}
				set_country_flag = electr_distribution
				if = {
					limit = { has_global_flag = debug_logs }
					log = "[GetDateText]: [Root.GetName] distribute_electr_medium"
				}
			}
			
			remove_effect = {
				clr_country_flag = electr_distribution
			}

			modifier = {
				industrial_capacity_factory  = 0.20
			}
		}
		
		distribute_electr_large = {
			allowed = {
				always = no
			}
			available = {
				NOT = { has_country_flag = electr_distribution }
				OR = {
					AND = {
						is_ai = no
						set_temp_variable = { required_cells = num_of_military_factories }
						multiply_temp_variable = { required_cells = 100 }
						has_equipment = { energy_cells > required_cells }
					}
					AND = {
						is_ai = yes
						set_temp_variable = { ai_electr = num_of_military_factories }
						multiply_temp_variable = { ai_electr = 6 }
						check_variable = { resource@electricity > ai_electr }
					}
				}
			}
			visible = {
				always = no
			}

			cost = 30
			days_remove = 180
			days_re_enable = 180
			ai_will_do = {
				factor = 1
			}

			complete_effect = {      
				custom_effect_tooltip = civilian_assets_removal_tt 
				hidden_effect = {
					random_country = {
						limit = { is_ai = yes }
						set_temp_variable = { dump = THIS }
					}
					set_temp_variable = { required_cells = num_of_military_factories }
					multiply_temp_variable = { required_cells = 100 }
					send_equipment = {
						equipment = energy_cells
						amount = required_cells
						target = dump
					}
				}
				set_country_flag = electr_distribution
				if = {
					limit = { has_global_flag = debug_logs }
					log = "[GetDateText]: [Root.GetName] distribute_electr_large"
				}
			}
			
			remove_effect = {
				clr_country_flag = electr_distribution
			}

			modifier = {
				industrial_capacity_factory  = 0.30
			}
		}
		
		distribute_electr_massive = {
			allowed = {
				always = no
			}
			available = {
				NOT = { has_country_flag = electr_distribution }
				OR = {
					AND = {
						is_ai = no
						set_temp_variable = { required_cells = num_of_military_factories }
						multiply_temp_variable = { required_cells = 200 }
						has_equipment = { energy_cells > required_cells }
					}
					AND = {
						is_ai = yes
						set_temp_variable = { ai_electr = num_of_military_factories }
						multiply_temp_variable = { ai_electr = 8 }
						check_variable = { resource@electricity > ai_electr }
					}
				}
			}
			visible = {
				always = no
			}

			cost = 40
			days_remove = 180
			days_re_enable = 180
			ai_will_do = {
				factor = 1
			}

			complete_effect = {      
				custom_effect_tooltip = civilian_assets_removal_tt 
				hidden_effect = {
					random_country = {
						limit = { is_ai = yes }
						set_temp_variable = { dump = THIS }
					}
					set_temp_variable = { required_cells = num_of_military_factories }
					multiply_temp_variable = { required_cells = 200 }
					send_equipment = {
						equipment = energy_cells
						amount = required_cells
						target = dump
					}
				}
				set_country_flag = electr_distribution
				if = {
					limit = { has_global_flag = debug_logs }
					log = "[GetDateText]: [Root.GetName] distribute_electr_massive"
				}
			}
			
			remove_effect = {
				clr_country_flag = electr_distribution
			}

			modifier = {
				industrial_capacity_factory  = 0.40
			}
		}
}