iron_nest_program_category = {
	iron_nest_rationalize_railway_artillery_production = {
		icon = GFX_decision_iron_nest_program
		cost = 100
		days_remove = 180
		fire_only_once = yes
		visible = {
			NOT = { has_idea = iron_nest_standardized_railway_artillery_production }
			OR = {
				is_special_project_completed = sp:sp_land_iron_nest_overall_project
				has_country_flag = iron_nest_overall_project_completed
				AND = {
					has_tech = iron_nest_equipment_unlock_tech
					has_tech = iron_nest_railway_gun_unlock_tech
					has_tech = iron_nest_naval_battery_unlock_tech
				}
			}
		}
		available = {
			has_army_experience > 99
		}
		complete_effect = {
			army_experience = -100
		}
		remove_effect = {
			add_ideas = iron_nest_standardized_railway_artillery_production
			set_country_flag = iron_nest_railway_artillery_rationalized
		}
		ai_will_do = { factor = 1 }
	}

	iron_nest_research_trio = {
		icon = GFX_decision_iron_nest_program
		cost = 50
		days_remove = 120
		fire_only_once = yes
		visible = {
			OR = {
				has_country_flag = iron_nest_overall_project_completed
				is_special_project_completed = sp:sp_land_iron_nest_overall_project
			}
			NOT = { has_tech = iron_nest_trio_unlock_tech }
		}
		available = { has_army_experience > 49 }
		complete_effect = { army_experience = -50 }
		remove_effect = {
			set_technology = {
				iron_nest_trio_unlock_tech = 1
				popup = no
			}
		}
		ai_will_do = { factor = 0.25 }
	}

	iron_nest_form_mobile_support_group = {
		icon = GFX_decision_iron_nest_program
		cost = 0
		days_remove = 30
		fire_only_once = yes
		visible = {
			has_country_flag = iron_nest_overall_project_completed
			NOT = { has_idea = iron_nest_mobile_support_group }
		}
		available = {
			OR = {
				has_equipment = { iron_nest_solo_equipment > 24 }
				has_equipment = { iron_nest_equipment > 24 }
				has_equipment = { iron_nest_trio_equipment > 24 }
			}
		}
		complete_effect = {
			if = {
				limit = { has_equipment = { iron_nest_solo_equipment > 24 } }
				add_equipment_to_stockpile = { type = iron_nest_solo_equipment_1 amount = -25 }
			}
			else_if = {
				limit = { has_equipment = { iron_nest_equipment > 24 } }
				add_equipment_to_stockpile = { type = iron_nest_equipment_1 amount = -25 }
			}
			else = {
				add_equipment_to_stockpile = { type = iron_nest_trio_equipment_1 amount = -25 }
			}
		}
		remove_effect = { add_ideas = iron_nest_mobile_support_group }
		ai_will_do = { factor = 0.5 }
	}

	iron_nest_reliability_improvement_program = {
		icon = GFX_decision_iron_nest_program
		cost = 75
		days_remove = 120
		fire_only_once = yes
		visible = {
			has_country_flag = iron_nest_overall_project_completed
			NOT = { has_idea = iron_nest_reliability_improvement }
		}
		available = { has_army_experience > 49 }
		complete_effect = { army_experience = -50 }
		remove_effect = { add_ideas = iron_nest_reliability_improvement }
		ai_will_do = { factor = 0.5 }
	}

	iron_nest_research_super_heavy_naval_batteries = {
		icon = GFX_decision_iron_nest_program
		cost = 50
		days_remove = 180
		fire_only_once = yes
		visible = {
			OR = {
				has_country_flag = iron_nest_overall_project_completed
				is_special_project_completed = sp:sp_land_iron_nest_overall_project
			}
			has_tech = iron_nest_naval_battery_unlock_tech
			NOT = { has_tech = iron_nest_super_heavy_naval_battery_unlock_tech }
		}
		available = { has_navy_experience > 99 }
		complete_effect = { navy_experience = -100 }
		remove_effect = {
			set_technology = {
				iron_nest_super_heavy_naval_battery_unlock_tech = 1
				popup = no
			}
		}
		ai_will_do = { factor = 0.25 }
	}

	iron_nest_display_both = {
		icon = GFX_decision_iron_nest_program
		cost = 0
		fire_only_once = no
		visible = {
			is_ai = no
			OR = {
				has_country_flag = iron_nest_display_decisions_only
				has_country_flag = iron_nest_display_map_only
				has_country_flag = iron_nest_display_hidden
			}
		}
		complete_effect = {
			clr_country_flag = iron_nest_display_decisions_only
			clr_country_flag = iron_nest_display_map_only
			clr_country_flag = iron_nest_display_hidden
		}
		ai_will_do = { factor = 0 }
	}

	iron_nest_display_decisions_only = {
		icon = GFX_decision_iron_nest_program
		cost = 0
		fire_only_once = no
		visible = { is_ai = no NOT = { has_country_flag = iron_nest_display_decisions_only } }
		complete_effect = {
			clr_country_flag = iron_nest_display_map_only
			clr_country_flag = iron_nest_display_hidden
			set_country_flag = iron_nest_display_decisions_only
		}
		ai_will_do = { factor = 0 }
	}

	iron_nest_display_map_only = {
		icon = GFX_decision_iron_nest_program
		cost = 0
		fire_only_once = no
		visible = { is_ai = no NOT = { has_country_flag = iron_nest_display_map_only } }
		complete_effect = {
			clr_country_flag = iron_nest_display_decisions_only
			clr_country_flag = iron_nest_display_hidden
			set_country_flag = iron_nest_display_map_only
		}
		ai_will_do = { factor = 0 }
	}

	iron_nest_display_hidden = {
		icon = GFX_decision_iron_nest_program
		cost = 0
		fire_only_once = no
		visible = { is_ai = no NOT = { has_country_flag = iron_nest_display_hidden } }
		complete_effect = {
			clr_country_flag = iron_nest_display_decisions_only
			clr_country_flag = iron_nest_display_map_only
			set_country_flag = iron_nest_display_hidden
		}
		ai_will_do = { factor = 0 }
	}
}

