offmap_buildings_categorie = {

	offmap_buildings_decision_add_one  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = 1 } }
			add_offsite_building = { type = industrial_complex level = 1 }
		}
	}
	
	offmap_buildings_decision_add_five  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = 5 } }
			add_offsite_building = { type = industrial_complex level = 5 }
		}
	}
	
	offmap_buildings_decision_add_ten  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = 10 } }
			add_offsite_building = { type = industrial_complex level = 10 }
		}
	}
	
	offmap_buildings_decision_add_fifty  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = 50 } }
			add_offsite_building = { type = industrial_complex level = 50 }
		}
	}
	
	offmap_buildings_decision_add_two_hundred  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = 200 } }
			add_offsite_building = { type = industrial_complex level = 200 }
		}
	}
		
	offmap_buildings_decision_add_thousand  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = 1000 } }
			add_offsite_building = { type = industrial_complex level = 1000 }
		}
	}
	
	offmap_buildings_decision_minus_one  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_civ_amount > 0 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = -1 } }
			add_offsite_building = { type = industrial_complex level = -1 }
		}
	}
	
	offmap_buildings_decision_minus_five  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_civ_amount > 4 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = -5 } }
			add_offsite_building = { type = industrial_complex level = -5 }
		}
	}
	
	offmap_buildings_decision_minus_ten  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_civ_amount > 9 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = -10 } }
			add_offsite_building = { type = industrial_complex level = -10 }
		}
	}
	
	offmap_buildings_decision_minus_fifty  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_civ_amount > 49 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = -50 } }
			add_offsite_building = { type = industrial_complex level = -50 }
		}
	}
	
	offmap_buildings_decision_minus_two_hundred  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_civ_amount > 199 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = -200 } }
			add_offsite_building = { type = industrial_complex level = -200 }
		}}
	
	offmap_buildings_decision_minus_thousand  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_civ_amount > 999 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_civ_amount value = -1000 } }
			add_offsite_building = { type = industrial_complex level = -1000 }
		}
	}
	
	offmap_buildings_decision_remove_everything  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_civ_amount > 0 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { set_temp_variable = { offmap_civ_amount_temp = offmap_civ_amount } multiply_temp_variable = { offmap_civ_amount_temp = -1 } }
			ROOT = { set_variable = { var = offmap_civ_amount value = 0 } }
			add_offsite_building = { type = industrial_complex level = offmap_civ_amount_temp }
		}
	}
}

offmap_arms_categorie = {

	offmap_arms_decision_add_one  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = 1 } }
			add_offsite_building = { type = arms_factory level = 1 }
		}
	}
	
	offmap_arms_decision_add_five  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = 5 } }
			add_offsite_building = { type = arms_factory level = 5 }
		}
	}
	
	offmap_arms_decision_add_ten  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = 10 } }
			add_offsite_building = { type = arms_factory level = 10 }
		}
	}
	
	offmap_arms_decision_add_fifty  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = 50 } }
			add_offsite_building = { type = arms_factory level = 50 }
		}
	}
	
	offmap_arms_decision_add_two_hundred  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = 200 } }
			add_offsite_building = { type = arms_factory level = 200 }
		}
	}
	
	offmap_arms_decision_add_thousand  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = 1000 } }
			add_offsite_building = { type = arms_factory level = 1000 }
		}
	}
	
	offmap_arms_decision_minus_one  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_arms_amount > 0 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = -1 } }
			add_offsite_building = { type = arms_factory level = -1 }
		}
	}
	
	offmap_arms_decision_minus_five  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_arms_amount > 4 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = -5 } }
			add_offsite_building = { type = arms_factory level = -5 }
		}
	}
	
	offmap_arms_decision_minus_ten  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_arms_amount > 9 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = -10 } }
			add_offsite_building = { type = arms_factory level = -10 }
		}
	}
	
	offmap_arms_decision_minus_fifty  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_arms_amount > 49 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = -50 } }
			add_offsite_building = { type = arms_factory level = -50 }
		}
	}
	
	offmap_arms_decision_minus_two_hundred  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_arms_amount > 199 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = -200 } }
			add_offsite_building = { type = arms_factory level = -200 }
		}
	}
	
	offmap_arms_decision_minus_thousand  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_arms_amount > 999 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_arms_amount value = -1000 } }
			add_offsite_building = { type = arms_factory level = -1000 }
		}
	}
	
	offmap_arms_decision_remove_everything  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_arms_amount > 0 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { set_temp_variable = { offmap_arms_amount_temp = offmap_arms_amount } multiply_temp_variable = { offmap_arms_amount_temp = -1 } }
			ROOT = { set_variable = { var = offmap_arms_amount value = 0 } }
			add_offsite_building = { type = arms_factory level = offmap_arms_amount_temp }
		}
	}
}

offmap_dockyards_categorie = {

	offmap_dockyard_decision_add_one  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = 1 } }
			add_offsite_building = { type = dockyard level = 1 }
		}
	}
	
	offmap_dockyard_decision_add_five  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = 5 } }
			add_offsite_building = { type= dockyard level = 5 }
		}
	}
	
	offmap_dockyard_decision_add_ten  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = 10 } }
			add_offsite_building = { type= dockyard level = 10 }
		}
	}
	
	offmap_dockyard_decision_add_fifty  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = 50 } }
			add_offsite_building = { type= dockyard level = 50 }
		}
	}
	
	offmap_dockyard_decision_add_two_hundred  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = 200 } }
			add_offsite_building = { type= dockyard level = 200 }
		}
	}
	
	offmap_dockyard_decision_add_thousand  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = 1000 } }
			add_offsite_building = { type= dockyard level = 1000 }
		}
	}
	
	offmap_dockyard_decision_minus_one  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_dockyard_amount > 0 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = -1 } }
			add_offsite_building = { type= dockyard level = -1 }
		}
	}
	
	offmap_dockyard_decision_minus_five  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_dockyard_amount > 4 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = -5 } }
			add_offsite_building = { type= dockyard level = -5 }
		}
	}
	
	offmap_dockyard_decision_minus_ten  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_dockyard_amount > 9 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = -10 } }
			add_offsite_building = { type= dockyard level = -10 }
		}
	}
	
	offmap_dockyard_decision_minus_fifty  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_dockyard_amount > 49 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = -50 } }
			add_offsite_building = { type= dockyard level = -50 }
		}
	}
	
	offmap_dockyard_decision_minus_two_hundred  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_dockyard_amount > 199 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = -200 } }
			add_offsite_building = { type= dockyard level = -200 }
		}
	}
	
	offmap_dockyard_decision_minus_thousand  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_dockyard_amount > 999 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { add_to_variable = { var = offmap_dockyard_amount value = -1000 } }
			add_offsite_building = { type= dockyard level = -1000 }
		}
	}
	
	offmap_dockyard_decision_remove_everything  = {
		ai_will_do = {
			factor = 0
		}
		allowed = {
			
		}
		available = {
			ROOT = { check_variable = { offmap_dockyard_amount > 0 } }
		}
		visible = {
			
		}
		complete_effect = {
			ROOT = { set_temp_variable = { offmap_dockyard_amount_temp = offmap_dockyard_amount } multiply_temp_variable = { offmap_dockyard_amount_temp = -1 } }
			ROOT = { set_variable = { var = offmap_dockyard_amount value = 0 } }
			add_offsite_building = { type= dockyard level = offmap_dockyard_amount_temp }
		}
	}
}