rq_ap_ext_defaults = {
if = {
limit = { OR = { NOT = { has_variable = rq_ap_gx_space } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_gx_space = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_land_CAT_military } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_land_CAT_military = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_land_CAT_heavy_weapons } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_land_CAT_heavy_weapons = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_land_CAT_armor } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_land_CAT_armor = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_land_CAT_infantry } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_land_CAT_infantry = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_land_CAT_tanks } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_land_CAT_tanks = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_land_CAT_missiles } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_land_CAT_missiles = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_land_CAT_anti_air } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_land_CAT_anti_air = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_land_CAT_armored_fighting_vehicles } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_land_CAT_armored_fighting_vehicles = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_air_CAT_military } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_air_CAT_military = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_air_CAT_aircraft } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_air_CAT_aircraft = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_air_CAT_helicopters } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_air_CAT_helicopters = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_air_CAT_helicopter_modules } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_air_CAT_helicopter_modules = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_air_CAT_air_modules } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_air_CAT_air_modules = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_air_CAT_medium_aircraft } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_air_CAT_medium_aircraft = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_air_CAT_air_weapons } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_air_CAT_air_weapons = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_air_CAT_light_aircraft } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_air_CAT_light_aircraft = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_space_CAT_military } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_space_CAT_military = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_space_CAT_space } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_space_CAT_space = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_space_CAT_satellites } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_space_CAT_satellites = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_space_CAT_orbital_launch_vehicles } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_space_CAT_orbital_launch_vehicles = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_space_CAT_communication_satellites } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_space_CAT_communication_satellites = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_space_CAT_navigation_satellites } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_space_CAT_navigation_satellites = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_space_CAT_reconnaissance_satellites } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_space_CAT_reconnaissance_satellites = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_space_CAT_anti_satellite_weapons } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_space_CAT_anti_satellite_weapons = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_space_oth } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_space_oth = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_ind_CAT_civilian } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_ind_CAT_civilian = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_ind_CAT_industry } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_ind_CAT_industry = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_ind_CAT_electronics } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_ind_CAT_electronics = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_ind_CAT_energy } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_ind_CAT_energy = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_ind_CAT_microchips } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_ind_CAT_microchips = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_ind_CAT_information_technology } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_ind_CAT_information_technology = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_ind_CAT_internet } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_ind_CAT_internet = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_ind_CAT_genetics } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_ind_CAT_genetics = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_naval_CAT_military } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_naval_CAT_military = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_naval_CAT_naval } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_naval_CAT_naval = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_naval_CAT_naval_modules } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_naval_CAT_naval_modules = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_naval_CAT_surface_ships } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_naval_CAT_surface_ships = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_naval_CAT_naval_armament } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_naval_CAT_naval_armament = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_naval_CAT_naval_missiles } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_naval_CAT_naval_missiles = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_naval_CAT_military_electronics } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_naval_CAT_military_electronics = 1 }
rq_ap_sub_calc = yes
}
if = {
limit = { OR = { NOT = { has_variable = rq_ap_s_naval_CAT_naval_electronics } NOT = { check_variable = { rq_ap_subv = 1 } } } }
set_variable = { rq_ap_s_naval_CAT_naval_electronics = 1 }
rq_ap_sub_calc = yes
}
}
rq_ap_ext_change = {
if = { limit = { check_variable = { rq_apk = 201 } } add_to_variable = { rq_ap_gx_space = rq_apd } clamp_variable = { var = rq_ap_gx_space min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 301 } } add_to_variable = { rq_ap_s_land_CAT_military = rq_apd } clamp_variable = { var = rq_ap_s_land_CAT_military min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 302 } } add_to_variable = { rq_ap_s_land_CAT_heavy_weapons = rq_apd } clamp_variable = { var = rq_ap_s_land_CAT_heavy_weapons min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 303 } } add_to_variable = { rq_ap_s_land_CAT_armor = rq_apd } clamp_variable = { var = rq_ap_s_land_CAT_armor min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 304 } } add_to_variable = { rq_ap_s_land_CAT_infantry = rq_apd } clamp_variable = { var = rq_ap_s_land_CAT_infantry min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 305 } } add_to_variable = { rq_ap_s_land_CAT_tanks = rq_apd } clamp_variable = { var = rq_ap_s_land_CAT_tanks min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 306 } } add_to_variable = { rq_ap_s_land_CAT_missiles = rq_apd } clamp_variable = { var = rq_ap_s_land_CAT_missiles min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 307 } } add_to_variable = { rq_ap_s_land_CAT_anti_air = rq_apd } clamp_variable = { var = rq_ap_s_land_CAT_anti_air min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 308 } } add_to_variable = { rq_ap_s_land_CAT_armored_fighting_vehicles = rq_apd } clamp_variable = { var = rq_ap_s_land_CAT_armored_fighting_vehicles min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 309 } } add_to_variable = { rq_ap_s_air_CAT_military = rq_apd } clamp_variable = { var = rq_ap_s_air_CAT_military min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 310 } } add_to_variable = { rq_ap_s_air_CAT_aircraft = rq_apd } clamp_variable = { var = rq_ap_s_air_CAT_aircraft min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 311 } } add_to_variable = { rq_ap_s_air_CAT_helicopters = rq_apd } clamp_variable = { var = rq_ap_s_air_CAT_helicopters min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 312 } } add_to_variable = { rq_ap_s_air_CAT_helicopter_modules = rq_apd } clamp_variable = { var = rq_ap_s_air_CAT_helicopter_modules min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 313 } } add_to_variable = { rq_ap_s_air_CAT_air_modules = rq_apd } clamp_variable = { var = rq_ap_s_air_CAT_air_modules min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 314 } } add_to_variable = { rq_ap_s_air_CAT_medium_aircraft = rq_apd } clamp_variable = { var = rq_ap_s_air_CAT_medium_aircraft min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 315 } } add_to_variable = { rq_ap_s_air_CAT_air_weapons = rq_apd } clamp_variable = { var = rq_ap_s_air_CAT_air_weapons min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 316 } } add_to_variable = { rq_ap_s_air_CAT_light_aircraft = rq_apd } clamp_variable = { var = rq_ap_s_air_CAT_light_aircraft min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 317 } } add_to_variable = { rq_ap_s_space_CAT_military = rq_apd } clamp_variable = { var = rq_ap_s_space_CAT_military min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 318 } } add_to_variable = { rq_ap_s_space_CAT_space = rq_apd } clamp_variable = { var = rq_ap_s_space_CAT_space min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 319 } } add_to_variable = { rq_ap_s_space_CAT_satellites = rq_apd } clamp_variable = { var = rq_ap_s_space_CAT_satellites min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 320 } } add_to_variable = { rq_ap_s_space_CAT_orbital_launch_vehicles = rq_apd } clamp_variable = { var = rq_ap_s_space_CAT_orbital_launch_vehicles min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 321 } } add_to_variable = { rq_ap_s_space_CAT_communication_satellites = rq_apd } clamp_variable = { var = rq_ap_s_space_CAT_communication_satellites min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 322 } } add_to_variable = { rq_ap_s_space_CAT_navigation_satellites = rq_apd } clamp_variable = { var = rq_ap_s_space_CAT_navigation_satellites min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 323 } } add_to_variable = { rq_ap_s_space_CAT_reconnaissance_satellites = rq_apd } clamp_variable = { var = rq_ap_s_space_CAT_reconnaissance_satellites min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 324 } } add_to_variable = { rq_ap_s_space_CAT_anti_satellite_weapons = rq_apd } clamp_variable = { var = rq_ap_s_space_CAT_anti_satellite_weapons min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 325 } } add_to_variable = { rq_ap_s_space_oth = rq_apd } clamp_variable = { var = rq_ap_s_space_oth min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 326 } } add_to_variable = { rq_ap_s_ind_CAT_civilian = rq_apd } clamp_variable = { var = rq_ap_s_ind_CAT_civilian min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 327 } } add_to_variable = { rq_ap_s_ind_CAT_industry = rq_apd } clamp_variable = { var = rq_ap_s_ind_CAT_industry min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 328 } } add_to_variable = { rq_ap_s_ind_CAT_electronics = rq_apd } clamp_variable = { var = rq_ap_s_ind_CAT_electronics min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 329 } } add_to_variable = { rq_ap_s_ind_CAT_energy = rq_apd } clamp_variable = { var = rq_ap_s_ind_CAT_energy min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 330 } } add_to_variable = { rq_ap_s_ind_CAT_microchips = rq_apd } clamp_variable = { var = rq_ap_s_ind_CAT_microchips min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 331 } } add_to_variable = { rq_ap_s_ind_CAT_information_technology = rq_apd } clamp_variable = { var = rq_ap_s_ind_CAT_information_technology min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 332 } } add_to_variable = { rq_ap_s_ind_CAT_internet = rq_apd } clamp_variable = { var = rq_ap_s_ind_CAT_internet min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 333 } } add_to_variable = { rq_ap_s_ind_CAT_genetics = rq_apd } clamp_variable = { var = rq_ap_s_ind_CAT_genetics min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 334 } } add_to_variable = { rq_ap_s_naval_CAT_military = rq_apd } clamp_variable = { var = rq_ap_s_naval_CAT_military min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 335 } } add_to_variable = { rq_ap_s_naval_CAT_naval = rq_apd } clamp_variable = { var = rq_ap_s_naval_CAT_naval min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 336 } } add_to_variable = { rq_ap_s_naval_CAT_naval_modules = rq_apd } clamp_variable = { var = rq_ap_s_naval_CAT_naval_modules min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 337 } } add_to_variable = { rq_ap_s_naval_CAT_surface_ships = rq_apd } clamp_variable = { var = rq_ap_s_naval_CAT_surface_ships min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 338 } } add_to_variable = { rq_ap_s_naval_CAT_naval_armament = rq_apd } clamp_variable = { var = rq_ap_s_naval_CAT_naval_armament min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 339 } } add_to_variable = { rq_ap_s_naval_CAT_naval_missiles = rq_apd } clamp_variable = { var = rq_ap_s_naval_CAT_naval_missiles min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 340 } } add_to_variable = { rq_ap_s_naval_CAT_military_electronics = rq_apd } clamp_variable = { var = rq_ap_s_naval_CAT_military_electronics min = 0 max = 3 } }
if = { limit = { check_variable = { rq_apk = 341 } } add_to_variable = { rq_ap_s_naval_CAT_naval_electronics = rq_apd } clamp_variable = { var = rq_ap_s_naval_CAT_naval_electronics min = 0 max = 3 } }
}