iron_nest_emplacement_category = {
	iron_nest_deploy_state_decision = {
		icon = GFX_decision_iron_nest_deploy
		state_target = yes
		target_array = controlled_states
		on_map_mode = map_and_decisions_view
		cost = 25
		days_remove = 7
		visible = {
			is_ai = no
			has_tech = iron_nest_equipment_unlock_tech
			NOT = { has_country_flag = iron_nest_display_decisions_only }
			NOT = { has_country_flag = iron_nest_display_map_only }
			NOT = { has_country_flag = iron_nest_display_hidden }
		}
		available = {
			has_equipment = { steel_rain_equipment > 2 }
		}
		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				NOT = { has_state_flag = iron_nest_emplaced }
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = { type = steel_rain_equipment_1 amount = -3 }
			FROM = {
				set_state_flag = iron_nest_emplaced
				add_dynamic_modifier = { modifier = iron_nest_state_support scope = ROOT }
			}
		}
		ai_will_do = { factor = 0 }
	}

	iron_nest_recover_state_decision = {
		icon = GFX_decision_iron_nest_recover
		state_target = yes
		target_array = controlled_states
		on_map_mode = map_and_decisions_view
		cost = 0
		days_remove = 3
		visible = {
			is_ai = no
			has_tech = iron_nest_equipment_unlock_tech
			NOT = { has_country_flag = iron_nest_display_decisions_only }
			NOT = { has_country_flag = iron_nest_display_map_only }
			NOT = { has_country_flag = iron_nest_display_hidden }
		}
		available = { always = yes }
		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				has_state_flag = iron_nest_emplaced
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = { type = steel_rain_equipment_1 amount = 3 }
			FROM = {
				remove_dynamic_modifier = { modifier = iron_nest_state_support }
				clr_state_flag = iron_nest_emplaced
				clr_state_flag = iron_nest_emplaced_solo
				clr_state_flag = iron_nest_emplaced_duet
				clr_state_flag = iron_nest_emplaced_trio
			}
		}
		ai_will_do = { factor = 0 }
	}

	iron_nest_deploy_state_decision_list_only = {
		icon = GFX_decision_iron_nest_deploy
		state_target = yes
		target_array = controlled_states
		on_map_mode = decision_view_only
		cost = 25
		days_remove = 7
		visible = {
			is_ai = no
			has_tech = iron_nest_equipment_unlock_tech
			has_country_flag = iron_nest_display_decisions_only
		}
		available = { has_equipment = { steel_rain_equipment > 2 } }
		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				NOT = { has_state_flag = iron_nest_emplaced }
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = { type = steel_rain_equipment_1 amount = -3 }
			FROM = {
				set_state_flag = iron_nest_emplaced
				add_dynamic_modifier = { modifier = iron_nest_state_support scope = ROOT }
			}
		}
		ai_will_do = { factor = 0 }
	}

	iron_nest_recover_state_decision_list_only = {
		icon = GFX_decision_iron_nest_recover
		state_target = yes
		target_array = controlled_states
		on_map_mode = decision_view_only
		cost = 0
		days_remove = 3
		visible = {
			is_ai = no
			has_tech = iron_nest_equipment_unlock_tech
			has_country_flag = iron_nest_display_decisions_only
		}
		available = { always = yes }
		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				has_state_flag = iron_nest_emplaced
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = { type = steel_rain_equipment_1 amount = 3 }
			FROM = {
				remove_dynamic_modifier = { modifier = iron_nest_state_support }
				clr_state_flag = iron_nest_emplaced
				clr_state_flag = iron_nest_emplaced_solo
				clr_state_flag = iron_nest_emplaced_duet
				clr_state_flag = iron_nest_emplaced_trio
			}
		}
		ai_will_do = { factor = 0 }
	}

	iron_nest_deploy_state_decision_map_only = {
		icon = GFX_decision_iron_nest_deploy
		state_target = yes
		target_array = controlled_states
		on_map_mode = map_only
		cost = 25
		days_remove = 7
		visible = {
			is_ai = no
			has_tech = iron_nest_equipment_unlock_tech
			has_country_flag = iron_nest_display_map_only
		}
		available = { has_equipment = { steel_rain_equipment > 2 } }
		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				NOT = { has_state_flag = iron_nest_emplaced }
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = { type = steel_rain_equipment_1 amount = -3 }
			FROM = {
				set_state_flag = iron_nest_emplaced
				add_dynamic_modifier = { modifier = iron_nest_state_support scope = ROOT }
			}
		}
		ai_will_do = { factor = 0 }
	}

	iron_nest_recover_state_decision_map_only = {
		icon = GFX_decision_iron_nest_recover
		state_target = yes
		target_array = controlled_states
		on_map_mode = map_only
		cost = 0
		days_remove = 3
		visible = {
			is_ai = no
			has_tech = iron_nest_equipment_unlock_tech
			has_country_flag = iron_nest_display_map_only
		}
		available = { always = yes }
		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				has_state_flag = iron_nest_emplaced
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = { type = steel_rain_equipment_1 amount = 3 }
			FROM = {
				remove_dynamic_modifier = { modifier = iron_nest_state_support }
				clr_state_flag = iron_nest_emplaced
				clr_state_flag = iron_nest_emplaced_solo
				clr_state_flag = iron_nest_emplaced_duet
				clr_state_flag = iron_nest_emplaced_trio
			}
		}
		ai_will_do = { factor = 0 }
	}
}
