#written by ahmex the decision master

EP_inf_cat = {
	
	#Infantry Decision Category
	
	EP_infantry_close = { #closes infantry tab
	
		icon = GFX_decision_generic_prepare_civil_war
	
		visible = {
			has_country_flag = inf_cat_open
		}
		
		available = {
			NOT = { has_country_flag = small_arms_order_active }
			NOT = { has_country_flag = cc_equi_order_active }
			NOT = { has_country_flag = anti_tank_order_active }
			NOT = { has_country_flag = anti_air_order_active }
		}
		
		complete_effect = {
			clr_country_flag = inf_cat_open
		}
	}
	
	#Infantry subategories
	
	#Infantry weapons / Small Arms
	
	EP_small_arms_open = { #will lead to country selection for small arms
	
		icon = GFX_decision_generic_prepare_civil_war
	
		visible = {
			has_country_flag = inf_cat_open
			hidden_trigger = {
				NOT = { has_country_flag = show_small_arms }
			}
		}
		
		complete_effect = {
			set_country_flag = show_small_arms
		}
	}
	
	EP_small_arms_close = { #cant close it if one your orders havent delivered yet
	
		icon = GFX_decision_generic_prepare_civil_war
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
		}
		
		available = {
			NOT = { has_country_flag = small_arms_order_active }
		}
		
		complete_effect = {
			clr_country_flag = show_small_arms
		}
	}
	
	#Belgium
	
	EP_buy_BEL_small_arms_1 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = BEL
			has_global_flag = sell_BEL_infantry_weapons2
			ROOT = {
				NOT = {
					tag = BEL
				}
			}
		}
		
		icon = belgium
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.1 }
		}
		custom_cost_text = cost_0_1
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.1 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons2 #1995
				amount = 1200
				producer = BEL
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_BEL_small_arms_2 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = BEL
			has_global_flag = sell_BEL_infantry_weapons3
			ROOT = {
				NOT = {
					tag = BEL
				}
			}
		}
		
		icon = belgium
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.125 }
		}
		custom_cost_text = cost_0_125
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.125 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons3 #1995 FN F2000
				amount = 1200
				producer = BEL
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_BEL_small_arms_3 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = BEL
			has_global_flag = sell_BEL_infantry_weapons4
			ROOT = {
				NOT = {
					tag = BEL
				}
			}
		}
		
		icon = belgium
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.15 }
		}
		custom_cost_text = cost_0_15
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.15 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons4 #2005 FN SCAR
				amount = 1200
				producer = BEL
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_BEL_small_arms_4 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = BEL
			has_global_flag = sell_BEL_infantry_weapons5
			ROOT = {
				NOT = {
					tag = BEL
				}
			}
		}
		
		icon = belgium
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.175 }
		}
		custom_cost_text = cost_0_175
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.175 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons5 #2015
				amount = 1200
				producer = BEL
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_BEL_small_arms_5 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = BEL
			has_global_flag = sell_BEL_infantry_weapons6
			ROOT = {
				NOT = {
					tag = BEL
				}
			}
		}
		
		icon = belgium
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.2 }
		}
		custom_cost_text = cost_0_2
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.2 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons6 #2025
				amount = 1200
				producer = BEL
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_BEL_small_arms_6 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = BEL
			has_global_flag = sell_BEL_infantry_weapons7
			ROOT = {
				NOT = {
					tag = BEL
				}
			}
		}
		
		icon = belgium
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.25 }
		}
		custom_cost_text = cost_0_25
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.25 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons7 #2035
				amount = 1200
				producer = BEL
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	#Germany
	
	EP_buy_GER_small_arms_1 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = GER
			has_global_flag = sell_GER_infantry_weapons3
			ROOT = {
				NOT = {
					tag = GER
				}
			}
		}
		
		icon = germany
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.125 }
		}
		custom_cost_text = cost_0_125
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.125 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons3 #1995 FN F2000
				amount = 1200
				producer = GER
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_GER_small_arms_2 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = GER
			has_global_flag = sell_GER_infantry_weapons4
			ROOT = {
				NOT = {
					tag = GER
				}
			}
		}
		
		icon = germany
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.15 }
		}
		custom_cost_text = cost_0_15
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.15 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons4 #2005 FN SCAR
				amount = 1200
				producer = GER
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_GER_small_arms_3 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = GER
			has_global_flag = sell_GER_infantry_weapons5
			ROOT = {
				NOT = {
					tag = GER
				}
			}
		}
		
		icon = germany
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.175 }
		}
		custom_cost_text = cost_0_175
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.175 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons5 #2015
				amount = 1200
				producer = GER
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_GER_small_arms_4 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = GER
			has_global_flag = sell_GER_infantry_weapons6
			ROOT = {
				NOT = {
					tag = GER
				}
			}
		}
		
		icon = germany
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.2 }
		}
		custom_cost_text = cost_0_2
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.2 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons6 #2025
				amount = 1200
				producer = GER
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_GER_small_arms_5 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = GER
			has_global_flag = sell_GER_infantry_weapons7
			ROOT = {
				NOT = {
					tag = GER
				}
			}
		}
		
		icon = germany
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.25 }
		}
		custom_cost_text = cost_0_25
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.25 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons7 #2035
				amount = 1200
				producer = GER
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	#Israel
	
	EP_buy_ISR_small_arms_1 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_infantry_weapons4
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.15 }
		}
		custom_cost_text = cost_0_15
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.15 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons4 #2005 ACR
				amount = 1200
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_ISR_small_arms_2 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_infantry_weapons5
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.175 }
		}
		custom_cost_text = cost_0_175
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.175 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons5 #2015 MARS-L
				amount = 1200
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_ISR_small_arms_3 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_infantry_weapons6
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.2 }
		}
		custom_cost_text = cost_0_2
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.2 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons6 #2025 Textron LSAT
				amount = 1200
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_ISR_small_arms_4 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_infantry_weapons7
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.25 }
		}
		custom_cost_text = cost_0_25
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.25 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons7 #2035 Titan APLL
				amount = 1200
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	#Russia
	
	EP_buy_SOV_small_arms_1 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_infantry_weapons3
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.1 }
		}
		custom_cost_text = cost_0_1
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.1 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons3 #1995 FN F2000
				amount = 1200
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_SOV_small_arms_2 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_infantry_weapons4
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.12 }
		}
		custom_cost_text = cost_0_12
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.12 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons4 #2005 FN SCAR
				amount = 1200
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_SOV_small_arms_3 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_infantry_weapons5
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.14 }
		}
		custom_cost_text = cost_0_14
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.14 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons5 #2015
				amount = 1200
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_SOV_small_arms_4 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_infantry_weapons6
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.16 }
		}
		custom_cost_text = cost_0_16
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.16 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons6 #2025
				amount = 1200
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_SOV_small_arms_5 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_infantry_weapons7
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.2 }
		}
		custom_cost_text = cost_0_2
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.2 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons7 #2035
				amount = 1200
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	#USA
	
	EP_buy_USA_small_arms_1 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_infantry_weapons3
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.125 }
		}
		custom_cost_text = cost_0_125
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.125 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons3 #1995 m4 carbine
				amount = 1200
				producer = USA
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_USA_small_arms_2 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_infantry_weapons4
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.15 }
		}
		custom_cost_text = cost_0_15
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.15 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons4 #2005 ACR
				amount = 1200
				producer = USA
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_USA_small_arms_3 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_infantry_weapons5
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.175 }
		}
		custom_cost_text = cost_0_175
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.175 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons5 #2015 MARS-L
				amount = 1200
				producer = USA
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_USA_small_arms_4 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_infantry_weapons6
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.2 }
		}
		custom_cost_text = cost_0_2
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.2 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons6 #2025 Textron LSAT
				amount = 1200
				producer = USA
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	EP_buy_USA_small_arms_5 = {
	
		visible = {
			has_country_flag = show_small_arms
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_infantry_weapons7
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 25
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.25 }
		}
		custom_cost_text = cost_0_25
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.25 }
				set_country_flag = small_arms_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = infantry_weapons7 #2035 Titan APLL
				amount = 1200
				producer = USA
			}
			hidden_effect = {
				set_country_flag = small_arms_delivered
				clr_country_flag = small_arms_order_active
			}
		}
	}
	
	#end of small arms
	
	#Command Control equipment
	
	EP_cc_equi_open = { #will lead to country selection for small arms
	
		icon = GFX_decision_generic_prepare_civil_war
	
		visible = {
			has_country_flag = inf_cat_open
			hidden_trigger = {
				NOT = { has_country_flag = show_cc_equi }
			}
		}
		
		complete_effect = {
			set_country_flag = show_cc_equi
		}
	}
	
	EP_cc_equi_close = { #cant close it if one your orders havent delivered yet
	
		icon = GFX_decision_generic_prepare_civil_war
	
		visible = {
			has_country_flag = inf_cat_open
			has_country_flag = show_cc_equi
		}
		
		available = {
			NOT = { has_country_flag = cc_equi_order_active }
		}
		
		complete_effect = {
			clr_country_flag = show_cc_equi
		}
	}
	
	#China
	
	EP_buy_CHI_cc_equi_1 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_cc_equi_1
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment1
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_CHI_cc_equi_2 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_cc_equi_2
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment2
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_CHI_cc_equi_3 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_cc_equi_3
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment3
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_CHI_cc_equi_4 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_cc_equi_4
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment4
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_CHI_cc_equi_5 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_cc_equi_5
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment5
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_CHI_cc_equi_6 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_cc_equi_6
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment6
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_CHI_cc_equi_7 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_cc_equi_7
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment7
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	#Israel
	
	EP_buy_ISR_cc_equi_1 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_cc_equi_1
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment1
				amount = 1000
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_ISR_cc_equi_2 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_cc_equi_2
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment2
				amount = 1000
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_ISR_cc_equi_3 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_cc_equi_3
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment3
				amount = 1000
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_ISR_cc_equi_4 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_cc_equi_4
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment4
				amount = 1000
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_ISR_cc_equi_5 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_cc_equi_5
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment5
				amount = 1000
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_ISR_cc_equi_6 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_cc_equi_6
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment6
				amount = 1000
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_ISR_cc_equi_7 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_cc_equi_7
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment7
				amount = 1000
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	#Norway
	
	EP_buy_NOR_cc_equi_1 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = NOR
			has_global_flag = sell_NOR_cc_equi_1
			ROOT = {
				NOT = {
					tag = NOR
				}
			}
		}
		
		icon = norway
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment1
				amount = 1000
				producer = NOR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_NOR_cc_equi_2 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = NOR
			has_global_flag = sell_NOR_cc_equi_2
			ROOT = {
				NOT = {
					tag = NOR
				}
			}
		}
		
		icon = norway
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment2
				amount = 1000
				producer = NOR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_NOR_cc_equi_3 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = NOR
			has_global_flag = sell_NOR_cc_equi_3
			ROOT = {
				NOT = {
					tag = NOR
				}
			}
		}
		
		icon = norway
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment3
				amount = 1000
				producer = NOR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_NOR_cc_equi_4 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = NOR
			has_global_flag = sell_NOR_cc_equi_4
			ROOT = {
				NOT = {
					tag = NOR
				}
			}
		}
		
		icon = norway
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment4
				amount = 1000
				producer = NOR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_NOR_cc_equi_5 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = NOR
			has_global_flag = sell_NOR_cc_equi_5
			ROOT = {
				NOT = {
					tag = NOR
				}
			}
		}
		
		icon = norway
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment5
				amount = 1000
				producer = NOR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_NOR_cc_equi_6 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = NOR
			has_global_flag = sell_NOR_cc_equi_6
			ROOT = {
				NOT = {
					tag = NOR
				}
			}
		}
		
		icon = norway
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment6
				amount = 1000
				producer = NOR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_NOR_cc_equi_7 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = NOR
			has_global_flag = sell_NOR_cc_equi_7
			ROOT = {
				NOT = {
					tag = NOR
				}
			}
		}
		
		icon = norway
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment7
				amount = 1000
				producer = NOR
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	#USA
	
	EP_buy_USA_cc_equi_1 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_cc_equi_1
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment1
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_USA_cc_equi_2 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_cc_equi_2
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment2
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_USA_cc_equi_3 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_cc_equi_3
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment3
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_USA_cc_equi_4 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_cc_equi_4
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment4
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_USA_cc_equi_5 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_cc_equi_5
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment5
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_USA_cc_equi_6 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_cc_equi_6
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment6
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	EP_buy_USA_cc_equi_7 = {
	
		visible = {
			has_country_flag = show_cc_equi
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_cc_equi_7
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = cc_equi_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = command_control_equipment7
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = cc_equi_delivered
				clr_country_flag = cc_equi_order_active
			}
		}
	}
	
	#end of Command Control equipment
	#anti air
	
	EP_anti_air_open = {
	
		icon = GFX_decision_generic_prepare_civil_war
	
		visible = {
			has_country_flag = inf_cat_open
			hidden_trigger = {
				NOT = { has_country_flag = show_anti_air }
			}
		}
		
		complete_effect = {
			set_country_flag = show_anti_air
		}
	}
	
	EP_anti_air_close = { #cant close it if one your orders havent delivered yet
	
		icon = GFX_decision_generic_prepare_civil_war
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
		}
		
		available = {
			NOT = { has_country_flag = anti_air_order_active }
		}
		
		complete_effect = {
			clr_country_flag = show_anti_air
		}
	}
	
	#China
	
	EP_buy_CHI_anti_air_1 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_anti_air_1
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_1
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_CHI_anti_air_2 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_anti_air_2
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_2
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_CHI_anti_air_3 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_anti_air_3
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_3
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_CHI_anti_air_4 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_anti_air_4
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_4
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	#England
	
	EP_buy_ENG_anti_air_1 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = ENG
			has_global_flag = sell_ENG_anti_air_1
			ROOT = {
				NOT = {
					tag = ENG
				}
			}
		}
		
		icon = uk
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_1
				amount = 1000
				producer = ENG
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_ENG_anti_air_2 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = ENG
			has_global_flag = sell_ENG_anti_air_2
			ROOT = {
				NOT = {
					tag = ENG
				}
			}
		}
		
		icon = uk
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_2
				amount = 1000
				producer = ENG
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_ENG_anti_air_3 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = ENG
			has_global_flag = sell_ENG_anti_air_3
			ROOT = {
				NOT = {
					tag = ENG
				}
			}
		}
		
		icon = uk
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_3
				amount = 1000
				producer = ENG
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_ENG_anti_air_4 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = ENG
			has_global_flag = sell_ENG_anti_air_4
			ROOT = {
				NOT = {
					tag = ENG
				}
			}
		}
		
		icon = uk
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_4
				amount = 1000
				producer = ENG
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	#Russia
	
	EP_buy_SOV_anti_air_1 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_anti_air_1
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_1
				amount = 1000
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_SOV_anti_air_2 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_anti_air_2
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_2
				amount = 1000
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_SOV_anti_air_3 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_anti_air_3
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_3
				amount = 1000
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_SOV_anti_air_4 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_anti_air_4
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_4
				amount = 1000
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	#USA
	
	EP_buy_USA_anti_air_1 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_anti_air_1
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_1
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_USA_anti_air_2 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_anti_air_2
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_2
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_USA_anti_air_3 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_anti_air_3
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_3
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	EP_buy_USA_anti_air_4 = {
	
		visible = {
			has_country_flag = show_anti_air
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_anti_air_4
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_air_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_air_4
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = anti_air_delivered
				clr_country_flag = anti_air_order_active
			}
		}
	}
	
	#end of anti air
	
	#anti tank
	
	EP_anti_tank_open = {
	
		icon = GFX_decision_generic_prepare_civil_war
	
		visible = {
			has_country_flag = inf_cat_open
			hidden_trigger = {
				NOT = { has_country_flag = show_anti_tank }
			}
		}
		
		complete_effect = {
			set_country_flag = show_anti_tank
		}
	}
	
	EP_anti_tank_close = { #cant close it if one your orders havent delivered yet
	
		icon = GFX_decision_generic_prepare_civil_war
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
		}
		
		available = {
			NOT = { has_country_flag = anti_tank_order_active }
		}
		
		complete_effect = {
			clr_country_flag = show_anti_tank
		}
	}
	
	#China
	
	EP_buy_CHI_anti_tank_1 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_anti_tank_1
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_1
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_CHI_anti_tank_2 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_anti_tank_2
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_2
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_CHI_anti_tank_3 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_anti_tank_3
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_3
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_CHI_anti_tank_4 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = CHI
			has_global_flag = sell_CHI_anti_tank_4
			ROOT = {
				NOT = {
					tag = CHI
				}
			}
		}
		
		icon = china
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_4
				amount = 1000
				producer = CHI
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	#England
	
	EP_buy_ENG_anti_tank_1 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = ENG
			has_global_flag = sell_ENG_anti_tank_1
			ROOT = {
				NOT = {
					tag = ENG
				}
			}
		}
		
		icon = uk
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_2
				amount = 1000
				producer = ENG
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_ENG_anti_tank_2 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = ENG
			has_global_flag = sell_ENG_anti_tank_2
			ROOT = {
				NOT = {
					tag = ENG
				}
			}
		}
		
		icon = uk
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_3
				amount = 1000
				producer = ENG
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_ENG_anti_tank_3 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = ENG
			has_global_flag = sell_ENG_anti_tank_3
			ROOT = {
				NOT = {
					tag = ENG
				}
			}
		}
		
		icon = uk
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_4
				amount = 1000
				producer = ENG
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	#France
	
	EP_buy_FRA_anti_tank_1 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = FRA
			has_global_flag = sell_FRA_anti_tank_1
			ROOT = {
				NOT = {
					tag = FRA
				}
			}
		}
		
		icon = france
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_2
				amount = 1000
				producer = FRA
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_FRA_anti_tank_2 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = FRA
			has_global_flag = sell_FRA_anti_tank_2
			ROOT = {
				NOT = {
					tag = FRA
				}
			}
		}
		
		icon = france
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_3
				amount = 1000
				producer = FRA
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_FRA_anti_tank_3 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = FRA
			has_global_flag = sell_FRA_anti_tank_3
			ROOT = {
				NOT = {
					tag = FRA
				}
			}
		}
		
		icon = france
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_4
				amount = 1000
				producer = FRA
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	#Israel
	
	EP_buy_ISR_anti_tank_1 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_anti_tank_1
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_2
				amount = 1000
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_ISR_anti_tank_2 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_anti_tank_2
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_3
				amount = 1000
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_ISR_anti_tank_3 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = ISR
			has_global_flag = sell_ISR_anti_tank_3
			ROOT = {
				NOT = {
					tag = ISR
				}
			}
		}
		
		icon = israel
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_4
				amount = 1000
				producer = ISR
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	#Russia
	
	EP_buy_SOV_anti_tank_1 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_anti_tank_1
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_2
				amount = 1000
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_SOV_anti_tank_2 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_anti_tank_2
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_3
				amount = 1000
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_SOV_anti_tank_3 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = SOV
			has_global_flag = sell_SOV_anti_tank_3
			ROOT = {
				NOT = {
					tag = SOV
				}
			}
		}
		
		icon = russia
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_4
				amount = 1000
				producer = SOV
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	#USA
	
	EP_buy_USA_anti_tank_1 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_anti_tank_1
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_2
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_USA_anti_tank_2 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_anti_tank_2
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_3
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	EP_buy_USA_anti_tank_3 = {
	
		visible = {
			has_country_flag = show_anti_tank
			has_country_flag = inf_cat_open
			country_exists = USA
			has_global_flag = sell_USA_anti_tank_3
			ROOT = {
				NOT = {
					tag = USA
				}
			}
		}
		
		icon = usa
		
		days_remove = 14
		days_re_enable = 0
		
		custom_cost_trigger = {
			check_variable = { treasury > 0.3 }
		}
		custom_cost_text = cost_0_3
		
		complete_effect = {
			hidden_effect = {
				subtract_from_variable = { treasury = 0.3 }
				set_country_flag = anti_tank_order_active
			}
		}
		remove_effect = {
			add_equipment_to_stockpile = {
				type = Anti_tank_4
				amount = 1000
				producer = USA
			}
			hidden_effect = {
				set_country_flag = anti_tank_delivered
				clr_country_flag = anti_tank_order_active
			}
		}
	}
	
	#end of anti tank
}