investments_category = {

	civil_investments = {

		icon = generic_consumer_goods

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
		    num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 1
		}

		days_remove = 100

		cost = 100

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}

				add_extra_state_shared_building_slots = 1

				add_building_construction = {
		    		type = industrial_complex
		   			level = 1
		    		instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	war_investments = {

		icon = generic_merge_plant_tank

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
		    num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 1
		}


		days_remove = 100

		cost = 100

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}

				add_extra_state_shared_building_slots = 1

				add_building_construction = {
		    		type = arms_factory
		   			level = 1
		    		instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	naval_investments = {

		icon = generic_merge_plant_ship

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
			any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
		}
		
		available = {
		    num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 1
		}

		days_remove = 80

		cost = 100

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					is_coastal = yes
					free_building_slots = {
						building = dockyard
						size > 0
						include_locked = yes
					}
				}

				add_extra_state_shared_building_slots = 1

				add_building_construction = {
		    		type = dockyard
		   			level = 1
		    		instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	forced_industrialization = {

		icon = generic_merge_plant_materiel

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		modifier = {
			stability_weekly = -0.005
			consumer_goods_factor = 0.20
		}

		days_remove = 50

		cost = 50

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}

				add_extra_state_shared_building_slots = 1

				add_building_construction = {
		    		type = industrial_complex
		   			level = 1
		    		instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	infrastructure_investments = {

		icon = GFX_decision_generic_electricity

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
		    num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 1
		}

		days_remove = 70

		cost = 70

		remove_effect = {
        random_owned_controlled_state = {
            limit = {
                is_core_of = ROOT
                has_building = {
                    type = infrastructure
                    level < 5
                }
            }

            add_extra_state_shared_building_slots = 1

            add_building_construction = {
                type = infrastructure
                level = 1
                instant_build = yes
            }
        }
		 random_owned_controlled_state = {
            limit = {
                is_core_of = ROOT
                has_building = {
                    type = infrastructure
                    level < 5
                }
            }

            add_extra_state_shared_building_slots = 1

            add_building_construction = {
                type = infrastructure
                level = 1
                instant_build = yes
            }
        }
    }
}	

	land_nationalization = {

		icon = GFX_decision_eng_trade_unions_demand

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		modifier = {
			political_power_factor = -0.15
			stability_weekly = -0.020
		}

		days_remove = 50

		cost = 50

		remove_effect = {
			random_owned_controlled_state = {
				limit = { is_core_of = ROOT }
				add_extra_state_shared_building_slots = 1
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	land_distribution = {

		icon = GFX_decision_hol_inundate_water_lines

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		modifier = {
			consumer_goods_factor = 0.10
			political_power_factor = -0.10
		}
		

		days_remove = 100
		
		days_re_enable = 50

		cost = 100

		remove_effect = {
			random_owned_controlled_state = {
				limit = { is_core_of = ROOT }

				add_extra_state_shared_building_slots = 2

				add_manpower = 15000
			}
			add_manpower = 5000
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	establish_university = {

		icon = SOV_place_hq

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
		    num_of_civilian_factories_available_for_projects > 2
		}
		
		modifier = {
			civilian_factory_use = 3
			political_power_factor = -0.15
		}
		

		days_remove = 300
		days_re_enable = 300

		cost = 150

		remove_effect = {
			add_research_slot = 1
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	steel_investments = {

		icon = steel

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
		    num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}

		days_remove = 120

		cost = 120

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}

				add_extra_state_shared_building_slots = 1

				add_building_construction = {
		    		type = industrial_complex
		   			level = 1
		    		instant_build = yes
				}
				add_resource = {
				type = steel
				amount = 9
			}
		}
	}

		ai_will_do = {
			factor = 0
		}
	}
	
	mining_effort = {

		icon = tungsten

		visible = { 
			OR = {
				NOT = {
						has_capitulated = yes		
						has_civil_war = yes
			    }
			}
		}
		
		modifier = {
			consumer_goods_factor = 0.15
		}

		days_remove = 100
		
		days_re_enable = 100

		cost = 100

		remove_effect = {
			random_owned_controlled_state = {
			add_resource = {
				type = aluminium
				amount = 8
			}
		}
		    random_owned_controlled_state = {
			add_resource = {
				type = tungsten
				amount = 8
			}
		}
	}

		ai_will_do = {
			factor = 0
		}
	}
	
	petrol_investment = {

		icon = oil

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
			has_tech = synth_oil_experiments
		}
		
		available = {
			has_tech = synth_oil_experiments
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}

		days_remove = 150
		
		days_re_enable = 150

		cost = 120

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					free_building_slots = {
						building = synthetic_refinery
						size > 0
						include_locked = yes
					}
				}

				add_extra_state_shared_building_slots = 1

				add_building_construction = {
		    		type = synthetic_refinery
		   			level = 1
		    		instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	railway_effort = { 

		icon = GFX_decision_generic_train

		visible = { 
			always = yes
		}
		
		available = {
		    num_of_civilian_factories_available_for_projects > 1
		}
		
		fire_only_once = no
		
		cost = 50

		days_remove = 120
		days_re_enable = 100

		ai_will_do = {
			factor = 0
		}

		modifier = {
			production_speed_supply_node_factor = 3
			production_speed_rail_way_factor = 0.20
			civilian_factory_use = 1
		}

		remove_effect = {
			add_equipment_to_stockpile = {
				type = train_equipment
				amount = 15
			}
		}
	}
}

   mobilization_category = {
   
    form_militias = {

		allowed = { always = yes }

		icon = GFX_decision_SWE_set_army_budget
		
		available = {
			has_army_experience > 25
			has_war_support > 0.25
			has_capitulated = no
		}

		days_remove = 120
		fire_only_once = yes

		cost = 120
		
	modifier = {
	    consumer_goods_factor = 0.20
		political_power_factor = -0.15
		experience_gain_army = -0.03
	}	
	
	remove_effect = {
	    add_ideas = militia_formed
    }
	
		ai_will_do = {
			factor = 0
		}
	}
   
    mobilize_reserves = {

		icon = ITA_reorganize_ascari

		visible = { 
			NOT = {
				has_capitulated = yes		
			}
			has_idea = militia_formed
		}
		
		available = {
		NOT = {
		has_idea = reserves_mobilized
		}
		has_idea = militia_formed
		has_war = yes
		has_capitulated = no
	}
		
		modifier = {
			consumer_goods_factor = 0.1
		}

		days_remove = 5
		fire_only_once = no
		is_good = yes


	remove_effect = {
		add_stability = -0.01
		add_war_support = 0.15
		   division_template = {
						name = "National Militia"
						priority = 0
						is_locked = yes
						regiments = {
							militia = { x = 0 y = 0 }
							militia = { x = 0 y = 1 }
							militia = { x = 0 y = 2 }
				
		    	   		 	militia = { x = 1 y = 0 }
							militia = { x = 1 y = 1 }
							militia = { x = 1 y = 2 }
				
						}
					}
		IF = {
            limit = { num_of_civilian_factories > 14 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
        IF = {
            limit = { num_of_civilian_factories > 13 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
		IF = {
            limit = { num_of_civilian_factories > 12 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
        IF = {
            limit = { num_of_civilian_factories > 11 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
		IF = {
            limit = { num_of_civilian_factories > 10 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
        IF = {
            limit = { num_of_civilian_factories > 9 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
        IF = {
            limit = { num_of_civilian_factories > 8 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }		
		IF = {
            limit = { num_of_civilian_factories > 7 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
		IF = {
            limit = { num_of_civilian_factories > 6 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
		IF = {
            limit = { num_of_civilian_factories > 5 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
		IF = {
            limit = { num_of_civilian_factories > 4 }
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
		
        IF = {
            limit = { num_of_civilian_factories > 3  }
            repeat = num_of_civilian_factories
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
		
		IF = {
            limit = { num_of_civilian_factories > 2  }
            repeat = num_of_civilian_factories
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
		
		IF = {
            limit = { num_of_civilian_factories > 1  }
            repeat = num_of_civilian_factories
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }
		
		IF = {
            limit = { num_of_civilian_factories > 0  }
            repeat = num_of_civilian_factories
            random_owned_controlled_state = {
                limit = { ROOT = { has_full_control_of_state = PREV } }
                create_unit = {
                    division = "name = \"National Militia\" division_template = \"National Militia\" start_experience_factor = 0.0" 
                    owner = ROOT
                }
            }
        }

        add_ideas = reserves_mobilized
    }

    ai_will_do = {
        factor = 0
    }
}
	
	demobilization_mission = {

    allowed = { 
        has_war = yes 
    }

    icon = generic_reorganize_irregulars

    available = {
        has_war = no
        NOT = {
            has_idea = reserves_mobilized
        }
    }

    activation = {
        AND = {
            has_war = no
            has_idea = reserves_mobilized
        }
    }

    days_mission_timeout = 100
    fire_only_once = no
    is_good = no
	days_remove = 0

    cancel_trigger = {
        NOT = {
            has_idea = reserves_mobilized
        }
        has_capitulated = yes
    }

    remove_effect = {
    }

    complete_effect = {
    }

    timeout_effect = {
        add_stability = -0.30
        add_war_support = -0.4	
        remove_ideas = reserves_mobilized
        add_timed_idea = {
            idea = demobilization_failed
            days = 1200
        }
    }

    ai_will_do = {
        factor = 0
    }
}
	demobilize_reserves = {

		allowed = { 
		    has_idea = reserves_mobilized
		}
		
		visible = {
		    has_idea = reserves_mobilized
			has_war = no
		}

		icon = POL_looming_peasants_strike
		
		available = {
			has_idea = reserves_mobilized
		}

		days_remove = 3
		fire_only_once = no

		
	remove_effect = {
	    add_stability = 0.05
        remove_ideas = reserves_mobilized
		delete_unit_template_and_units = {
						division_template = "National Militia"
						disband = no
		    }
		}

		ai_will_do = {
			factor = 0
		}
	}
	austerity_measures = {

		icon = hol_attract_foreign_investors
		
		available = {
			has_war = yes
		}
		
		visible = {
		    has_war = yes
			has_capitulated = no
		}
		
		modifier = {
			political_power_factor = -0.15
			stability_weekly = -0.0015
			production_speed_arms_factory_factor = 0.15
			production_speed_dockyard_factor = 0.15
			production_speed_industrial_complex_factor = 0.15
			industrial_capacity_factory = 0.15
			industrial_capacity_dockyard = 0.15
			consumer_goods_factor = -0.25	
		}
		

		days_remove = 200
		days_re_enable = 400
		fire_only_once = no

		cost = 75

		remove_effect = {
		}

		ai_will_do = {
			factor = 0
		}
	}
	forced_recruitment = {

		allowed = { has_war = yes }

		icon = eng_blackshirt_march
		
		available = {
			has_war = yes
			has_capitulated = no
		}
		
		visible = {
		    has_war = yes
		}

		fire_only_once = no
        days_remove = 120
		days_re_enable = 200
		cost = 30
		
	modifier = {
				weekly_manpower = 1500
				stability_weekly = -0.005
				training_time_army_factor = -0.15
			}
		
	remove_effect = {
		}

		ai_will_do = {
			factor = 0
		}
	}
	seize_industry = {

		allowed = { has_war = yes }

		icon = GFX_decision_generic_confiscation
		
		available = {
			has_war = yes
			has_capitulated = no
		}
		
		visible = {
		    has_war = yes
		}

		days_remove = 5
		fire_only_once = no
		days_re_enable = 400

		cost = 20
		
	remove_effect = {
	    add_stability = -0.05
		random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}

				add_extra_state_shared_building_slots = 1

				add_building_construction = {
		    		type = arms_factory
		   			level = 1
		    		instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
				}

				add_extra_state_shared_building_slots = 1

				add_building_construction = {
		    		type = arms_factory
		   			level = 1
		    		instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	seize_weaponry = {

		allowed = { has_war = yes }

		icon = generic_industry
		
		available = {
			has_war = yes
			has_capitulated = no
		}
		
		visible = {
		    has_war = yes
		}

		days_remove = 5
		fire_only_once = no
		days_re_enable = 350

		cost = 20
		
	remove_effect = {
	    add_stability = -0.05
        add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 2000
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	seize_transport = {

		allowed = { has_war = yes }

		icon = GFX_decision_SWE_set_navy_budget
		
		available = {
			has_war = yes
			has_capitulated = no
			any_state = {
			is_coastal = yes
			is_controlled_by = ROOT
			}
		}
		
		visible = {
		    has_war = yes
		}
		
		days_remove = 10
		fire_only_once = no
		days_re_enable = 250

		cost = 20
		
	remove_effect = {
	    add_stability = -0.05
        add_equipment_to_stockpile = {
				type = convoy_1
				amount = 20
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	purchase_surplus_equipment = {

		icon = GFX_decision_ger_military_buildup
		
		fire_only_once = no
		
		days_remove = 30
		days_re_enable = 50
		
		cost = 50

		visible = {
		    has_war = yes
			has_capitulated = no
		}
		
		allowed = { has_war = yes }
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
			has_war = yes
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
			    add_equipment_to_stockpile = {
						type = infantry_equipment_0 
						amount = 3000
						producer = SWI
				}
				add_equipment_to_stockpile = {
						type = support_equipment_1 
						amount = 250
						producer = SWI
				}
				add_equipment_to_stockpile = {
						type = artillery_equipment_1 
						amount = 250
						producer = SWE
				}
		}

		ai_will_do = {
			factor = 0
		}
	}
	fight_forever = {

		allowed = { has_war = yes }

		icon = GFX_decision_SWI_consolidate_council_power
		
		available = {
			has_war = yes
			surrender_progress > 0.5
			has_war_support > 0.75
			has_capitulated = no
		}
		
		visible = {
		    has_war = yes
			has_capitulated = no
		}

		fire_only_once = yes
        days_remove = 5
		cost = 200
		
	modifier = {
		}
		
	remove_effect = {
	    add_ideas = fighting_forever
	}

		ai_will_do = {
			factor = 0
		}
	}
}

    economics_category = {
	
	take_small_loan = {

		icon = GFX_decision_gre_paying_ifc_debt

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
		    NOT = { has_country_flag = TAKING_LOAN_FLAG }
		}
		
		modifier = {
			consumer_goods_factor = -0.1
			political_power_factor = -0.1
			production_speed_arms_factory_factor = 0.1
			production_speed_dockyard_factor = 0.1
			production_speed_industrial_complex_factor = 0.1
			production_speed_infrastructure_factor = 0.1
		}
		

		days_remove = 120

		cost = 25
		
		complete_effect = {
		set_country_flag = TAKING_LOAN_FLAG
		}

		remove_effect = {
		add_timed_idea = {
				idea = small_loan_repayment
				days = 150
			}
		clr_country_flag = TAKING_LOAN_FLAG		
		}

		ai_will_do = {
			factor = 0
		}
	}
	take_medium_loan = {

		icon = GFX_decision_gre_paying_ifc_debt

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
		    NOT = { has_country_flag = TAKING_LOAN_FLAG }
		}
		
		modifier = {
			consumer_goods_factor = -0.15
			political_power_factor = -0.15
			production_speed_arms_factory_factor = 0.15
			production_speed_dockyard_factor = 0.15
			production_speed_industrial_complex_factor = 0.15
			production_speed_infrastructure_factor = 0.15
		}
		

		days_remove = 120

		cost = 35
		
		complete_effect = {
		set_country_flag = TAKING_LOAN_FLAG
		}

		remove_effect = {
		add_timed_idea = {
				idea = medium_loan_repayment
				days = 200
			}
        clr_country_flag = TAKING_LOAN_FLAG			
		}

		ai_will_do = {
			factor = 0
		}
	}
    take_large_loan = {

		icon = GFX_decision_gre_paying_ifc_debt

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
		   NOT = { has_country_flag = TAKING_LOAN_FLAG }
		}
		
		modifier = {
			consumer_goods_factor = -0.20
			political_power_factor = -0.2
			production_speed_arms_factory_factor = 0.20
			production_speed_dockyard_factor = 0.20
			production_speed_industrial_complex_factor = 0.20
			production_speed_infrastructure_factor = 0.20
		}
		

		days_remove = 120

		cost = 50
		
		complete_effect = {
		set_country_flag = TAKING_LOAN_FLAG
		}

		remove_effect = {
		add_timed_idea = {
				idea = large_loan_repayment
				days = 250
			}	
		clr_country_flag = TAKING_LOAN_FLAG		
		}

		ai_will_do = {
			factor = 0
		}
	}
	poverty_fund = {

		icon = GFX_decision_generic_welfare

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
		    always = yes
		}
		
		modifier = {
			consumer_goods_factor = 0.15
			stability_weekly = 0.005
		}
		

		days_remove = 120
		days_re_enable = 150

		cost = 50

		remove_effect = {
		}

		ai_will_do = {
			factor = 0
		}
	}
	government_savings = {

		icon = GFX_decision_generic_fundraising

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes		
			    }
			}
		}
		
		available = {
		    always = yes
		}
		
		modifier = {
			consumer_goods_factor = -0.1
			political_power_factor = -0.20
		}
		

		days_remove = 120
		days_re_enable = 200

		cost = 50

		remove_effect = {
		}

		ai_will_do = {
			factor = 0
		}
	}
	increase_taxes = {

		icon = GFX_decision_eng_trade_unions_support

		visible = { 
			OR = {
				NOT = {
						has_civil_war = yes
						has_capitulated = yes	
                        has_idea = increased_taxation						
			    }
			}
		}
		
		available = {
			NOT = {
				has_civil_war = yes
				has_capitulated = yes	
                has_idea = increased_taxation						
			}
		}
		
		modifier = {
			political_power_factor = -0.15
		}
		

		days_remove = 15
		days_re_enable = 150

		cost = 75

		remove_effect = {
		add_ideas = increased_taxation
		}

		ai_will_do = {
			factor = 0
		}
	}
	decrease_taxes = {

		icon = GFX_decision_generic_break_treaty

		visible = { 
		has_idea = increased_taxation
		}
		
		available = {
		has_idea = increased_taxation
		}
		
		modifier = {
			political_power_factor = -0.15
		}
		

		days_remove = 5
		days_re_enable = 10

		cost = 25

		remove_effect = {
		remove_ideas = increased_taxation
		add_stability = 0.002
		}

		ai_will_do = {
			factor = 0
		}
	}
	make_investments = {
    icon = GFX_decision_hol_attract_foreign_investors
    visible = {
        always = yes
    }
    available = {
        num_of_civilian_factories_available_for_projects > 1
    }
    modifier = {
        political_power_factor = -0.15
		civilian_factory_use = 1
    }
    days_remove = 70
    days_re_enable = 200
    cost = 75

    remove_effect = {
        random_list = {
            30 = {
                add_offsite_building = {
                    type = industrial_complex
                    level = 1
                }
            }
            30 = {
        }
		    25 = {
        }
            15 = {
                add_offsite_building = {
                    type = industrial_complex
                    level = 2
                }
            }
        }
    }

    ai_will_do = {
        factor = 0
    }
}
}

general_staff_category = {
    focus_offensive = {
        icon = GFX_decision_generic_ignite_civil_war

        visible = { 
            always = yes
        }

        available = {
            has_army_experience > 25
            command_power > 15
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            breakthrough_factor = 0.10
            army_attack_factor = 0.10
            land_reinforce_rate = 0.05
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }

    focus_defence = {
        icon = GFX_decision_generic_fortification

        visible = { 
            always = yes
        }

        available = {
            has_army_experience > 25
            command_power > 15
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            army_defence_factor = 0.10
            army_morale_factor = 0.10
            max_dig_in_factor = 0.05
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }

    focus_planning = {
        icon = GFX_decision_generic_operation

        visible = { 
            always = yes
        }

        available = {
            has_army_experience > 25
            command_power > 15
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            planning_speed = 0.15
            max_planning = 0.10
            army_org_factor = 0.05
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }

    focus_logistics = {
        icon = GFX_decision_generic_motorized

        visible = { 
            always = yes
        }

        available = {
            has_army_experience > 25
            command_power > 15
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            supply_node_range = 0.10
            heat_attrition_factor = -0.15
            winter_attrition_factor = -0.15
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }

    focus_air_superiority = {
        icon = GFX_decision_generic_air

        visible = { 
            always = yes
        }

        available = {
            has_air_experience > 25
            command_power > 15
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            air_attack_factor = 0.10
            air_agility_factor = 0.05
            air_superiority_efficiency = 0.10
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }

    focus_ground_attack = {
        icon = GFX_decision_generic_air

        visible = { 
            always = yes
        }

        available = {
            has_air_experience > 25
            command_power > 15
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            air_cas_present_factor = 0.10
            recon_factor = 0.05
            air_cas_efficiency = 0.10
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }

    focus_naval_invasion = {
        icon = GFX_decision_generic_naval

        visible = { 
            always = yes
        }

        available = {
            has_navy_experience > 25
            command_power > 15
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            naval_invasion_prep_speed = 0.25
            naval_invasion_penalty = -0.10
            shore_bombardment_bonus = 0.10
            naval_strike_targetting_factor = 0.10
            air_nav_efficiency = 0.10
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }

    focus_navy_actions = {
        icon = GFX_decision_generic_naval

        visible = { 
            always = yes
        }

        available = {
            has_navy_experience > 25
            command_power > 15
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            repair_speed_factor = 0.25
            refit_speed = 0.30
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }

    focus_field_experience = {
        icon = GFX_decision_generic_land

        visible = { 
            always = yes
        }

        available = {
            has_army_experience > 25
            command_power > 15
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            experience_gain_army_unit_factor = 0.10
            experience_gain_factor = 0.10
            equipment_capture = 0.05
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }

    focus_fuel_consumption = {
        icon = GFX_decision_generic_fuel

        visible = { 
            always = yes
        }

        available = {
            has_army_experience > 25
            has_air_experience > 25
            has_navy_experience > 25
            command_power > 20
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            army_fuel_consumption_factor = -0.25
            air_fuel_consumption_factor = -0.25
            navy_fuel_consumption_factor = -0.25
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }

    focus_aerial_buildings = {
        icon = GFX_decision_generic_industry

        visible = { 
            always = yes
        }

        available = {
            has_air_experience > 25
            command_power > 15
            NOT = { has_country_flag = GENERAL_STAFF_FLAG }
        }

        modifier = {
            production_speed_air_base_factor = 0.10
            production_speed_anti_air_building_factor = 0.15
            production_speed_radar_station_factor = 0.20
        }

        days_remove = 120

        complete_effect = {
            set_country_flag = GENERAL_STAFF_FLAG
        }

        remove_effect = {
            clr_country_flag = GENERAL_STAFF_FLAG
        }

        ai_will_do = {
            factor = 0
        }
    }
}

    capitulation_category = {
	
	request_funds = {

		icon = GFX_decision_gre_investment_decisions
		
		fire_only_once = yes

		visible = { 
		always = yes
		}
		
		available = {
		always = yes
		}
		
		modifier = {
			political_power_factor = -0.50
		}
		
		days_remove = 50

		cost = 70

		remove_effect = {
		 add_offsite_building = {
                    type = industrial_complex
                    level = 2
            }
		}

		ai_will_do = {
			factor = 0
		}
	}
	 
	purchase_civ_factory = {

		icon = GFX_decision_generic_factory

		visible = { 
		always = yes
		}
		
		available = {
		    num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 1
		}
		
		days_remove = 50
		days_re_enable = 170

		cost = 70

		remove_effect = {
		 add_offsite_building = {
                    type = industrial_complex
                    level = 1
            }
		}

		ai_will_do = {
			factor = 0
		}
	}
	purchase_mil_factory = {

		icon = GFX_decision_generic_merge_plant_aircraft

		visible = { 
		always = yes
		}
		
		available = {
		    num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 1
		}
		
		days_remove = 50
		days_re_enable = 170

		cost = 70

		remove_effect = {
		 add_offsite_building = {
                    type = arms_factory
                    level = 1
            }
		}

		ai_will_do = {
			factor = 0
		}
	}
	ask_manpower = {

		icon = GFX_decision_generic_military

		visible = { 
		always = yes
		}
		
		available = {
		always = yes
		}
		
		modifier = {
		political_power_factor = -0.35
		}
		
		days_remove = 70
		days_re_enable = 250

		cost = 70

		remove_effect = {
		add_manpower = 20000
		}

		ai_will_do = {
			factor = 0
		}
	}
	request_guns = {

		icon = GFX_decision_generic_assassination
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 170
		
		cost = 50

		visible = {
		   always = yes
		}
		
		available = {
			always = yes
		}
		
		modifier = {
			political_power_factor = -0.25
		}
		
		remove_effect = {
			    add_equipment_to_stockpile = {
						type = infantry_equipment_0 
						amount = 2000
				}
				add_equipment_to_stockpile = {
						type = infantry_equipment_1 
						amount = 2000
				}
		}

		ai_will_do = {
			factor = 0
		}
	}
	request_equipment = {

		icon = GFX_decision_FIN_weapon_caches
		
		fire_only_once = no
		
		days_remove = 70
		days_re_enable = 170
		
		cost = 70

		visible = {
		   always = yes
		}
		
		available = {
			always = yes
		}
		
		modifier = {
			political_power_factor = -0.25
		}
		
		remove_effect = {
			    add_equipment_to_stockpile = {
						type = support_equipment_1 
						amount = 300
				}
				add_equipment_to_stockpile = {
						type = artillery_equipment_1 
						amount = 300
				}
		}

		ai_will_do = {
			factor = 0
		}
	}
	rescue_volunteers = {

		icon = GFX_decision_eng_blackshirt_march
		
		fire_only_once = no
		
		days_remove = 70
		days_re_enable = 150
		
		cost = 70

		visible = {
		   always = yes
		}
		
		available = {
			has_equipment = { support_equipment > 299 }
			has_equipment = { infantry_equipment > 999 }
		}
		
		modifier = {
			political_power_factor = -0.15
		}
		
		remove_effect = {
			add_manpower = 5000
		}

		ai_will_do = {
			factor = 0
		}
	}
}
aircraft_market_category = {
	
    purchase_surplus_aircraft = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			always = yes
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 2
		}
		
		modifier = {
			civilian_factory_use = 3
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_0 
						amount = 15
						producer = CZE
				}
				add_equipment_to_stockpile = {
						type = small_plane_airframe_0 
						amount = 15
						producer = SWE
				}
				add_equipment_to_stockpile = {
						type = small_plane_cas_airframe_0 
						amount = 20
						producer = HOL
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	purchase_german_transport = {

    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 20

    visible = { 
        GER = {
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            exists = yes
        }
    }
    
    available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}

    
    remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = transport_plane_equipment_1 
						amount = 20
						producer = GER
				}
			}
		}

    ai_will_do = {
        factor = 0
    }
}
	
	purchase_german_fighters_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			GER = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_0 
						amount = 30
						producer = GER
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_fighters_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			GER = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_1
						amount = 30
						producer = GER
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_fighters_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        GER = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        GER = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            GER = {
                create_equipment_variant = {
                    name = "Focke-Wulf Fw 190"  
                    type = small_plane_airframe_2 
                    creator = GER  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_2
                    variant_name = "Focke-Wulf Fw 190" 
                    amount = 30
                    producer = GER
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}

    purchase_german_fighters_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        GER = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        GER = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            GER = {
                create_equipment_variant = {
                    name = "Focke-Wulf Ta 152"  
                    type = small_plane_airframe_3 
                    creator = GER  
                    modules = {
                        fixed_main_weapon_slot = large_aircraft_cannon_2x
						fixed_secondary_weapon_slot = large_aircraft_cannon_2x
                        engine_type_slot = engine_1_4x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = self_sealing_fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_3
                    variant_name = "Focke-Wulf Ta 152" 
                    amount = 30
                    producer = GER
                }
            }
        }
    } 
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_cas_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			GER = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_cas_airframe_0 
						amount = 30
						producer = GER
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_cas_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			GER = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_cas_airframe_1 
						amount = 30
						producer = GER
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_cas_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        GER = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        GER = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            GER = {
                create_equipment_variant = {
                    name = "Junkers Ju 87 G 'Kanonenvogel'"  
                    type = small_plane_cas_airframe_2 
                    creator = GER  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_2
                    variant_name = "Junkers Ju 87 G 'Kanonenvogel'" 
                    amount = 30
                    producer = GER
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_german_cas_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        GER = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        GER = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            GER = {
                create_equipment_variant = {
                    name = "Henschel Hs-129"  
                    type = small_plane_cas_airframe_3
                    creator = GER  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_2_4x

                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_3
                    variant_name = "Henschel Hs-129" 
                    amount = 30
                    producer = GER
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_medium_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			GER = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_0 
						amount = 25
						producer = GER
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_medium_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			GER = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_1 
						amount = 25
						producer = GER
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_medium_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        GER = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        GER = {
            has_tech = improved_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            GER = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Junkers Ju 88 A"  
                    type = medium_plane_airframe_2 
                    creator = GER  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_3x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_2
                    variant_name = "Junkers Ju 88 A" 
                    amount = 25
                    producer = GER
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_medium_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        GER = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        GER = {
            has_tech = advanced_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            GER = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Junkers Ju 188"  
                    type = medium_plane_airframe_3
                    creator = GER  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						fixed_secondary_weapon_slot = bomb_locks
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_4x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_3
                    variant_name = "Junkers Ju 188" 
                    amount = 25
                    producer = GER
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_large_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = { 
			GER = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 6
		}
		
		modifier = {
			civilian_factory_use = 7
		}
		
		remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            GER = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Zeppelin-Staaken R"  
                    type = large_plane_airframe_0 
                    creator = GER  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_0
                    variant_name = "Zeppelin-Staaken R" 
                    amount = 20
                    producer = GER
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_large_basic_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        GER = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = basic_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        GER = {
            has_tech = basic_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            GER = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Dornier Do 19"  
                    type = large_plane_airframe_1 
                    creator = GER  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                        special_type_slot_2 = light_mg_4x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_1
                    variant_name = "Dornier Do 19" 
                    amount = 20
                    producer = GER
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_large_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        GER = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        GER = {
            has_tech = improved_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            GER = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "He 177 'Greif"  
                    type = large_plane_airframe_2 
                    creator = GER  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
                        engine_type_slot = engine_4_3x
                        special_type_slot_1 = heavy_mg_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_2
                    variant_name = "He 177 'Greif" 
                    amount = 20
                    producer = GER
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_german_large_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        GER = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        GER = {
            has_tech = advanced_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            GER = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Ta 400"  
                    type = large_plane_airframe_3 
                    creator = GER  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
						fixed_secondary_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_4x
                        special_type_slot_1 = cannon_defense_turret_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_3
                    variant_name = "Ta 400" 
                    amount = 20
                    producer = GER
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_transport = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			FRA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = transport_plane_equipment_1 
						amount = 20
						producer = FRA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_fighters_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			FRA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_0 
						amount = 30
						producer = FRA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_fighters_basic = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        FRA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = basic_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 4
        FRA = {
            has_tech = basic_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 5
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            FRA = {
                # Create the variant for France only
                create_equipment_variant = {
                    name = "Morane-Saulnier M.S.406"  
                    type = small_plane_airframe_1 
                    creator = FRA  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_2x
						special_type_slot_1 = empty
                
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_1
                    variant_name = "Morane-Saulnier M.S.406" 
                    amount = 30
                    producer = FRA
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}

    purchase_french_fighters_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        FRA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        FRA = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            FRA = {
                create_equipment_variant = {
                    name = "Dewoitine D.520"  
                    type = small_plane_airframe_2 
                    creator = FRA  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_2
                    variant_name = "Dewoitine D.520" 
                    amount = 30
                    producer = FRA
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}

    purchase_french_fighters_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        FRA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        FRA = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            FRA = {
                create_equipment_variant = {
                    name = "Bloch MB.157"  
                    type = small_plane_airframe_3 
                    creator = FRA  
                    modules = {
                        fixed_main_weapon_slot = large_aircraft_cannon_2x
						fixed_secondary_weapon_slot = large_aircraft_cannon_2x
                        engine_type_slot = engine_1_4x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = self_sealing_fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_3
                    variant_name = "Bloch MB.157" 
                    amount = 30
                    producer = FRA
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_cas_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			FRA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_cas_airframe_0 
						amount = 30
						producer = FRA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_cas_basic = { # No tech and/or variant in 1936

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = {
    FRA = {
        exists = yes
        has_opinion = {
            target = ROOT
            value > 30
        }
        NOT = { has_war_with = ROOT }
        has_tech = basic_small_airframe  
    }
}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
			FRA {
			has_tech = basic_small_airframe
		}
	}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
    if = {
        limit = { has_dlc = "By Blood Alone" }
        
        # Ensure the variant is created for the Soviets
        FRA = {
            create_equipment_variant = {
                name = "Breguet Br.693"
                type = small_plane_cas_airframe_1
                creator = FRA
            modules = {
			    fixed_main_weapon_slot = bomb_locks
			    engine_type_slot = engine_2_1x
			    special_type_slot_1 = lmg_defense_turret
			    special_type_slot_2 = dive_brakes_small
		    }
        }
    }
        
        # Transfer the specific variant to the buyer
        ROOT = {
            add_equipment_to_stockpile = {
                type = small_plane_cas_airframe_1
                variant_name = "Breguet Br.693"
                amount = 30
                producer = FRA
            }
        }
    }
}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_cas_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        FRA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        FRA = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            FRA = {
                create_equipment_variant = {
                    name = "Loire-Nieuport LN.401"  
                    type = small_plane_cas_airframe_2 
                    creator = FRA  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_2
                    variant_name = "Loire-Nieuport LN.401" 
                    amount = 30
                    producer = FRA
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_french_cas_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        FRA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        FRA = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            FRA = {
                create_equipment_variant = {
                    name = "Nord 1500 Noréclair"  
                    type = small_plane_cas_airframe_3 
                    creator = FRA  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_2_4x
						special_type_slot_1 = empty

                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_3
                    variant_name = "Nord 1500 Noréclair" 
                    amount = 30
                    producer = FRA
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_medium_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			FRA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_0 
						amount = 25
						producer = FRA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_medium_basic = { # No tech and/or variant in 1936

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = {
    FRA = {
        exists = yes
        has_opinion = {
            target = ROOT
            value > 30
        }
        NOT = { has_war_with = ROOT }
        has_tech = basic_medium_airframe  
    }
}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
			FRA {
			has_tech = basic_medium_airframe
			}
	}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
    if = {
        limit = { has_dlc = "By Blood Alone" }
        
        # Ensure the variant is created for the Soviets
        FRA = {
            create_equipment_variant = {
                name = "Lioré-et-Olivier LeO 451"
                type = medium_plane_airframe_1
                creator = FRA
            modules = {
			    fixed_main_weapon_slot = bomb_locks
			    engine_type_slot = engine_2_1x
			    special_type_slot_1 = lmg_defense_turret
			    special_type_slot_2 = dive_brakes_small
		    }
        }
    }
        
        # Transfer the specific variant to the buyer
        ROOT = {
            add_equipment_to_stockpile = {
                type = medium_plane_airframe_1
                variant_name = "Lioré-et-Olivier LeO 451"
                amount = 25
                producer = FRA
            }
        }
    }
}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_medium_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        FRA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        FRA = {
            has_tech = improved_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            FRA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Junkers Ju 88 A"  
                    type = medium_plane_airframe_2 
                    creator = FRA  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_3x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_2
                    variant_name = "Junkers Ju 88 A" 
                    amount = 25
                    producer = FRA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_medium_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        FRA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        FRA = {
            has_tech = advanced_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            FRA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Bloch MB.174"  
                    type = medium_plane_airframe_3
                    creator = FRA  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						fixed_secondary_weapon_slot = bomb_locks
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_4x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_3
                    variant_name = "Bloch MB.174" 
                    amount = 25
                    producer = FRA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_large_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = { 
			FRA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 6
		}
		
		modifier = {
			civilian_factory_use = 7
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = large_plane_airframe_0 
						amount = 20
						producer = FRA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_large_basic_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        FRA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = basic_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        FRA = {
            has_tech = basic_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            FRA = {
                create_equipment_variant = {
                    name = "Farman F.223"  
                    type = large_plane_airframe_1 
                    creator = FRA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                        special_type_slot_2 = light_mg_4x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_1
                    variant_name = "Farman F.223" 
                    amount = 20
                    producer = FRA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_french_large_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        FRA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        FRA = {
            has_tech = improved_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            FRA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Bloch MB.162"  
                    type = large_plane_airframe_2 
                    creator = FRA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
                        engine_type_slot = engine_4_3x
                        special_type_slot_1 = heavy_mg_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_2
                    variant_name = "Bloch MB.162" 
                    amount = 20
                    producer = FRA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_france_large_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        FRA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        FRA = {
            has_tech = advanced_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            FRA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Breguet 482"  
                    type = large_plane_airframe_3 
                    creator = FRA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
						fixed_secondary_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_4x
                        special_type_slot_1 = cannon_defense_turret_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_3
                    variant_name = "Breguet 482" 
                    amount = 20
                    producer = FRA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_transport = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			ENG = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = transport_plane_equipment_1 
						amount = 20
						producer = ENG
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_fighters_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			ENG = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_0 
						amount = 30
						producer = ENG
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_fighters_basic = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        ENG = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = basic_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 4
        ENG = {
            has_tech = basic_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 5
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                create_equipment_variant = {
                    name = "Hawker Hurricane"  
                    type = small_plane_airframe_1 
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_2x
						special_type_slot_1 = empty
                
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_1
                    variant_name = "Hawker Hurricane" 
                    amount = 30
                    producer = ENG
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_british_fighters_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        ENG = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        ENG = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                create_equipment_variant = {
                    name = "Supermarine Spitfire"  
                    type = small_plane_airframe_2 
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_2
                    variant_name = "Supermarine Spitfire" 
                    amount = 30
                    producer = ENG
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_british_fighters_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        ENG = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ENG = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                create_equipment_variant = {
                    name = "Supermarine Spiteful"  
                    type = small_plane_airframe_3 
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = large_aircraft_cannon_2x
						fixed_secondary_weapon_slot = large_aircraft_cannon_2x
                        engine_type_slot = engine_1_4x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = self_sealing_fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_3
                    variant_name = "Supermarine Spiteful" 
                    amount = 30
                    producer = ENG
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_cas_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			ENG = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_cas_airframe_0 
						amount = 30
						producer = ENG
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_cas_basic = { # No tech and/or variant in 1936

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = {
    ENG = {
        exists = yes
        has_opinion = {
            target = ROOT
            value > 30
        }
        NOT = { has_war_with = ROOT }
        has_tech = basic_small_airframe  
    }
}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
			ENG {
			has_tech = basic_small_airframe
		}
	}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
    if = {
        limit = { has_dlc = "By Blood Alone" }
        
        # Ensure the variant is created for the Soviets
        ENG = {
            create_equipment_variant = {
                name = "Hawker Hector"
                type = small_plane_cas_airframe_1
                creator = ENG
            modules = {
			    fixed_main_weapon_slot = bomb_locks
			    engine_type_slot = engine_2_1x
			    special_type_slot_1 = lmg_defense_turret
			    special_type_slot_2 = dive_brakes_small
		    }
        }
    }
        
        # Transfer the specific variant to the buyer
        ROOT = {
            add_equipment_to_stockpile = {
                type = small_plane_cas_airframe_1
                variant_name = "Hawker Hector"
                amount = 30
                producer = ENG
            }
        }
    }
}    

     ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_british_cas_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        ENG = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        ENG = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                create_equipment_variant = {
                    name = "Hawker Typhoon"  
                    type = small_plane_cas_airframe_2 
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_2
                    variant_name = "Hawker Typhoon" 
                    amount = 30
                    producer = ENG
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_british_cas_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        ENG = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ENG = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                create_equipment_variant = {
                    name = "Hawker Tempest"  
                    type = small_plane_cas_airframe_3 
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_2_4x
						special_type_slot_1 = empty

                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_3
                    variant_name = "Hawker Tempest" 
                    amount = 30
                    producer = ENG
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_medium_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			ENG = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_0 
						amount = 25
						producer = ENG
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_medium_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			ENG = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_1 
						amount = 25
						producer = ENG
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_medium_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        ENG = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ENG = {
            has_tech = improved_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Bristol Beaufort"  
                    type = medium_plane_airframe_2 
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_3x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_2
                    variant_name = "Bristol Beaufort" 
                    amount = 25
                    producer = ENG
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_medium_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        ENG = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ENG = {
            has_tech = advanced_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "de Havilland Mosquito B"  
                    type = medium_plane_airframe_3
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						fixed_secondary_weapon_slot = bomb_locks
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_4x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_3
                    variant_name = "de Havilland Mosquito B" 
                    amount = 25
                    producer = ENG
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_large_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = { 
			ENG = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 6
		}
		
		modifier = {
			civilian_factory_use = 7
		}
		
		remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Handley Page Heyford"  
                    type = large_plane_airframe_0 
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_0
                    variant_name = "Handley Page Heyford" 
                    amount = 20
                    producer = ENG
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_large_basic_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        ENG = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = basic_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ENG = {
            has_tech = basic_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Handley Page Halifax"  
                    type = large_plane_airframe_1 
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                        special_type_slot_2 = light_mg_4x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_1
                    variant_name = "Handley Page Halifax" 
                    amount = 20
                    producer = ENG
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_large_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        ENG = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ENG = {
            has_tech = improved_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Avro Lancaster"  
                    type = large_plane_airframe_2 
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
                        engine_type_slot = engine_4_3x
                        special_type_slot_1 = heavy_mg_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_2
                    variant_name = "Avro Lancaster" 
                    amount = 20
                    producer = ENG
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_british_large_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        ENG = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ENG = {
            has_tech = advanced_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ENG = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Avro Lincoln"  
                    type = large_plane_airframe_3 
                    creator = ENG  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
						fixed_secondary_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_4x
                        special_type_slot_1 = cannon_defense_turret_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_3
                    variant_name = "Avro Lincoln" 
                    amount = 20
                    producer = ENG
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_transport = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			ITA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = transport_plane_equipment_1 
						amount = 20
						producer = ITA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_fighters_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			ITA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_0 
						amount = 30
						producer = ITA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_fighters_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			ITA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                create_equipment_variant = {
                    name = "C.200 Saetta"  
                    type = small_plane_airframe_1 
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_2x
						special_type_slot_1 = empty
                
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_1
                    variant_name = "C.200 Saetta" 
                    amount = 30
                    producer = ITA
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_italian_fighters_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        ITA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        ITA = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                create_equipment_variant = {
                    name = "Macchi C.202 Folgore"  
                    type = small_plane_airframe_2 
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_2
                    variant_name = "Macchi C.202 Folgore" 
                    amount = 30
                    producer = ITA
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
    purchase_italian_fighters_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        ITA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ITA = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                create_equipment_variant = {
                    name = "Fiat G.55 Centauro"  
                    type = small_plane_airframe_3 
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = large_aircraft_cannon_2x
						fixed_secondary_weapon_slot = large_aircraft_cannon_2x
                        engine_type_slot = engine_1_4x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = self_sealing_fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_3
                    variant_name = "Fiat G.55 Centauro" 
                    amount = 30
                    producer = ITA
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_cas_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			ITA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_cas_airframe_0 
						amount = 30
						producer = ITA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_cas_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			ITA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_cas_airframe_1 
						amount = 30
						producer = ITA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_cas_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        ITA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        ITA = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                create_equipment_variant = {
                    name = "Breda Ba.88 Lince"  
                    type = small_plane_cas_airframe_2 
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_2
                    variant_name = "Breda Ba.88 Lince" 
                    amount = 30
                    producer = ITA
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_italian_cas_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        ITA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ITA = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                create_equipment_variant = {
                    name = "Breda Ba.201"  
                    type = small_plane_cas_airframe_3 
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_2_4x
						special_type_slot_1 = empty

                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_3
                    variant_name = "Breda Ba.201" 
                    amount = 30
                    producer = ITA
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_medium_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			ITA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_0 
						amount = 25
						producer = ITA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_medium_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			ITA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_1 
						amount = 25
						producer = ITA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_medium_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        ITA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ITA = {
            has_tech = improved_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Z.1007bis Alcione"  
                    type = medium_plane_airframe_2 
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_3x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_2
                    variant_name = "Z.1007bis Alcione" 
                    amount = 25
                    producer = ITA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_medium_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        ITA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ITA = {
            has_tech = advanced_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Cant Z.1018 Leone"  
                    type = medium_plane_airframe_3
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						fixed_secondary_weapon_slot = bomb_locks
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_4x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_3
                    variant_name = "Cant Z.1018 Leone" 
                    amount = 25
                    producer = ITA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_large_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		 visible = {
        ITA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = iw_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ITA = {
            has_tech = iw_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Piaggio P.36"  
                    type = large_plane_airframe_0 
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_0
                    variant_name = "Piaggio P.36" 
                    amount = 20
                    producer = ITA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_large_basic_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        ITA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = basic_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ITA = {
            has_tech = basic_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Piaggio P.50"  
                    type = large_plane_airframe_1 
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                        special_type_slot_2 = light_mg_4x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_1
                    variant_name = "Piaggio P.50" 
                    amount = 20
                    producer = ITA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_large_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        ITA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ITA = {
            has_tech = improved_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Piaggio P.108"  
                    type = large_plane_airframe_2 
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
                        engine_type_slot = engine_4_3x
                        special_type_slot_1 = heavy_mg_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_2
                    variant_name = "Piaggio P.108" 
                    amount = 20
                    producer = ITA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_italian_large_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        ITA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        ITA = {
            has_tech = advanced_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            ITA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Piaggio P.133"  
                    type = large_plane_airframe_3 
                    creator = ITA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
						fixed_secondary_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_4x
                        special_type_slot_1 = cannon_defense_turret_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_3
                    variant_name = "Piaggio P.133" 
                    amount = 20
                    producer = ITA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}

	purchase_soviet_transport = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			SOV = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = transport_plane_equipment_1 
						amount = 20
						producer = SOV
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_fighters_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			SOV = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_0 
						amount = 30
						producer = SOV
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_fighters_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			SOV = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_1 
						amount = 30
						producer = SOV
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_fighters_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        SOV = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        SOV = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            SOV = {
                create_equipment_variant = {
                    name = "Lavochkin-Gorbunov-Gudkov LaGG-3"  
                    type = small_plane_airframe_2 
                    creator = SOV  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_2
                    variant_name = "Lavochkin-Gorbunov-Gudkov LaGG-3" 
                    amount = 30
                    producer = SOV
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
    purchase_soviet_fighters_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        SOV = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        SOV = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            SOV = {
                create_equipment_variant = {
                    name = "Yakolev Yak-3"  
                    type = small_plane_airframe_3 
                    creator = SOV  
                    modules = {
                        fixed_main_weapon_slot = large_aircraft_cannon_2x
						fixed_secondary_weapon_slot = large_aircraft_cannon_2x
                        engine_type_slot = engine_1_4x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = self_sealing_fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_3
                    variant_name = "Yakolev Yak-3" 
                    amount = 30
                    producer = SOV
                }
            }
        }
    }

    ai_will_do = {
			factor = 0
		}
	}	
	
	purchase_soviet_cas_i = { # Has no variant in 1936

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			SOV = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
	remove_effect = {
    if = {
        limit = { has_dlc = "By Blood Alone" }
        
        # Ensure the variant is created for the Soviets
        SOV = {
            create_equipment_variant = {
                name = "I-153 CAS"
                type = small_plane_cas_airframe_0
                creator = SOV
                modules = {
                    fixed_main_weapon_slot = bomb_locks
                    engine_type_slot = engine_1_1x
                    special_type_slot_1 = lmg_defense_turret
                }
            }
        }
        
        # Transfer the specific variant to the buyer
        ROOT = {
            add_equipment_to_stockpile = {
                type = small_plane_cas_airframe_0
                variant_name = "I-153 CAS"
                amount = 30
                producer = SOV
            }
        }
    }
}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_cas_basic = { # Has no variant in 1936

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			SOV = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
    if = {
        limit = { has_dlc = "By Blood Alone" }
        
        # Ensure the variant is created for the Soviets
        SOV = {
            create_equipment_variant = {
                name = "Kochyerigin LBSh"
                type = small_plane_cas_airframe_1
                creator = SOV
            modules = {
			    fixed_main_weapon_slot = bomb_locks
			    engine_type_slot = engine_2_1x
			    special_type_slot_1 = lmg_defense_turret
			    special_type_slot_2 = dive_brakes_small
		    }
        }
    }
        
        # Transfer the specific variant to the buyer
        ROOT = {
            add_equipment_to_stockpile = {
                type = small_plane_cas_airframe_1
                variant_name = "Kochyerigin LBSh"
                amount = 30
                producer = SOV
            }
        }
    }
}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_cas_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        SOV = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        SOV = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            SOV = {
                create_equipment_variant = {
                    name = "Ilyushin IL-2 Sturmovik"  
                    type = small_plane_cas_airframe_2 
                    creator = SOV  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_2
                    variant_name = "Ilyushin IL-2 Sturmovik" 
                    amount = 30
                    producer = SOV
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_soviet_cas_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        SOV = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        SOV = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            SOV = {
                create_equipment_variant = {
                    name = "Ilyushin IL-10"  
                    type = small_plane_cas_airframe_3 
                    creator = SOV  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_2_4x
						special_type_slot_1 = empty

                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_3
                    variant_name = "Ilyushin IL-10" 
                    amount = 30
                    producer = SOV
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_medium_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			SOV = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_0 
						amount = 25
						producer = SOV
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_medium_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			SOV = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_1 
						amount = 25
						producer = SOV
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_medium_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        SOV = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        SOV = {
            has_tech = improved_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            SOV = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Tupolev Tu-2"  
                    type = medium_plane_airframe_2 
                    creator = SOV  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_3x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_2
                    variant_name = "Tupolev Tu-2" 
                    amount = 25
                    producer = SOV
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_medium_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        SOV = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        SOV = {
            has_tech = advanced_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            SOV = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Tupolev Tu-8"  
                    type = medium_plane_airframe_3
                    creator = SOV  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						fixed_secondary_weapon_slot = bomb_locks
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_4x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_3
                    variant_name = "Tupolev Tu-8" 
                    amount = 25
                    producer = SOV
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_large_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = { 
			SOV = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 6
		}
		
		modifier = {
			civilian_factory_use = 7
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = large_plane_airframe_0 
						amount = 20
						producer = SOV
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_large_basic_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        SOV = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = basic_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        SOV = {
            has_tech = basic_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            SOV = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Petlyakov Pe-8"  
                    type = large_plane_airframe_1 
                    creator = SOV  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                        special_type_slot_2 = light_mg_4x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_1
                    variant_name = "Petlyakov Pe-8" 
                    amount = 20
                    producer = SOV
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_large_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        SOV = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        SOV = {
            has_tech = improved_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            SOV = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Tupolev TB-3"  
                    type = large_plane_airframe_2 
                    creator = SOV  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
                        engine_type_slot = engine_4_3x
                        special_type_slot_1 = heavy_mg_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_2
                    variant_name = "Tupolev TB-3" 
                    amount = 20
                    producer = SOV
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_soviet_large_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        SOV = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        SOV = {
            has_tech = advanced_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            SOV = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Tupolev Tu-4"  
                    type = large_plane_airframe_3 
                    creator = SOV  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
						fixed_secondary_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_4x
                        special_type_slot_1 = cannon_defense_turret_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_3
                    variant_name = "Tupolev Tu-4" 
                    amount = 20
                    producer = SOV
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}

	purchase_american_transport = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			USA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = transport_plane_equipment_1 
						amount = 20
						producer = USA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_fighters_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			USA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_0 
						amount = 30
						producer = USA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_fighters_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			USA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_1 
						amount = 30
						producer = USA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_fighters_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        USA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        USA = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            USA = {
                create_equipment_variant = {
                    name = "Bell P-39 Airacobra"  
                    type = small_plane_airframe_2 
                    creator = USA  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_2
                    variant_name = "Bell P-39 Airacobra" 
                    amount = 30
                    producer = USA
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_american_fighters_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        USA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        USA = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            USA = {
                create_equipment_variant = {
                    name = "P-51 Mustang"  
                    type = small_plane_airframe_3 
                    creator = USA  
                    modules = {
                        fixed_main_weapon_slot = large_aircraft_cannon_2x
						fixed_secondary_weapon_slot = large_aircraft_cannon_2x
                        engine_type_slot = engine_1_4x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = self_sealing_fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_3
                    variant_name = "P-51 Mustang" 
                    amount = 30
                    producer = USA
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_cas_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			USA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_cas_airframe_0 
						amount = 30
						producer = USA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_cas_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			USA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_cas_airframe_1 
						amount = 30
						producer = USA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_cas_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        USA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        USA = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            USA = {
                create_equipment_variant = {
                    name = "A-20 Havoc"  
                    type = small_plane_cas_airframe_2 
                    creator = USA  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_2
                    variant_name = "A-20 Havoc" 
                    amount = 30
                    producer = USA
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_american_cas_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        USA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        USA = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            USA = {
                create_equipment_variant = {
                    name = "A-26 Invader"  
                    type = small_plane_cas_airframe_3 
                    creator = USA  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_2_4x
						special_type_slot_1 = empty

                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_3
                    variant_name = "A-26 Invader" 
                    amount = 30
                    producer = USA
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_medium_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			USA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_0 
						amount = 25
						producer = USA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_medium_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			USA = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_1 
						amount = 25
						producer = USA
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_medium_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        USA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        USA = {
            has_tech = improved_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            USA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "B-25 Mitchell"  
                    type = medium_plane_airframe_2 
                    creator = USA  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_3x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_2
                    variant_name = "B-25 Mitchell" 
                    amount = 25
                    producer = USA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_medium_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        USA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        USA = {
            has_tech = advanced_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            USA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "XB-28 Dragon"  
                    type = medium_plane_airframe_3
                    creator = USA  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						fixed_secondary_weapon_slot = bomb_locks
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_4x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_3
                    variant_name = "XB-28 Dragon" 
                    amount = 25
                    producer = USA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_large_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		 visible = {
        USA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = iw_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        USA = {
            has_tech = iw_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            USA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Keystone B-3A"  
                    type = large_plane_airframe_0 
                    creator = USA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_0
                    variant_name = "Keystone B-3A" 
                    amount = 20
                    producer = USA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_large_basic_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        USA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = basic_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        USA = {
            has_tech = basic_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            USA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Boeing B-17 Flying Fortress"  
                    type = large_plane_airframe_1 
                    creator = USA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                        special_type_slot_2 = light_mg_4x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_1
                    variant_name = "Boeing B-17 Flying Fortress" 
                    amount = 20
                    producer = USA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_large_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        USA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        USA = {
            has_tech = improved_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            USA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "B-24 Liberator"  
                    type = large_plane_airframe_2 
                    creator = USA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
                        engine_type_slot = engine_4_3x
                        special_type_slot_1 = heavy_mg_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_2
                    variant_name = "B-24 Liberator" 
                    amount = 20
                    producer = USA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_american_large_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        USA = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        USA = {
            has_tech = advanced_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            USA = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "B-29 Superfortress"  
                    type = large_plane_airframe_3 
                    creator = USA  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
						fixed_secondary_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_4x
                        special_type_slot_1 = cannon_defense_turret_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_3
                    variant_name = "B-29 Superfortress" 
                    amount = 20
                    producer = USA
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_transport = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			JAP = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = transport_plane_equipment_1 
						amount = 20
						producer = JAP
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_fighters_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			JAP = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_airframe_0 
						amount = 30
						producer = JAP
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_fighters_basic = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			JAP = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                create_equipment_variant = {
                    name = "Ki-27"  
                    type = small_plane_airframe_1 
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_2x
						special_type_slot_1 = empty
                
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_1
                    variant_name = "Ki-27" 
                    amount = 30
                    producer = JAP
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_japanese_fighters_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        JAP = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        JAP = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                create_equipment_variant = {
                    name = "Nakajima Ki-43 Hayabusa"  
                    type = small_plane_airframe_2 
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = light_mg_4x
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_2
                    variant_name = "Nakajima Ki-43 Hayabusa" 
                    amount = 30
                    producer = JAP
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_japanese_fighters_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        JAP = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        JAP = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                create_equipment_variant = {
                    name = "Nakajima Ki-84 Hayate"  
                    type = small_plane_airframe_3 
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = large_aircraft_cannon_2x
						fixed_secondary_weapon_slot = large_aircraft_cannon_2x
                        engine_type_slot = engine_1_4x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = self_sealing_fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_airframe_3
                    variant_name = "Nakajima Ki-84 Hayate" 
                    amount = 30
                    producer = JAP
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_cas_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			JAP = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = small_plane_cas_airframe_0 
						amount = 30
						producer = JAP
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_cas_basic = { # Needs Variant Added

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			JAP = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
    if = {
        limit = { has_dlc = "By Blood Alone" }
        
        # To Ensure the variant is created for the Japanese
        JAP = {
            create_equipment_variant = {
                name = "Kawasaki Ki-32"
                type = small_plane_cas_airframe_1
                creator = JAP
            modules = {
			    fixed_main_weapon_slot = bomb_locks
			    engine_type_slot = engine_2_1x
			    special_type_slot_1 = lmg_defense_turret
			    special_type_slot_2 = dive_brakes_small
		    }
        }
    }
        
        # Transfer the specific variant to the buyer
        ROOT = {
            add_equipment_to_stockpile = {
                type = small_plane_cas_airframe_1
                variant_name = "Kawasaki Ki-32"
                amount = 30
                producer = JAP
            }
        }
    }
}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_cas_improved = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        JAP = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 5
        JAP = {
            has_tech = improved_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 6
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                create_equipment_variant = {
                    name = "Mitsubishi Ki-51"  
                    type = small_plane_cas_airframe_2 
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_1_3x
                        special_type_slot_1 = armor_plate_small
                        special_type_slot_2 = fuel_tanks_small
						special_type_slot_3 = drop_tanks
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_2
                    variant_name = "Mitsubishi Ki-51" 
                    amount = 30
                    producer = JAP
                }
            }
        }
    }

    ai_will_do = {
        factor = 0  # Disable AI from using this decision
    }
}
	
	purchase_japanese_cas_advanced = {  # No tech and/or variant in 1936
    icon = GFX_decision_generic_air
    
    fire_only_once = no
    
    days_remove = 50
    days_re_enable = 50
    
    cost = 30

    visible = {
        JAP = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_small_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        JAP = {
            has_tech = advanced_small_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                create_equipment_variant = {
                    name = "Kawasaki Ki-66"  
                    type = small_plane_cas_airframe_3 
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = bomb_locks
                        engine_type_slot = engine_2_4x
						special_type_slot_1 = empty

                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = small_plane_cas_airframe_3
                    variant_name = "Kawasaki Ki-66" 
                    amount = 30
                    producer = JAP
                }
            }
        }
    }
	
	ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_medium_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 20

		visible = { 
			JAP = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 1
		}
		
		modifier = {
			civilian_factory_use = 2
		}
		
		remove_effect = {
		    IF = {
				limit = { has_dlc = "By Blood Alone"}
			    add_equipment_to_stockpile = {
						type = medium_plane_airframe_0 
						amount = 25
						producer = JAP
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_medium_basic = { # Needs Variant Added

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 30

		visible = { 
			JAP = {
				has_opinion = {
					target = ROOT
					value > 30
				}
				NOT = { has_war_with = ROOT }
				exists = yes
				has_tech = basic_medium_airframe
			}
		}
		
		available = {
			has_capitulated = no
			num_of_civilian_factories_available_for_projects > 4
			JAP {
			has_tech = basic_medium_airframe
			}
		}
		
		modifier = {
			civilian_factory_use = 5
		}
		
		remove_effect = {
    if = {
        limit = { has_dlc = "By Blood Alone" }
        
        # To Ensure the variant is created for the Japanese
        JAP = {
            create_equipment_variant = {
                name = "Mitsubishi Ki-21"
                type = medium_plane_airframe_1
                creator = JAP
            modules = {
			    fixed_main_weapon_slot = bomb_locks
			    engine_type_slot = engine_2_1x
			    special_type_slot_1 = lmg_defense_turret
			    special_type_slot_2 = dive_brakes_small
		    }
        }
    }
        
        # Transfer the specific variant to the buyer
        ROOT = {
            add_equipment_to_stockpile = {
                type = medium_plane_airframe_1
                variant_name = "Mitsubishi Ki-21"
                amount = 25
                producer = JAP
            }
        }
    }
}

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_medium_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        JAP = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        JAP = {
            has_tech = improved_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Mitsubishi Ki-49"  
                    type = medium_plane_airframe_2 
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_3x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_2
                    variant_name = "Mitsubishi Ki-49" 
                    amount = 25
                    producer = JAP
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_medium_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		visible = {
        JAP = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_medium_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        JAP = {
            has_tech = advanced_medium_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Nakajima Ki-67"  
                    type = medium_plane_airframe_3
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = medium_bomb_bay
						bomb_bay_slot = medium_bomb_bay
						fixed_secondary_weapon_slot = bomb_locks
						external_mount_slot = air_torpedoe_2
                        engine_type_slot = engine_2_4x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = medium_plane_airframe_3
                    variant_name = "Nakajima Ki-67" 
                    amount = 25
                    producer = JAP
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_large_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

		 visible = {
        JAP = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = iw_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        JAP = {
            has_tech = iw_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Kawasaki Type 87"  
                    type = large_plane_airframe_0 
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_0
                    variant_name = "Kawasaki Type 87" 
                    amount = 25
                    producer = JAP
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_large_basic_i = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        JAP = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = basic_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        JAP = {
            has_tech = basic_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Mitsubishi Ki-20"  
                    type = large_plane_airframe_1 
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_2x
                        special_type_slot_1 = light_mg_2x
                        special_type_slot_2 = light_mg_4x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_1
                    variant_name = "Mitsubishi Ki-20" 
                    amount = 20
                    producer = JAP
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_large_improved = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        JAP = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = improved_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        JAP = {
            has_tech = improved_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Nakajima Ki-49 Donryu"  
                    type = large_plane_airframe_2 
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
                        engine_type_slot = engine_4_3x
                        special_type_slot_1 = heavy_mg_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_2
                    variant_name = "Nakajima Ki-49 Donryu" 
                    amount = 20
                    producer = JAP
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
	purchase_japanese_large_advanced = {

		icon = GFX_decision_generic_air
		
		fire_only_once = no
		
		days_remove = 50
		days_re_enable = 50
		
		cost = 40

    visible = {
        JAP = {
            exists = yes
            has_opinion = {
                target = ROOT
                value > 30
            }
            NOT = { has_war_with = ROOT }
            has_tech = advanced_large_airframe
        }
    }

    available = {
        has_capitulated = no
        num_of_civilian_factories_available_for_projects > 6
        JAP = {
            has_tech = advanced_large_airframe
        }
    }

    modifier = {
        civilian_factory_use = 7
    }

    remove_effect = {
        if = {
            limit = {
                has_dlc = "By Blood Alone"
            }
            
            JAP = {
                # Create the variant for Germany only
                create_equipment_variant = {
                    name = "Nakajima G8N Renzan"  
                    type = large_plane_airframe_3 
                    creator = JAP  
                    modules = {
                        fixed_main_weapon_slot = large_bomb_bay
						bomb_bay_slot = large_bomb_bay
						fixed_secondary_weapon_slot = large_bomb_bay
                        engine_type_slot = engine_4_4x
                        special_type_slot_1 = cannon_defense_turret_2x
                        special_type_slot_2 = light_mg_2x
                    }
                }
            }

            ROOT = {
                add_equipment_to_stockpile = {
                    type = large_plane_airframe_3
                    variant_name = "Nakajima G8N Renzan" 
                    amount = 20
                    producer = JAP
                }
            }
        }
    }

		ai_will_do = {
			factor = 0
		}
	}
	
}