CDC_feralization_category = {
	CDC_decay_continue_decision = {
		days_mission_timeout = 30
		icon = GFX_decision_skul
		selectable_mission = no
		is_good = no

		ai_will_do = {
			factor = 0.5
		}
		activation = {
			has_power_balance = {
				id = CDC_feralization
			}
			NOT = {
				has_completed_focus = CDC_nf_b015
			}
		}
		available = {
			always = no
		}
		fire_only_once = no
		timeout_effect = {
			custom_effect_tooltip = CDC_tt_19
			hidden_effect = {
				random_list = {
				    10 = {
						add_power_balance_value = {
							id = CDC_feralization
							value = 0.03
						}
				    }
				    10 = {
						add_power_balance_value = {
							id = CDC_feralization
							value = 0.05
						}
				    }
				    15 = {
						add_power_balance_value = {
							id = CDC_feralization
							value = 0.1
						}
				    }
				    5 = {
						add_power_balance_value = {
							id = CDC_feralization
							value = 0.25
						}
				    }
				}
			}
		}
	}
	CDC_research_progress_decision = {
		fire_only_once = no
		days_remove = 14
		days_re_enable = 30
		icon = GFX_decision_medical
		ai_will_do = {
			factor = 2
		}
		allowed = {
			original_tag = CDC
		}
		available = {
			always = no
		}
		visible = {
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		complete_effect = {

		}
	}

	CDC_study_test_subjects_decision = {
		days_re_enable = 30
		days_remove = 30
		
		ai_will_do = {
			factor = 100
		}
		cost = 10
		available = {
			check_variable = {
				var = CDC_test_subjects_variable
				value = 50
				compare = greater_than_or_equals
			}		
		}
		icon = GFX_decision_eyeball
		allowed = {
			original_tag = CDC
		}
		fire_only_once = no
		modifier = {
			research_speed = -0.1
		}
		complete_effect = {
			subtract_from_variable = {
				var = CDC_test_subjects_variable
				value = 50
			}
		}
		remove_effect = {
			random_list = {
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 1
					}
				}
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 5
					}
				}
				5 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 10
					}
				}
			}
		}
	}
	CDC_purchase_1_decision = {
		days_re_enable = 60
		
		ai_will_do = {
			factor = 10
		}
		cost = 10
		visible = {
			has_completed_focus = CDC_nf_a012
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		icon = GFX_decision_chained_man
		available = {
			MOG = {
				exists = yes
			}
			set_temp_variable = { caps_diff = -10 }
			caps_cost_trigger = yes
		}
		allowed = {
			original_tag = CDC
		}
		fire_only_once = no
		complete_effect = {
			set_temp_variable = { caps_to_add = -10 }
			add_caps = yes
			set_variable = {
				var = CDC_test_subjects_variable
				value = 50
				tooltip = CDC_tt_16
			}
		}
	}
	CDC_purchase_2_decision = {
		days_re_enable = 60
		
		ai_will_do = {
			factor = 10
		}
		icon = GFX_decision_chained_man
		cost = 10
		visible = {
			has_completed_focus = CDC_nf_a012
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		available = {
			MOG = {
				exists = yes
			}
			set_temp_variable = { caps_diff = -20 }
			caps_cost_trigger = yes
		}
		allowed = {
			original_tag = CDC
		}
		fire_only_once = no
		complete_effect = {
			set_temp_variable = { caps_to_add = -20 }
			add_caps = yes
			set_variable = {
				var = CDC_test_subjects_variable
				value = 100
				tooltip = CDC_tt_15
			}
		}
	}
	CDC_purchase_3_decision = {
		days_re_enable = 60
		
		ai_will_do = {
			factor = 10
		}
		icon = GFX_decision_chained_man
		cost = 10
		visible = {
			has_completed_focus = CDC_nf_a012
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		available = {
			MOG = {
				exists = yes
			}
			set_temp_variable = { caps_diff = -30 }
			caps_cost_trigger = yes
		}
		allowed = {
			original_tag = CDC
		}
		fire_only_once = no
		complete_effect = {
			set_temp_variable = { caps_to_add = -30 }
			add_caps = yes
			set_variable = {
				var = CDC_test_subjects_variable
				value = 200
				tooltip = CDC_tt_17
			}
		}
	}
	CDC_procure_oldgusta_decision = {
		days_re_enable = 120
		
		ai_will_do = {
			factor = 10
		}
		icon = GFX_decision_skull
		cost = 25
		visible = {
			has_completed_focus = CDC_nf_a013
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		available = {
			FSA = {
				exists = yes
			}
			has_war = no
		}
		allowed = {
			original_tag = CDC
		}
		fire_only_once = no
		complete_effect = {
			start_border_war = { ###Update State and provinces###
			    change_state_after_war = no
			    attacker = {
			        state = 1843
			        num_provinces = 3
			        on_win = CDC_sweep_events.1
			        on_lose = CDC_sweep_events.2
			        on_cancel = CDC_sweep_events.2
			        modifier = 0.25
			        dig_in_factor = 0
			        terrain_factor = 0
			    }	
			    defender = {
			        state = 1844
			        num_provinces = 5
			        on_win = CDC_sweep_events.3
			        on_lose = CDC_sweep_events.4
			        on_cancel = CDC_sweep_events.3
			    }
			}
		}
	}
	CDC_procure_greenbacks_decision = {
		days_re_enable = 120
		
		ai_will_do = {
			factor = 100
		}
		cost = 25
		visible = {
			has_completed_focus = CDC_nf_a013
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		available = {
			BAC = {
				exists = yes
			}
			has_war = no
		}
		allowed = {
			original_tag = CDC
		}
		icon = GFX_decision_skull
		fire_only_once = no
		complete_effect = {
			start_border_war = { ###Update State and provinces###
			    change_state_after_war = no
			    attacker = {
			        state = 1829
			        num_provinces = 4
			        on_win = CDC_sweep_events.1
			        on_lose = CDC_sweep_events.2
			        on_cancel = CDC_sweep_events.2
			        modifier = 0.25
			        dig_in_factor = 0
			        terrain_factor = 0
			    }	
			    defender = {
			        state = 1830
			        num_provinces = 4
			        on_win = CDC_sweep_events.3
			        on_lose = CDC_sweep_events.4
			        on_cancel = CDC_sweep_events.3
			    }
			}
		}
	}
	CDC_procure_charlotte_decision = {
		days_re_enable = 120
		
		ai_will_do = {
			factor = 50
		}
		cost = 25
		visible = {
			has_completed_focus = CDC_nf_a013
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		icon = GFX_decision_skull
		available = {
			FSK = {
				exists = yes
			}
			has_war = no
		}
		allowed = {
			original_tag = CDC
		}
		fire_only_once = no
		complete_effect = {
			start_border_war = { ###Update State and provinces###
			    change_state_after_war = no
			    attacker = {
			        state = 1843
			        num_provinces = 1
			        on_win = CDC_sweep_events.1
			        on_lose = CDC_sweep_events.2
			        on_cancel = CDC_sweep_events.2
			        modifier = 0.25
			        dig_in_factor = 0
			        terrain_factor = 0
			    }	
			    defender = {
			        state = 1905
			        num_provinces = 1
			        on_win = CDC_sweep_events.3
			        on_lose = CDC_sweep_events.4
			        on_cancel = CDC_sweep_events.3
			    }
			}
		}
	}
	CDC_procure_wareagles_decision = {
		days_re_enable = 120
		
		ai_will_do = {
			factor = 50
		}
		icon = GFX_decision_skull
		cost = 25
		visible = {
			has_completed_focus = CDC_nf_a013
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		available = {
			WAR = {
				exists = yes
			}
			has_war = no
			owns_state = 1834
		}
		allowed = {
			original_tag = CDC
		}
		fire_only_once = no
		complete_effect = {
			start_border_war = { ###Update State and provinces###
			    change_state_after_war = no
			    attacker = {
			        state = 1834
			        num_provinces = 1
			        on_win = CDC_sweep_events.1
			        on_lose = CDC_sweep_events.2
			        on_cancel = CDC_sweep_events.2
			        modifier = 0.25
			        dig_in_factor = 0
			        terrain_factor = 0
			    }	
			    defender = {
			        state = 1813
			        num_provinces = 1
			        on_win = CDC_sweep_events.3
			        on_lose = CDC_sweep_events.4
			        on_cancel = CDC_sweep_events.3
			    }
			}
		}
	}
	CDC_hire_mercs_decision = {
		days_remove = 120
		days_re_enable = 360
		
		visible = {
			has_completed_focus = CDC_nf_a014
		}
		available = {
			set_temp_variable = { caps_diff = -50 }
			caps_cost_trigger = yes
		}
		allowed = {
			original_tag = CDC
		}
		icon = GFX_decision_armor
		fire_only_once = no
		complete_effect = {
			set_temp_variable = { caps_to_add = -50 }
			add_caps = yes
			custom_effect_tooltip = CDC_tt_18
			hidden_effect = {
				load_oob = "CDC_mercs_oob"
				set_division_template_lock = {
					division_template = "CDC Hired Mercs"
					is_locked = yes
				}
			}
		}
		remove_effect = {
			delete_units = {
				division_template = "CDC Hired Mercs"
				disband = no
			}
		}
	}
	CDC_sell_serum_decision = {
		days_re_enable = 90
		
		ai_will_do = {
			factor = 0.5
		}
		cost = 10
		visible = {
			has_completed_focus = CDC_nf_a022
		}
		available = {
			check_variable = {
				var = CDC_serum_stockpile_variable
				value = 1
				compare = greater_than_or_equals
			}			
		}
		icon = GFX_decision_cap
		allowed = {
			original_tag = CDC
		}
		fire_only_once = no
		complete_effect = {
			set_temp_variable = { caps_to_add = 75 }
			add_caps = yes
			subtract_from_variable = {
				var = CDC_serum_stockpile_variable
				value = 1
			}			
		}
	}
	CDC_dissect_ferals_decision = {
		days_remove = 30
		
		ai_will_do = {
			factor = 100
		}
		cost = 10
		visible = {
			has_completed_focus = CDC_nf_a017
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		icon = GFX_decision_eyeball
		available = {
			has_equipment = {
				feral_ghoul_equipment > 100
			}
		}
		allowed = {
			original_tag = CDC
		}
		fire_only_once = yes
		modifier = {
			research_speed_factor = -0.5
		}
		complete_effect = {
			add_equipment_to_stockpile = {
				type = feral_ghoul_equipment
				amount = -100
			}
		}
		remove_effect = {
			random_list = {
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 10
					}
				}
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 15
					}
				}
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 20
					}
				}
			}			
		}
	}
	CDC_study_infertle_mutants_decision = {
		days_remove = 60
		
		ai_will_do = {
			factor = 100
		}
		cost = 10
		visible = {
			has_completed_focus = CDC_nf_b007
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		allowed = {
			original_tag = CDC
		}
		icon = GFX_decision_pls_smol_sawjaw
		fire_only_once = yes
		modifier = {
			research_speed_factor = -0.75
		}
		remove_effect = {
			random_list = {
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 20
					}
				}
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 25
					}
				}
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 30
					}
				}
			}
			hidden_effect = {
				set_country_flag = CDC_studied_mutants_flag
			}
		}
	}
	CDC_use_excess_serum_decision = {
		days_re_enable = 90
		
		ai_will_do = {
			factor = 500
		}
		cost = 10
		available = {
			check_variable = {
				var = CDC_serum_stockpile_variable
				value = 1
				compare = greater_than_or_equals
			}		
		}
		allowed = {
			original_tag = CDC
		}
		icon = GFX_decision_stimpak
		fire_only_once = no
		complete_effect = {
			subtract_from_variable = {
				var = CDC_serum_stockpile_variable
				value = 1
			}
			add_power_balance_value = {
				id = CDC_feralization
				value = -0.15
			}		
		}
	}
	CDC_study_oldtimers_decision = {
		days_remove = 60
		
		ai_will_do = {
			factor = 100
		}
		cost = 10
		visible = {
			has_completed_focus = CDC_nf_b013
			NOT = {
				has_country_flag = CDC_important_research_completed_flag
			}
		}
		icon = GFX_decision_eyeball
		allowed = {
			original_tag = CDC
		}
		fire_only_once = yes
		modifier = {
			research_speed_factor = -0.75
		}
		remove_effect = {
			random_owned_state = {
				limit = {
					is_core_of = FSA
				}
				add_manpower = -5
			}
			random_list = {
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 20
					}
				}
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 25
					}
				}
				10 = {
					add_to_variable = {
						var = CDC_research_progress_variable
						value = 30
					}
				}
			}
			hidden_effect = {
				set_country_flag = CDC_studied_oldtimers_flag
			}
		}
	}
	CDC_produce_serum_decision = {
		days_remove = 60
		days_re_enable = 90
		
		ai_will_do = {
			factor = 500
		}
		cost = 10
		allowed = {
			original_tag = CDC
		}
		visible = {
			NOT = {
				has_completed_focus = CDC_nf_a020
			}
		}
		icon = GFX_decision_chemistry_set
		fire_only_once = no
		modifier = {
			country_resource_water = -10
			civilian_factory_use = 8
			research_speed_factor = -0.5
		}
		remove_effect = {
			add_power_balance_value = {
				id = CDC_feralization
				value = -0.15
			}			
		}
	}
	CDC_produce_serum_2_decision = {
		days_remove = 60
		days_re_enable = 90
		
		ai_will_do = {
			factor = 500
		}
		cost = 10
		allowed = {
			original_tag = CDC
		}
		icon = GFX_decision_chemistry_set
		visible = {
			has_completed_focus = CDC_nf_a020
		}
		fire_only_once = no
		modifier = {
			country_resource_water = -7
			civilian_factory_use = 5
			research_speed_factor = -0.25
		}
		remove_effect = {
			add_power_balance_value = {
				id = CDC_feralization
				value = -0.15
			}
			if = {
				limit = {
					has_completed_focus = CDC_nf_a023
				}
				random_list = {
					10 = {
						add_to_variable = {
							var = CDC_serum_stockpile_variable
							value = 1
						}					
					}
					15 = {
						
					}
				}
			}
		}
	}
}
