rq_ap_one = {
if = {
limit = { check_variable = { rq_t < 277 } }
if = {
limit = { check_variable = { rq_t < 139 } }
if = {
limit = { check_variable = { rq_t < 70 } }
if = {
limit = { check_variable = { rq_t < 35 } }
if = {
limit = { check_variable = { rq_t < 18 } }
if = {
limit = { check_variable = { rq_t < 9 } }
if = {
limit = { check_variable = { rq_t < 5 } }
if = {
limit = { check_variable = { rq_t < 3 } }
if = {
limit = { check_variable = { rq_t < 2 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 4 } }
}
else = {
if = {
limit = {
NOT = { has_tech = CAS1 }
NOT = { is_in_array = { array = rq_queue value = 4 } }
NOT = { is_in_array = { array = rq_ap_ban value = 4 } }
NOT = { is_in_array = { array = global.rq_hid value = 4 } }
OR = {
can_research = CAS1
AND = {
OR = { is_in_array = { array = rq_queue value = 226 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 4 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war_with = GER tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_cas }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 4 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 7 } }
if = {
limit = { check_variable = { rq_t < 6 } }
if = {
limit = {
NOT = { has_tech = CAS2 }
NOT = { is_in_array = { array = rq_queue value = 5 } }
NOT = { is_in_array = { array = rq_ap_ban value = 5 } }
NOT = { is_in_array = { array = global.rq_hid value = 5 } }
OR = {
can_research = CAS2
AND = {
OR = { is_in_array = { array = rq_queue value = 4 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 5 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 400 type = cas } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = GER has_war_with = SOV } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_cas }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 5 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = CAS3 }
NOT = { is_in_array = { array = rq_queue value = 6 } }
NOT = { is_in_array = { array = rq_ap_ban value = 6 } }
NOT = { is_in_array = { array = global.rq_hid value = 6 } }
OR = {
can_research = CAS3
AND = {
OR = { is_in_array = { array = rq_queue value = 5 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 6 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = cas } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = GER has_war_with = SOV } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_cas }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 6 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 8 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 13 } }
if = {
limit = { check_variable = { rq_t < 11 } }
if = {
limit = { check_variable = { rq_t < 10 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 12 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 15 } }
if = {
limit = { check_variable = { rq_t < 14 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 16 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 17 } }
}
else = {
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 26 } }
if = {
limit = { check_variable = { rq_t < 22 } }
if = {
limit = { check_variable = { rq_t < 20 } }
if = {
limit = { check_variable = { rq_t < 19 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 21 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 24 } }
if = {
limit = { check_variable = { rq_t < 23 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 25 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 30 } }
if = {
limit = { check_variable = { rq_t < 28 } }
if = {
limit = { check_variable = { rq_t < 27 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 29 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 32 } }
if = {
limit = { check_variable = { rq_t < 31 } }
if = {
limit = {
NOT = { has_tech = aa_cannon_1 }
NOT = { is_in_array = { array = rq_queue value = 30 } }
NOT = { is_in_array = { array = rq_ap_ban value = 30 } }
NOT = { is_in_array = { array = global.rq_hid value = 30 } }
OR = {
can_research = aa_cannon_1
AND = {
OR = { is_in_array = { array = rq_queue value = 34 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 30 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = basic_small_airframe has_tech = basic_medium_airframe has_tech = basic_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = SOV tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_aa_cannon_1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_can }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 30 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = aa_cannon_2 }
NOT = { is_in_array = { array = rq_queue value = 31 } }
NOT = { is_in_array = { array = rq_ap_ban value = 31 } }
NOT = { is_in_array = { array = global.rq_hid value = 31 } }
OR = {
can_research = aa_cannon_2
AND = {
OR = { is_in_array = { array = rq_queue value = 30 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 31 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_small_airframe has_tech = improved_medium_airframe has_tech = improved_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = SOV tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_aa_cannon_2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_can }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 31 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 33 } }
if = {
limit = {
NOT = { has_tech = aa_cannon_3 }
NOT = { is_in_array = { array = rq_queue value = 32 } }
NOT = { is_in_array = { array = rq_ap_ban value = 32 } }
NOT = { is_in_array = { array = global.rq_hid value = 32 } }
OR = {
can_research = aa_cannon_3
AND = {
OR = { is_in_array = { array = rq_queue value = 30 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 32 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_small_airframe has_tech = improved_medium_airframe has_tech = improved_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = SOV tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_can }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 32 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 34 } }
if = {
limit = {
NOT = { has_tech = aa_hmg }
NOT = { is_in_array = { array = rq_queue value = 33 } }
NOT = { is_in_array = { array = rq_ap_ban value = 33 } }
NOT = { is_in_array = { array = global.rq_hid value = 33 } }
OR = {
can_research = aa_hmg
AND = {
OR = { is_in_array = { array = rq_queue value = 34 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 33 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = basic_small_airframe has_tech = basic_medium_airframe has_tech = basic_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_aa_hmg }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_hmg }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 33 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = aa_lmg }
NOT = { is_in_array = { array = rq_queue value = 34 } }
NOT = { is_in_array = { array = rq_ap_ban value = 34 } }
NOT = { is_in_array = { array = global.rq_hid value = 34 } }
OR = {
can_research = aa_lmg
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 34 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_lmg }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 34 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 52 } }
if = {
limit = { check_variable = { rq_t < 43 } }
if = {
limit = { check_variable = { rq_t < 39 } }
if = {
limit = { check_variable = { rq_t < 37 } }
if = {
limit = { check_variable = { rq_t < 36 } }
if = {
limit = {
NOT = { has_tech = advanced_battleship }
NOT = { is_in_array = { array = rq_queue value = 35 } }
NOT = { is_in_array = { array = rq_ap_ban value = 35 } }
NOT = { is_in_array = { array = global.rq_hid value = 35 } }
OR = {
can_research = advanced_battleship
AND = {
OR = { is_in_array = { array = rq_queue value = 279 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 35 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 35 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_carrier }
NOT = { is_in_array = { array = rq_queue value = 36 } }
NOT = { is_in_array = { array = rq_ap_ban value = 36 } }
NOT = { is_in_array = { array = global.rq_hid value = 36 } }
OR = {
can_research = advanced_carrier
AND = {
OR = { is_in_array = { array = rq_queue value = 280 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 36 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 36 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 38 } }
if = {
limit = {
NOT = { has_tech = advanced_computing_machine }
NOT = { is_in_array = { array = rq_queue value = 37 } }
NOT = { is_in_array = { array = rq_ap_ban value = 37 } }
NOT = { is_in_array = { array = global.rq_hid value = 37 } }
OR = {
can_research = advanced_computing_machine
AND = {
OR = { is_in_array = { array = rq_queue value = 281 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 37 }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 37 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_decryption }
NOT = { is_in_array = { array = rq_queue value = 38 } }
NOT = { is_in_array = { array = rq_ap_ban value = 38 } }
NOT = { is_in_array = { array = global.rq_hid value = 38 } }
OR = {
can_research = advanced_decryption
AND = {
OR = { is_in_array = { array = rq_queue value = 37 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 38 }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 38 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 41 } }
if = {
limit = { check_variable = { rq_t < 40 } }
if = {
limit = {
NOT = { has_tech = advanced_depth_charges }
NOT = { is_in_array = { array = rq_queue value = 39 } }
NOT = { is_in_array = { array = rq_ap_ban value = 39 } }
NOT = { is_in_array = { array = global.rq_hid value = 39 } }
OR = {
can_research = advanced_depth_charges
AND = {
OR = { is_in_array = { array = rq_queue value = 283 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 39 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 39 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_destroyer }
NOT = { is_in_array = { array = rq_queue value = 40 } }
NOT = { is_in_array = { array = rq_ap_ban value = 40 } }
NOT = { is_in_array = { array = global.rq_hid value = 40 } }
OR = {
can_research = advanced_destroyer
AND = {
OR = { is_in_array = { array = rq_queue value = 284 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 40 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 40 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 42 } }
if = {
limit = {
NOT = { has_tech = advanced_dp_light_battery }
NOT = { is_in_array = { array = rq_queue value = 41 } }
NOT = { is_in_array = { array = rq_ap_ban value = 41 } }
NOT = { is_in_array = { array = global.rq_hid value = 41 } }
OR = {
can_research = advanced_dp_light_battery
AND = {
OR = { is_in_array = { array = rq_queue value = 285 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 41 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 41 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_encryption }
NOT = { is_in_array = { array = rq_queue value = 42 } }
NOT = { is_in_array = { array = rq_ap_ban value = 42 } }
NOT = { is_in_array = { array = global.rq_hid value = 42 } }
OR = {
can_research = advanced_encryption
AND = {
OR = { is_in_array = { array = rq_queue value = 37 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 42 }
set_temp_variable = { rq_ap_w = 1.75 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 42 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 47 } }
if = {
limit = { check_variable = { rq_t < 45 } }
if = {
limit = { check_variable = { rq_t < 44 } }
if = {
limit = {
NOT = { has_tech = advanced_equipment_conversion }
NOT = { is_in_array = { array = rq_queue value = 43 } }
NOT = { is_in_array = { array = rq_ap_ban value = 43 } }
NOT = { is_in_array = { array = global.rq_hid value = 43 } }
OR = {
can_research = advanced_equipment_conversion
AND = {
OR = { is_in_array = { array = rq_queue value = 287 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 43 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_resources_in_country = { resource = coal amount > 0 only_imported = yes } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { energy_ratio < 0.9 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 43 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_fire_control_system }
NOT = { is_in_array = { array = rq_queue value = 44 } }
NOT = { is_in_array = { array = rq_ap_ban value = 44 } }
NOT = { is_in_array = { array = global.rq_hid value = 44 } }
OR = {
can_research = advanced_fire_control_system
AND = {
OR = { is_in_array = { array = rq_queue value = 281 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 44 }
set_temp_variable = { rq_ap_w = 0.75 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 44 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 46 } }
if = {
limit = {
NOT = { has_tech = advanced_heavy_art }
NOT = { is_in_array = { array = rq_queue value = 45 } }
NOT = { is_in_array = { array = rq_ap_ban value = 45 } }
NOT = { is_in_array = { array = global.rq_hid value = 45 } }
OR = {
can_research = advanced_heavy_art
AND = {
OR = { is_in_array = { array = rq_queue value = 49 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 45 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_art can_research = modern_art is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 45 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_heavy_battery }
NOT = { is_in_array = { array = rq_queue value = 46 } }
NOT = { is_in_array = { array = rq_ap_ban value = 46 } }
NOT = { is_in_array = { array = global.rq_hid value = 46 } }
OR = {
can_research = advanced_heavy_battery
AND = {
OR = { is_in_array = { array = rq_queue value = 293 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 46 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = advanced_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_hgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 46 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 49 } }
if = {
limit = { check_variable = { rq_t < 48 } }
if = {
limit = {
NOT = { has_tech = advanced_heavy_cruiser }
NOT = { is_in_array = { array = rq_queue value = 47 } }
NOT = { is_in_array = { array = rq_ap_ban value = 47 } }
NOT = { is_in_array = { array = global.rq_hid value = 47 } }
OR = {
can_research = advanced_heavy_cruiser
AND = {
OR = { is_in_array = { array = rq_queue value = 57 } is_in_array = { array = rq_queue value = 292 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 47 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 47 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_heavy_spaa }
NOT = { is_in_array = { array = rq_queue value = 48 } }
NOT = { is_in_array = { array = rq_ap_ban value = 48 } }
NOT = { is_in_array = { array = global.rq_hid value = 48 } }
OR = {
can_research = advanced_heavy_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 49 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 48 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_spaa can_research = modern_spaa is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 48 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 50 } }
if = {
limit = {
NOT = { has_tech = advanced_heavy_tank }
NOT = { is_in_array = { array = rq_queue value = 49 } }
NOT = { is_in_array = { array = rq_ap_ban value = 49 } }
NOT = { is_in_array = { array = global.rq_hid value = 49 } }
OR = {
can_research = advanced_heavy_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 66 } is_in_array = { array = rq_queue value = 295 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 49 }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 49 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 51 } }
if = {
limit = {
NOT = { has_tech = advanced_heavy_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 50 } }
NOT = { is_in_array = { array = rq_ap_ban value = 50 } }
NOT = { is_in_array = { array = global.rq_hid value = 50 } }
OR = {
can_research = advanced_heavy_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 296 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 50 }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1944.1.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 50 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_heavy_td }
NOT = { is_in_array = { array = rq_queue value = 51 } }
NOT = { is_in_array = { array = rq_ap_ban value = 51 } }
NOT = { is_in_array = { array = global.rq_hid value = 51 } }
OR = {
can_research = advanced_heavy_td
AND = {
OR = { is_in_array = { array = rq_queue value = 49 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 51 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_td can_research = modern_td is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 51 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 61 } }
if = {
limit = { check_variable = { rq_t < 56 } }
if = {
limit = { check_variable = { rq_t < 54 } }
if = {
limit = { check_variable = { rq_t < 53 } }
if = {
limit = {
NOT = { has_tech = advanced_infantry_weapons }
NOT = { is_in_array = { array = rq_queue value = 52 } }
NOT = { is_in_array = { array = rq_ap_ban value = 52 } }
NOT = { is_in_array = { array = global.rq_hid value = 52 } }
OR = {
can_research = advanced_infantry_weapons
AND = {
OR = { is_in_array = { array = rq_queue value = 299 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 52 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 150 }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_infantry_weapons }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 52 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_infantry_weapons2 }
NOT = { is_in_array = { array = rq_queue value = 53 } }
NOT = { is_in_array = { array = rq_ap_ban value = 53 } }
NOT = { is_in_array = { array = global.rq_hid value = 53 } }
OR = {
can_research = advanced_infantry_weapons2
AND = {
OR = { is_in_array = { array = rq_queue value = 52 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 53 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1944.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 53 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 55 } }
if = {
limit = {
NOT = { has_tech = advanced_large_airframe }
NOT = { is_in_array = { array = rq_queue value = 54 } }
NOT = { is_in_array = { array = rq_ap_ban value = 54 } }
NOT = { is_in_array = { array = global.rq_hid value = 54 } }
OR = {
can_research = advanced_large_airframe
AND = {
OR = { is_in_array = { array = rq_queue value = 300 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 54 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_0 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 54 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_light_art }
NOT = { is_in_array = { array = rq_queue value = 55 } }
NOT = { is_in_array = { array = rq_ap_ban value = 55 } }
NOT = { is_in_array = { array = global.rq_hid value = 55 } }
OR = {
can_research = advanced_light_art
AND = {
OR = { is_in_array = { array = rq_queue value = 59 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 55 }
set_temp_variable = { rq_ap_w = 0.1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 55 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 58 } }
if = {
limit = { check_variable = { rq_t < 57 } }
if = {
limit = {
NOT = { has_tech = advanced_light_battery }
NOT = { is_in_array = { array = rq_queue value = 56 } }
NOT = { is_in_array = { array = rq_ap_ban value = 56 } }
NOT = { is_in_array = { array = global.rq_hid value = 56 } }
OR = {
can_research = advanced_light_battery
AND = {
OR = { is_in_array = { array = rq_queue value = 304 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 56 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = advanced_ship_hull_light }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 56 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_light_cruiser }
NOT = { is_in_array = { array = rq_queue value = 57 } }
NOT = { is_in_array = { array = rq_ap_ban value = 57 } }
NOT = { is_in_array = { array = global.rq_hid value = 57 } }
OR = {
can_research = advanced_light_cruiser
AND = {
OR = { is_in_array = { array = rq_queue value = 303 } is_in_array = { array = rq_queue value = 47 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 57 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 57 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 59 } }
if = {
limit = {
NOT = { has_tech = advanced_light_spaa }
NOT = { is_in_array = { array = rq_queue value = 58 } }
NOT = { is_in_array = { array = rq_ap_ban value = 58 } }
NOT = { is_in_array = { array = global.rq_hid value = 58 } }
OR = {
can_research = advanced_light_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 59 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 58 }
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 58 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 60 } }
if = {
limit = {
NOT = { has_tech = advanced_light_tank }
NOT = { is_in_array = { array = rq_queue value = 59 } }
NOT = { is_in_array = { array = rq_ap_ban value = 59 } }
NOT = { is_in_array = { array = global.rq_hid value = 59 } }
OR = {
can_research = advanced_light_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 306 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 59 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 59 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_light_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 60 } }
NOT = { is_in_array = { array = rq_ap_ban value = 60 } }
NOT = { is_in_array = { array = global.rq_hid value = 60 } }
OR = {
can_research = advanced_light_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 307 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 60 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1943.3.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1944.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 60 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 65 } }
if = {
limit = { check_variable = { rq_t < 63 } }
if = {
limit = { check_variable = { rq_t < 62 } }
if = {
limit = {
NOT = { has_tech = advanced_light_td }
NOT = { is_in_array = { array = rq_queue value = 61 } }
NOT = { is_in_array = { array = rq_ap_ban value = 61 } }
NOT = { is_in_array = { array = global.rq_hid value = 61 } }
OR = {
can_research = advanced_light_td
AND = {
OR = { is_in_array = { array = rq_queue value = 59 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 61 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 27 } } } }
add_to_temp_variable = { rq_ap_w = 130 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 61 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_machine_tools }
NOT = { is_in_array = { array = rq_queue value = 62 } }
NOT = { is_in_array = { array = rq_ap_ban value = 62 } }
NOT = { is_in_array = { array = global.rq_hid value = 62 } }
OR = {
can_research = advanced_machine_tools
AND = {
OR = { is_in_array = { array = rq_queue value = 309 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 62 }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 62 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 64 } }
if = {
limit = {
NOT = { has_tech = advanced_medium_airframe }
NOT = { is_in_array = { array = rq_queue value = 63 } }
NOT = { is_in_array = { array = rq_ap_ban value = 63 } }
NOT = { is_in_array = { array = global.rq_hid value = 63 } }
OR = {
can_research = advanced_medium_airframe
AND = {
OR = { is_in_array = { array = rq_queue value = 310 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 63 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_1 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 63 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_medium_art }
NOT = { is_in_array = { array = rq_queue value = 64 } }
NOT = { is_in_array = { array = rq_ap_ban value = 64 } }
NOT = { is_in_array = { array = global.rq_hid value = 64 } }
OR = {
can_research = advanced_medium_art
AND = {
OR = { is_in_array = { array = rq_queue value = 66 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 64 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = modern_art can_research = modern_art is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_sp_artillery_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 64 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 67 } }
if = {
limit = { check_variable = { rq_t < 66 } }
if = {
limit = {
NOT = { has_tech = advanced_medium_spaa }
NOT = { is_in_array = { array = rq_queue value = 65 } }
NOT = { is_in_array = { array = rq_ap_ban value = 65 } }
NOT = { is_in_array = { array = global.rq_hid value = 65 } }
OR = {
can_research = advanced_medium_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 66 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 65 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_spaa can_research = modern_spaa is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 65 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_medium_tank }
NOT = { is_in_array = { array = rq_queue value = 66 } }
NOT = { is_in_array = { array = rq_ap_ban value = 66 } }
NOT = { is_in_array = { array = global.rq_hid value = 66 } }
OR = {
can_research = advanced_medium_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 313 } is_in_array = { array = rq_queue value = 49 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 66 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 66 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 68 } }
if = {
limit = {
NOT = { has_tech = advanced_medium_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 67 } }
NOT = { is_in_array = { array = rq_ap_ban value = 67 } }
NOT = { is_in_array = { array = global.rq_hid value = 67 } }
OR = {
can_research = advanced_medium_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 314 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 67 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER date > "1942.6.1" has_completed_focus = GER_expand_kummersdorfs_capacity has_tech_bonus = { category = cat_medium_armor } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1943.6.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_medium_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 67 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 69 } }
if = {
limit = {
NOT = { has_tech = advanced_medium_td }
NOT = { is_in_array = { array = rq_queue value = 68 } }
NOT = { is_in_array = { array = rq_ap_ban value = 68 } }
NOT = { is_in_array = { array = global.rq_hid value = 68 } }
OR = {
can_research = advanced_medium_td
AND = {
OR = { is_in_array = { array = rq_queue value = 66 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 68 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = SOV } any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 35 } } } }
add_to_temp_variable = { rq_ap_w = 160 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = modern_td can_research = modern_td is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_tank_destroyer_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 68 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 104 } }
if = {
limit = { check_variable = { rq_t < 87 } }
if = {
limit = { check_variable = { rq_t < 78 } }
if = {
limit = { check_variable = { rq_t < 74 } }
if = {
limit = { check_variable = { rq_t < 72 } }
if = {
limit = { check_variable = { rq_t < 71 } }
if = {
limit = {
NOT = { has_tech = advanced_naval_mines }
NOT = { is_in_array = { array = rq_queue value = 70 } }
NOT = { is_in_array = { array = rq_ap_ban value = 70 } }
NOT = { is_in_array = { array = global.rq_hid value = 70 } }
OR = {
can_research = advanced_naval_mines
AND = {
OR = { is_in_array = { array = rq_queue value = 316 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 70 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 70 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_oil_processing }
NOT = { is_in_array = { array = rq_queue value = 71 } }
NOT = { is_in_array = { array = rq_ap_ban value = 71 } }
NOT = { is_in_array = { array = global.rq_hid value = 71 } }
OR = {
can_research = advanced_oil_processing
AND = {
OR = { is_in_array = { array = rq_queue value = 317 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 71 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_oil }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 71 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 73 } }
if = {
limit = {
NOT = { has_tech = advanced_radio }
NOT = { is_in_array = { array = rq_queue value = 72 } }
NOT = { is_in_array = { array = rq_ap_ban value = 72 } }
NOT = { is_in_array = { array = global.rq_hid value = 72 } }
OR = {
can_research = advanced_radio
AND = {
OR = { is_in_array = { array = rq_queue value = 318 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 72 }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.3.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 72 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 76 } }
if = {
limit = { check_variable = { rq_t < 75 } }
if = {
limit = {
NOT = { has_tech = advanced_rubber_processing }
NOT = { is_in_array = { array = rq_queue value = 74 } }
NOT = { is_in_array = { array = rq_ap_ban value = 74 } }
NOT = { is_in_array = { array = global.rq_hid value = 74 } }
OR = {
can_research = advanced_rubber_processing
AND = {
OR = { is_in_array = { array = rq_queue value = 320 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 74 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA } has_war = yes }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_rub }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 74 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_ship_hull_carrier }
NOT = { is_in_array = { array = rq_queue value = 75 } }
NOT = { is_in_array = { array = rq_ap_ban value = 75 } }
NOT = { is_in_array = { array = global.rq_hid value = 75 } }
OR = {
can_research = advanced_ship_hull_carrier
AND = {
OR = { is_in_array = { array = rq_queue value = 321 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 75 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 75 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 77 } }
if = {
limit = {
NOT = { has_tech = advanced_ship_hull_cruiser }
NOT = { is_in_array = { array = rq_queue value = 76 } }
NOT = { is_in_array = { array = rq_ap_ban value = 76 } }
NOT = { is_in_array = { array = global.rq_hid value = 76 } }
OR = {
can_research = advanced_ship_hull_cruiser
AND = {
OR = { is_in_array = { array = rq_queue value = 322 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 76 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 76 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_ship_hull_heavy }
NOT = { is_in_array = { array = rq_queue value = 77 } }
NOT = { is_in_array = { array = rq_ap_ban value = 77 } }
NOT = { is_in_array = { array = global.rq_hid value = 77 } }
OR = {
can_research = advanced_ship_hull_heavy
AND = {
OR = { is_in_array = { array = rq_queue value = 323 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 77 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 77 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 82 } }
if = {
limit = { check_variable = { rq_t < 80 } }
if = {
limit = { check_variable = { rq_t < 79 } }
if = {
limit = {
NOT = { has_tech = advanced_ship_hull_light }
NOT = { is_in_array = { array = rq_queue value = 78 } }
NOT = { is_in_array = { array = rq_ap_ban value = 78 } }
NOT = { is_in_array = { array = global.rq_hid value = 78 } }
OR = {
can_research = advanced_ship_hull_light
AND = {
OR = { is_in_array = { array = rq_queue value = 324 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 78 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 78 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_ship_hull_submarine }
NOT = { is_in_array = { array = rq_queue value = 79 } }
NOT = { is_in_array = { array = rq_ap_ban value = 79 } }
NOT = { is_in_array = { array = global.rq_hid value = 79 } }
OR = {
can_research = advanced_ship_hull_submarine
AND = {
OR = { is_in_array = { array = rq_queue value = 325 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 79 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 79 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 81 } }
if = {
limit = {
NOT = { has_tech = advanced_ship_torpedo_launcher }
NOT = { is_in_array = { array = rq_queue value = 80 } }
NOT = { is_in_array = { array = rq_ap_ban value = 80 } }
NOT = { is_in_array = { array = global.rq_hid value = 80 } }
OR = {
can_research = advanced_ship_torpedo_launcher
AND = {
OR = { is_in_array = { array = rq_queue value = 363 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 80 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 80 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_small_airframe }
NOT = { is_in_array = { array = rq_queue value = 81 } }
NOT = { is_in_array = { array = rq_ap_ban value = 81 } }
NOT = { is_in_array = { array = global.rq_hid value = 81 } }
OR = {
can_research = advanced_small_airframe
AND = {
OR = { is_in_array = { array = rq_queue value = 327 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 81 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_small_airframe }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_2 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 81 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 84 } }
if = {
limit = { check_variable = { rq_t < 83 } }
if = {
limit = {
NOT = { has_tech = advanced_sonar }
NOT = { is_in_array = { array = rq_queue value = 82 } }
NOT = { is_in_array = { array = rq_ap_ban value = 82 } }
NOT = { is_in_array = { array = global.rq_hid value = 82 } }
OR = {
can_research = advanced_sonar
AND = {
OR = { is_in_array = { array = rq_queue value = 328 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 82 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 82 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = advanced_special_forces }
NOT = { is_in_array = { array = rq_queue value = 83 } }
NOT = { is_in_array = { array = rq_ap_ban value = 83 } }
NOT = { is_in_array = { array = global.rq_hid value = 83 } }
NOT = { has_tech = improved_special_forces }
NOT = { is_in_array = { array = rq_queue value = 329 } }
OR = {
can_research = advanced_special_forces
AND = {
OR = { is_in_array = { array = rq_queue value = 541 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 83 }
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 83 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 85 } }
if = {
limit = {
NOT = { has_tech = advanced_submarine }
NOT = { is_in_array = { array = rq_queue value = 84 } }
NOT = { is_in_array = { array = rq_ap_ban value = 84 } }
NOT = { is_in_array = { array = global.rq_hid value = 84 } }
OR = {
can_research = advanced_submarine
AND = {
OR = { is_in_array = { array = rq_queue value = 330 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 84 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 84 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 86 } }
}
else = {
if = {
limit = {
NOT = { has_tech = air_torpedoe_1 }
NOT = { is_in_array = { array = rq_queue value = 86 } }
NOT = { is_in_array = { array = rq_ap_ban value = 86 } }
NOT = { is_in_array = { array = global.rq_hid value = 86 } }
OR = {
can_research = air_torpedoe_1
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 86 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_air_torpedoe_1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_torp }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 86 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 95 } }
if = {
limit = { check_variable = { rq_t < 91 } }
if = {
limit = { check_variable = { rq_t < 89 } }
if = {
limit = { check_variable = { rq_t < 88 } }
if = {
limit = {
NOT = { has_tech = air_torpedoe_2 }
NOT = { is_in_array = { array = rq_queue value = 87 } }
NOT = { is_in_array = { array = rq_ap_ban value = 87 } }
NOT = { is_in_array = { array = global.rq_hid value = 87 } }
OR = {
can_research = air_torpedoe_2
AND = {
OR = { is_in_array = { array = rq_queue value = 86 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 87 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_torp }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 87 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = air_torpedoe_3 }
NOT = { is_in_array = { array = rq_queue value = 88 } }
NOT = { is_in_array = { array = rq_ap_ban value = 88 } }
NOT = { is_in_array = { array = global.rq_hid value = 88 } }
OR = {
can_research = air_torpedoe_3
AND = {
OR = { is_in_array = { array = rq_queue value = 87 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 88 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_torp }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 88 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 90 } }
if = {
limit = {
NOT = { has_tech = aircraft_construction }
NOT = { is_in_array = { array = rq_queue value = 89 } }
NOT = { is_in_array = { array = rq_ap_ban value = 89 } }
NOT = { is_in_array = { array = global.rq_hid value = 89 } }
OR = {
can_research = aircraft_construction
AND = {
OR = { is_in_array = { array = rq_queue value = 243 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 89 }
set_temp_variable = { rq_ap_w = 5 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_cons }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 89 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = airdrop_mines }
NOT = { is_in_array = { array = rq_queue value = 90 } }
NOT = { is_in_array = { array = rq_ap_ban value = 90 } }
NOT = { is_in_array = { array = global.rq_hid value = 90 } }
OR = {
can_research = airdrop_mines
AND = {
OR = { is_in_array = { array = rq_queue value = 70 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 90 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 90 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 93 } }
if = {
limit = { check_variable = { rq_t < 92 } }
if = {
limit = {
NOT = { has_tech = airdrop_mines_bba }
NOT = { is_in_array = { array = rq_queue value = 91 } }
NOT = { is_in_array = { array = rq_ap_ban value = 91 } }
NOT = { is_in_array = { array = global.rq_hid value = 91 } }
OR = {
can_research = airdrop_mines_bba
AND = {
OR = { is_in_array = { array = rq_queue value = 70 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 91 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 91 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = airsweep_mines }
NOT = { is_in_array = { array = rq_queue value = 92 } }
NOT = { is_in_array = { array = rq_ap_ban value = 92 } }
NOT = { is_in_array = { array = global.rq_hid value = 92 } }
OR = {
can_research = airsweep_mines
AND = {
OR = { is_in_array = { array = rq_queue value = 70 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 92 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 92 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 94 } }
if = {
limit = {
NOT = { has_tech = airsweep_mines_bba }
NOT = { is_in_array = { array = rq_queue value = 93 } }
NOT = { is_in_array = { array = rq_ap_ban value = 93 } }
NOT = { is_in_array = { array = global.rq_hid value = 93 } }
OR = {
can_research = airsweep_mines_bba
AND = {
OR = { is_in_array = { array = rq_queue value = 70 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 93 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 93 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = amphibious_drive }
NOT = { is_in_array = { array = rq_queue value = 94 } }
NOT = { is_in_array = { array = rq_ap_ban value = 94 } }
NOT = { is_in_array = { array = global.rq_hid value = 94 } }
OR = {
can_research = amphibious_drive
AND = {
OR = { is_in_array = { array = rq_queue value = 99 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 94 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 94 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 99 } }
if = {
limit = { check_variable = { rq_t < 97 } }
if = {
limit = { check_variable = { rq_t < 96 } }
if = {
limit = {
NOT = { has_tech = amphibious_mechanized_infantry }
NOT = { is_in_array = { array = rq_queue value = 95 } }
NOT = { is_in_array = { array = rq_ap_ban value = 95 } }
NOT = { is_in_array = { array = global.rq_hid value = 95 } }
OR = {
can_research = amphibious_mechanized_infantry
AND = {
OR = { is_in_array = { array = rq_queue value = 370 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 95 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_amph }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 95 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = amphibious_mechanized_infantry_2 }
NOT = { is_in_array = { array = rq_queue value = 96 } }
NOT = { is_in_array = { array = rq_ap_ban value = 96 } }
NOT = { is_in_array = { array = global.rq_hid value = 96 } }
OR = {
can_research = amphibious_mechanized_infantry_2
AND = {
OR = { is_in_array = { array = rq_queue value = 95 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 96 }
set_temp_variable = { rq_ap_w = 2 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_amph }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 96 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 98 } }
if = {
limit = {
NOT = { has_tech = amphibious_tank }
NOT = { is_in_array = { array = rq_queue value = 97 } }
NOT = { is_in_array = { array = rq_ap_ban value = 97 } }
NOT = { is_in_array = { array = global.rq_hid value = 97 } }
OR = {
can_research = amphibious_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 306 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 97 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 97 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = amphibious_tank_2 }
NOT = { is_in_array = { array = rq_queue value = 98 } }
NOT = { is_in_array = { array = rq_ap_ban value = 98 } }
NOT = { is_in_array = { array = global.rq_hid value = 98 } }
OR = {
can_research = amphibious_tank_2
AND = {
OR = { is_in_array = { array = rq_queue value = 97 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 98 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 98 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 101 } }
if = {
limit = { check_variable = { rq_t < 100 } }
if = {
limit = {
NOT = { has_tech = amphibious_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 99 } }
NOT = { is_in_array = { array = rq_ap_ban value = 99 } }
NOT = { is_in_array = { array = global.rq_hid value = 99 } }
OR = {
can_research = amphibious_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 307 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 99 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes NOT = { TAG = GER } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 99 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = antiair1 }
NOT = { is_in_array = { array = rq_queue value = 100 } }
NOT = { is_in_array = { array = rq_ap_ban value = 100 } }
NOT = { is_in_array = { array = global.rq_hid value = 100 } }
OR = {
can_research = antiair1
AND = {
OR = { is_in_array = { array = rq_queue value = 339 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 100 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 100 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 102 } }
if = {
limit = {
NOT = { has_tech = antiair2 }
NOT = { is_in_array = { array = rq_queue value = 101 } }
NOT = { is_in_array = { array = rq_ap_ban value = 101 } }
NOT = { is_in_array = { array = global.rq_hid value = 101 } }
OR = {
can_research = antiair2
AND = {
OR = { is_in_array = { array = rq_queue value = 100 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 101 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 101 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 103 } }
if = {
limit = {
NOT = { has_tech = antiair3 }
NOT = { is_in_array = { array = rq_queue value = 102 } }
NOT = { is_in_array = { array = rq_ap_ban value = 102 } }
NOT = { is_in_array = { array = global.rq_hid value = 102 } }
OR = {
can_research = antiair3
AND = {
OR = { is_in_array = { array = rq_queue value = 101 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 102 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 102 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = antiair4 }
NOT = { is_in_array = { array = rq_queue value = 103 } }
NOT = { is_in_array = { array = rq_ap_ban value = 103 } }
NOT = { is_in_array = { array = global.rq_hid value = 103 } }
OR = {
can_research = antiair4
AND = {
OR = { is_in_array = { array = rq_queue value = 102 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 103 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 103 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 121 } }
if = {
limit = { check_variable = { rq_t < 112 } }
if = {
limit = { check_variable = { rq_t < 108 } }
if = {
limit = { check_variable = { rq_t < 106 } }
if = {
limit = { check_variable = { rq_t < 105 } }
if = {
limit = {
NOT = { has_tech = antiair5 }
NOT = { is_in_array = { array = rq_queue value = 104 } }
NOT = { is_in_array = { array = rq_ap_ban value = 104 } }
NOT = { is_in_array = { array = global.rq_hid value = 104 } }
OR = {
can_research = antiair5
AND = {
OR = { is_in_array = { array = rq_queue value = 103 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 104 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 104 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = antitank1 }
NOT = { is_in_array = { array = rq_queue value = 105 } }
NOT = { is_in_array = { array = rq_ap_ban value = 105 } }
NOT = { is_in_array = { array = global.rq_hid value = 105 } }
OR = {
can_research = antitank1
AND = {
OR = { is_in_array = { array = rq_queue value = 340 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 105 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 30 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 105 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 107 } }
if = {
limit = {
NOT = { has_tech = antitank2 }
NOT = { is_in_array = { array = rq_queue value = 106 } }
NOT = { is_in_array = { array = rq_ap_ban value = 106 } }
NOT = { is_in_array = { array = global.rq_hid value = 106 } }
OR = {
can_research = antitank2
AND = {
OR = { is_in_array = { array = rq_queue value = 105 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 106 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1939.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA has_War = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 32 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 106 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = antitank3 }
NOT = { is_in_array = { array = rq_queue value = 107 } }
NOT = { is_in_array = { array = rq_ap_ban value = 107 } }
NOT = { is_in_array = { array = global.rq_hid value = 107 } }
OR = {
can_research = antitank3
AND = {
OR = { is_in_array = { array = rq_queue value = 106 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 107 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER has_war_with = SOV }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 32 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 107 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 110 } }
if = {
limit = { check_variable = { rq_t < 109 } }
if = {
limit = {
NOT = { has_tech = antitank4 }
NOT = { is_in_array = { array = rq_queue value = 108 } }
NOT = { is_in_array = { array = rq_ap_ban value = 108 } }
NOT = { is_in_array = { array = global.rq_hid value = 108 } }
OR = {
can_research = antitank4
AND = {
OR = { is_in_array = { array = rq_queue value = 107 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 108 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 35 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 108 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = antitank5 }
NOT = { is_in_array = { array = rq_queue value = 109 } }
NOT = { is_in_array = { array = rq_ap_ban value = 109 } }
NOT = { is_in_array = { array = global.rq_hid value = 109 } }
OR = {
can_research = antitank5
AND = {
OR = { is_in_array = { array = rq_queue value = 108 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 109 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 35 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 109 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 111 } }
if = {
limit = {
NOT = { has_tech = armor_piercing_bombs }
NOT = { is_in_array = { array = rq_queue value = 110 } }
NOT = { is_in_array = { array = rq_ap_ban value = 110 } }
NOT = { is_in_array = { array = global.rq_hid value = 110 } }
OR = {
can_research = armor_piercing_bombs
AND = {
OR = { is_in_array = { array = rq_queue value = 223 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 110 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_bomb }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 110 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = armor_tech_1 }
NOT = { is_in_array = { array = rq_queue value = 111 } }
NOT = { is_in_array = { array = rq_ap_ban value = 111 } }
NOT = { is_in_array = { array = global.rq_hid value = 111 } }
OR = {
can_research = armor_tech_1
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 111 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 111 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 116 } }
if = {
limit = { check_variable = { rq_t < 114 } }
if = {
limit = { check_variable = { rq_t < 113 } }
if = {
limit = {
NOT = { has_tech = armor_tech_2 }
NOT = { is_in_array = { array = rq_queue value = 112 } }
NOT = { is_in_array = { array = rq_ap_ban value = 112 } }
NOT = { is_in_array = { array = global.rq_hid value = 112 } }
OR = {
can_research = armor_tech_2
AND = {
OR = { is_in_array = { array = rq_queue value = 111 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 112 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 112 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = armor_tech_3 }
NOT = { is_in_array = { array = rq_queue value = 113 } }
NOT = { is_in_array = { array = rq_ap_ban value = 113 } }
NOT = { is_in_array = { array = global.rq_hid value = 113 } }
OR = {
can_research = armor_tech_3
AND = {
OR = { is_in_array = { array = rq_queue value = 112 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 113 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 113 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 115 } }
if = {
limit = {
NOT = { has_tech = armor_tech_4 }
NOT = { is_in_array = { array = rq_queue value = 114 } }
NOT = { is_in_array = { array = rq_ap_ban value = 114 } }
NOT = { is_in_array = { array = global.rq_hid value = 114 } }
OR = {
can_research = armor_tech_4
AND = {
OR = { is_in_array = { array = rq_queue value = 113 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 114 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 114 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = armored_car1 }
NOT = { is_in_array = { array = rq_queue value = 115 } }
NOT = { is_in_array = { array = rq_ap_ban value = 115 } }
NOT = { is_in_array = { array = global.rq_hid value = 115 } }
OR = {
can_research = armored_car1
AND = {
OR = { is_in_array = { array = rq_queue value = 543 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 115 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_ac }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 115 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 118 } }
if = {
limit = { check_variable = { rq_t < 117 } }
if = {
limit = {
NOT = { has_tech = armored_car2 }
NOT = { is_in_array = { array = rq_queue value = 116 } }
NOT = { is_in_array = { array = rq_ap_ban value = 116 } }
NOT = { is_in_array = { array = global.rq_hid value = 116 } }
OR = {
can_research = armored_car2
AND = {
OR = { is_in_array = { array = rq_queue value = 115 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 116 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_ac }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 116 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = armored_car3 }
NOT = { is_in_array = { array = rq_queue value = 117 } }
NOT = { is_in_array = { array = rq_ap_ban value = 117 } }
NOT = { is_in_array = { array = global.rq_hid value = 117 } }
OR = {
can_research = armored_car3
AND = {
OR = { is_in_array = { array = rq_queue value = 116 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 117 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_ac }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 117 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 119 } }
if = {
limit = {
NOT = { has_tech = armored_car_at_upgrade }
NOT = { is_in_array = { array = rq_queue value = 118 } }
NOT = { is_in_array = { array = rq_ap_ban value = 118 } }
NOT = { is_in_array = { array = global.rq_hid value = 118 } }
OR = {
can_research = armored_car_at_upgrade
AND = {
OR = { is_in_array = { array = rq_queue value = 117 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 118 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_ac }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 118 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 120 } }
if = {
limit = {
NOT = { has_tech = armored_train }
NOT = { is_in_array = { array = rq_queue value = 119 } }
NOT = { is_in_array = { array = rq_ap_ban value = 119 } }
NOT = { is_in_array = { array = global.rq_hid value = 119 } }
OR = {
can_research = armored_train
AND = {
OR = { is_in_array = { array = rq_queue value = 174 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 119 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 119 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = artillery1 }
NOT = { is_in_array = { array = rq_queue value = 120 } }
NOT = { is_in_array = { array = rq_ap_ban value = 120 } }
NOT = { is_in_array = { array = global.rq_hid value = 120 } }
OR = {
can_research = artillery1
AND = {
OR = { is_in_array = { array = rq_queue value = 341 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 120 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1938.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 120 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 130 } }
if = {
limit = { check_variable = { rq_t < 125 } }
if = {
limit = { check_variable = { rq_t < 123 } }
if = {
limit = { check_variable = { rq_t < 122 } }
if = {
limit = {
NOT = { has_tech = artillery2 }
NOT = { is_in_array = { array = rq_queue value = 121 } }
NOT = { is_in_array = { array = rq_ap_ban value = 121 } }
NOT = { is_in_array = { array = global.rq_hid value = 121 } }
OR = {
can_research = artillery2
AND = {
OR = { is_in_array = { array = rq_queue value = 120 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 121 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 121 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = artillery3 }
NOT = { is_in_array = { array = rq_queue value = 122 } }
NOT = { is_in_array = { array = rq_ap_ban value = 122 } }
NOT = { is_in_array = { array = global.rq_hid value = 122 } }
OR = {
can_research = artillery3
AND = {
OR = { is_in_array = { array = rq_queue value = 121 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 122 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1941.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 122 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 124 } }
if = {
limit = {
NOT = { has_tech = artillery4 }
NOT = { is_in_array = { array = rq_queue value = 123 } }
NOT = { is_in_array = { array = rq_ap_ban value = 123 } }
NOT = { is_in_array = { array = global.rq_hid value = 123 } }
OR = {
can_research = artillery4
AND = {
OR = { is_in_array = { array = rq_queue value = 122 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 123 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1941.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 123 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = artillery5 }
NOT = { is_in_array = { array = rq_queue value = 124 } }
NOT = { is_in_array = { array = rq_ap_ban value = 124 } }
NOT = { is_in_array = { array = global.rq_hid value = 124 } }
OR = {
can_research = artillery5
AND = {
OR = { is_in_array = { array = rq_queue value = 123 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 124 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 124 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 127 } }
if = {
limit = { check_variable = { rq_t < 126 } }
if = {
limit = {
NOT = { has_tech = assembly_line_production }
NOT = { is_in_array = { array = rq_queue value = 125 } }
NOT = { is_in_array = { array = rq_ap_ban value = 125 } }
NOT = { is_in_array = { array = global.rq_hid value = 125 } }
OR = {
can_research = assembly_line_production
AND = {
OR = { is_in_array = { array = rq_queue value = 62 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 125 }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 125 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = atomic_research }
NOT = { is_in_array = { array = rq_queue value = 126 } }
NOT = { is_in_array = { array = rq_ap_ban value = 126 } }
NOT = { is_in_array = { array = global.rq_hid value = 126 } }
OR = {
can_research = atomic_research
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 126 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { PHI_SEA = yes has_completed_focus = PHI_weapons_of_war }
add_to_temp_variable = { rq_ap_w = 50 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_atomic_research }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_roc }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 126 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 128 } }
if = {
limit = {
NOT = { has_tech = basic_battery }
NOT = { is_in_array = { array = rq_queue value = 127 } }
NOT = { is_in_array = { array = rq_ap_ban value = 127 } }
NOT = { is_in_array = { array = global.rq_hid value = 127 } }
OR = {
can_research = basic_battery
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 127 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = early_ship_hull_light has_tech = early_ship_hull_cruiser has_tech = early_ship_hull_heavy } }
multiply_temp_variable = { rq_ap_w = 500 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 127 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 129 } }
if = {
limit = {
NOT = { has_tech = basic_battlecruiser }
NOT = { is_in_array = { array = rq_queue value = 128 } }
NOT = { is_in_array = { array = rq_ap_ban value = 128 } }
NOT = { is_in_array = { array = global.rq_hid value = 128 } }
OR = {
can_research = basic_battlecruiser
AND = {
OR = { is_in_array = { array = rq_queue value = 220 } is_in_array = { array = rq_queue value = 279 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 128 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 128 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_battleship }
NOT = { is_in_array = { array = rq_queue value = 129 } }
NOT = { is_in_array = { array = rq_ap_ban value = 129 } }
NOT = { is_in_array = { array = global.rq_hid value = 129 } }
OR = {
can_research = basic_battleship
AND = {
OR = { is_in_array = { array = rq_queue value = 221 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 129 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 129 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 134 } }
if = {
limit = { check_variable = { rq_t < 132 } }
if = {
limit = { check_variable = { rq_t < 131 } }
if = {
limit = {
NOT = { has_tech = basic_carrier }
NOT = { is_in_array = { array = rq_queue value = 130 } }
NOT = { is_in_array = { array = rq_ap_ban value = 130 } }
NOT = { is_in_array = { array = global.rq_hid value = 130 } }
OR = {
can_research = basic_carrier
AND = {
OR = { is_in_array = { array = rq_queue value = 224 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 130 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 130 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_cruiser_armor_scheme }
NOT = { is_in_array = { array = rq_queue value = 131 } }
NOT = { is_in_array = { array = rq_ap_ban value = 131 } }
NOT = { is_in_array = { array = global.rq_hid value = 131 } }
OR = {
can_research = basic_cruiser_armor_scheme
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 131 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 131 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 133 } }
if = {
limit = {
NOT = { has_tech = basic_decryption }
NOT = { is_in_array = { array = rq_queue value = 132 } }
NOT = { is_in_array = { array = rq_ap_ban value = 132 } }
NOT = { is_in_array = { array = global.rq_hid value = 132 } }
OR = {
can_research = basic_decryption
AND = {
OR = { is_in_array = { array = rq_queue value = 188 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 132 }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 132 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_depth_charges }
NOT = { is_in_array = { array = rq_queue value = 133 } }
NOT = { is_in_array = { array = rq_ap_ban value = 133 } }
NOT = { is_in_array = { array = global.rq_hid value = 133 } }
OR = {
can_research = basic_depth_charges
AND = {
OR = { is_in_array = { array = rq_queue value = 232 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 133 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 133 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 136 } }
if = {
limit = { check_variable = { rq_t < 135 } }
if = {
limit = {
NOT = { has_tech = basic_destroyer }
NOT = { is_in_array = { array = rq_queue value = 134 } }
NOT = { is_in_array = { array = rq_ap_ban value = 134 } }
NOT = { is_in_array = { array = global.rq_hid value = 134 } }
OR = {
can_research = basic_destroyer
AND = {
OR = { is_in_array = { array = rq_queue value = 225 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 134 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 134 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_dp_light_battery }
NOT = { is_in_array = { array = rq_queue value = 135 } }
NOT = { is_in_array = { array = rq_ap_ban value = 135 } }
NOT = { is_in_array = { array = global.rq_hid value = 135 } }
OR = {
can_research = basic_dp_light_battery
AND = {
OR = { is_in_array = { array = rq_queue value = 302 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 135 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 135 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 137 } }
if = {
limit = {
NOT = { has_tech = basic_encryption }
NOT = { is_in_array = { array = rq_queue value = 136 } }
NOT = { is_in_array = { array = rq_ap_ban value = 136 } }
NOT = { is_in_array = { array = global.rq_hid value = 136 } }
OR = {
can_research = basic_encryption
AND = {
OR = { is_in_array = { array = rq_queue value = 188 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 136 }
set_temp_variable = { rq_ap_w = 1.75 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 136 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 138 } }
if = {
limit = {
NOT = { has_tech = basic_fire_control_system }
NOT = { is_in_array = { array = rq_queue value = 137 } }
NOT = { is_in_array = { array = rq_ap_ban value = 137 } }
NOT = { is_in_array = { array = global.rq_hid value = 137 } }
OR = {
can_research = basic_fire_control_system
AND = {
OR = { is_in_array = { array = rq_queue value = 369 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 137 }
set_temp_variable = { rq_ap_w = 0.75 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = improved_fire_control_system has_tech = improved_fire_control_system } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 137 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_fortification_tech }
NOT = { is_in_array = { array = rq_queue value = 138 } }
NOT = { is_in_array = { array = rq_ap_ban value = 138 } }
NOT = { is_in_array = { array = global.rq_hid value = 138 } }
OR = {
can_research = basic_fortification_tech
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 138 }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_fort }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 138 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 208 } }
if = {
limit = { check_variable = { rq_t < 173 } }
if = {
limit = { check_variable = { rq_t < 156 } }
if = {
limit = { check_variable = { rq_t < 147 } }
if = {
limit = { check_variable = { rq_t < 143 } }
if = {
limit = { check_variable = { rq_t < 141 } }
if = {
limit = { check_variable = { rq_t < 140 } }
if = {
limit = {
NOT = { has_tech = basic_heavy_armor_scheme }
NOT = { is_in_array = { array = rq_queue value = 139 } }
NOT = { is_in_array = { array = rq_ap_ban value = 139 } }
NOT = { is_in_array = { array = global.rq_hid value = 139 } }
OR = {
can_research = basic_heavy_armor_scheme
AND = {
OR = { is_in_array = { array = rq_queue value = 131 } is_in_array = { array = rq_queue value = 167 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 139 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 139 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_heavy_art }
NOT = { is_in_array = { array = rq_queue value = 140 } }
NOT = { is_in_array = { array = rq_ap_ban value = 140 } }
NOT = { is_in_array = { array = global.rq_hid value = 140 } }
OR = {
can_research = basic_heavy_art
AND = {
OR = { is_in_array = { array = rq_queue value = 145 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 140 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = improved_heavy_art can_research = improved_heavy_art is_researching_technology = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 140 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 142 } }
if = {
limit = {
NOT = { has_tech = basic_heavy_battery }
NOT = { is_in_array = { array = rq_queue value = 141 } }
NOT = { is_in_array = { array = rq_ap_ban value = 141 } }
NOT = { is_in_array = { array = global.rq_hid value = 141 } }
OR = {
can_research = basic_heavy_battery
AND = {
OR = { is_in_array = { array = rq_queue value = 127 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 141 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = basic_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_hgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 141 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_heavy_cruiser }
NOT = { is_in_array = { array = rq_queue value = 142 } }
NOT = { is_in_array = { array = rq_ap_ban value = 142 } }
NOT = { is_in_array = { array = global.rq_hid value = 142 } }
OR = {
can_research = basic_heavy_cruiser
AND = {
OR = { is_in_array = { array = rq_queue value = 151 } is_in_array = { array = rq_queue value = 227 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 142 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 142 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 145 } }
if = {
limit = { check_variable = { rq_t < 144 } }
if = {
limit = {
NOT = { has_tech = basic_heavy_shell }
NOT = { is_in_array = { array = rq_queue value = 143 } }
NOT = { is_in_array = { array = rq_ap_ban value = 143 } }
NOT = { is_in_array = { array = global.rq_hid value = 143 } }
OR = {
can_research = basic_heavy_shell
AND = {
OR = { is_in_array = { array = rq_queue value = 141 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 143 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes has_war = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_hgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 143 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_heavy_spaa }
NOT = { is_in_array = { array = rq_queue value = 144 } }
NOT = { is_in_array = { array = rq_ap_ban value = 144 } }
NOT = { is_in_array = { array = global.rq_hid value = 144 } }
OR = {
can_research = basic_heavy_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 145 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 144 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = improved_heavy_spaa can_research = improved_heavy_spaa is_researching_technology = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 144 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 146 } }
if = {
limit = {
NOT = { has_tech = basic_heavy_tank }
NOT = { is_in_array = { array = rq_queue value = 145 } }
NOT = { is_in_array = { array = rq_ap_ban value = 145 } }
NOT = { is_in_array = { array = global.rq_hid value = 145 } }
OR = {
can_research = basic_heavy_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 269 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 145 }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = FRA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = improved_heavy_tank has_tech = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_heavy_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 145 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_heavy_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 146 } }
NOT = { is_in_array = { array = rq_ap_ban value = 146 } }
NOT = { is_in_array = { array = global.rq_hid value = 146 } }
OR = {
can_research = basic_heavy_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 270 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 146 }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = FRA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 146 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 151 } }
if = {
limit = { check_variable = { rq_t < 149 } }
if = {
limit = { check_variable = { rq_t < 148 } }
if = {
limit = {
NOT = { has_tech = basic_heavy_td }
NOT = { is_in_array = { array = rq_queue value = 147 } }
NOT = { is_in_array = { array = rq_ap_ban value = 147 } }
NOT = { is_in_array = { array = global.rq_hid value = 147 } }
OR = {
can_research = basic_heavy_td
AND = {
OR = { is_in_array = { array = rq_queue value = 145 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 147 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = improved_heavy_td can_research = improved_heavy_td is_researching_technology = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 147 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_large_airframe }
NOT = { is_in_array = { array = rq_queue value = 148 } }
NOT = { is_in_array = { array = rq_ap_ban value = 148 } }
NOT = { is_in_array = { array = global.rq_hid value = 148 } }
OR = {
can_research = basic_large_airframe
AND = {
OR = { is_in_array = { array = rq_queue value = 343 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 148 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_0 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 148 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 150 } }
if = {
limit = {
NOT = { has_tech = basic_light_art }
NOT = { is_in_array = { array = rq_queue value = 149 } }
NOT = { is_in_array = { array = rq_ap_ban value = 149 } }
NOT = { is_in_array = { array = global.rq_hid value = 149 } }
OR = {
can_research = basic_light_art
AND = {
OR = { is_in_array = { array = rq_queue value = 154 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 149 }
set_temp_variable = { rq_ap_w = 0.25 }
if = {
limit = { has_template_containing_unit = light_sp_artillery_brigade }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_light_art can_research = improved_light_art is_researching_technology = improved_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 149 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_light_battery }
NOT = { is_in_array = { array = rq_queue value = 150 } }
NOT = { is_in_array = { array = rq_ap_ban value = 150 } }
NOT = { is_in_array = { array = global.rq_hid value = 150 } }
OR = {
can_research = basic_light_battery
AND = {
OR = { is_in_array = { array = rq_queue value = 127 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 150 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = basic_ship_hull_light }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 150 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 153 } }
if = {
limit = { check_variable = { rq_t < 152 } }
if = {
limit = {
NOT = { has_tech = basic_light_cruiser }
NOT = { is_in_array = { array = rq_queue value = 151 } }
NOT = { is_in_array = { array = rq_ap_ban value = 151 } }
NOT = { is_in_array = { array = global.rq_hid value = 151 } }
OR = {
can_research = basic_light_cruiser
AND = {
OR = { is_in_array = { array = rq_queue value = 228 } is_in_array = { array = rq_queue value = 142 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 151 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 151 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_light_shell }
NOT = { is_in_array = { array = rq_queue value = 152 } }
NOT = { is_in_array = { array = rq_ap_ban value = 152 } }
NOT = { is_in_array = { array = global.rq_hid value = 152 } }
OR = {
can_research = basic_light_shell
AND = {
OR = { is_in_array = { array = rq_queue value = 150 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 152 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 152 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 154 } }
if = {
limit = {
NOT = { has_tech = basic_light_spaa }
NOT = { is_in_array = { array = rq_queue value = 153 } }
NOT = { is_in_array = { array = rq_ap_ban value = 153 } }
NOT = { is_in_array = { array = global.rq_hid value = 153 } }
OR = {
can_research = basic_light_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 154 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 153 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { is_major = yes }
add_to_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_light_spaa can_research = improved_light_spaa is_researching_technology = improved_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 153 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 155 } }
if = {
limit = {
NOT = { has_tech = basic_light_tank }
NOT = { is_in_array = { array = rq_queue value = 154 } }
NOT = { is_in_array = { array = rq_ap_ban value = 154 } }
NOT = { is_in_array = { array = global.rq_hid value = 154 } }
OR = {
can_research = basic_light_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 269 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 154 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 154 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_light_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 155 } }
NOT = { is_in_array = { array = rq_ap_ban value = 155 } }
NOT = { is_in_array = { array = global.rq_hid value = 155 } }
OR = {
can_research = basic_light_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 270 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 155 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 155 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 164 } }
if = {
limit = { check_variable = { rq_t < 160 } }
if = {
limit = { check_variable = { rq_t < 158 } }
if = {
limit = { check_variable = { rq_t < 157 } }
if = {
limit = {
NOT = { has_tech = basic_light_td }
NOT = { is_in_array = { array = rq_queue value = 156 } }
NOT = { is_in_array = { array = rq_ap_ban value = 156 } }
NOT = { is_in_array = { array = global.rq_hid value = 156 } }
OR = {
can_research = basic_light_td
AND = {
OR = { is_in_array = { array = rq_queue value = 154 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 156 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { OR = { tag = GER tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 25 } } } }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = light_tank_destroyer_brigade }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 50 num_of_military_factories < 120 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_light_td can_research = improved_light_td is_researching_technology = improved_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 156 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_machine_tools }
NOT = { is_in_array = { array = rq_queue value = 157 } }
NOT = { is_in_array = { array = rq_ap_ban value = 157 } }
NOT = { is_in_array = { array = global.rq_hid value = 157 } }
OR = {
can_research = basic_machine_tools
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 157 }
set_temp_variable = { rq_ap_w = 50 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 157 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 159 } }
if = {
limit = {
NOT = { has_tech = basic_medium_airframe }
NOT = { is_in_array = { array = rq_queue value = 158 } }
NOT = { is_in_array = { array = rq_ap_ban value = 158 } }
NOT = { is_in_array = { array = global.rq_hid value = 158 } }
OR = {
can_research = basic_medium_airframe
AND = {
OR = { is_in_array = { array = rq_queue value = 344 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 158 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1936.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_1 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 158 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_medium_art }
NOT = { is_in_array = { array = rq_queue value = 159 } }
NOT = { is_in_array = { array = rq_ap_ban value = 159 } }
NOT = { is_in_array = { array = global.rq_hid value = 159 } }
OR = {
can_research = basic_medium_art
AND = {
OR = { is_in_array = { array = rq_queue value = 161 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 159 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_medium_art can_research = improved_medium_art is_researching_technology = improved_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = Ger }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 159 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 162 } }
if = {
limit = { check_variable = { rq_t < 161 } }
if = {
limit = {
NOT = { has_tech = basic_medium_spaa }
NOT = { is_in_array = { array = rq_queue value = 160 } }
NOT = { is_in_array = { array = rq_ap_ban value = 160 } }
NOT = { is_in_array = { array = global.rq_hid value = 160 } }
OR = {
can_research = basic_medium_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 161 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 160 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_medium_spaa can_research = improved_medium_spaa is_researching_technology = improved_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 160 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_medium_tank }
NOT = { is_in_array = { array = rq_queue value = 161 } }
NOT = { is_in_array = { array = rq_ap_ban value = 161 } }
NOT = { is_in_array = { array = global.rq_hid value = 161 } }
OR = {
can_research = basic_medium_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 306 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 161 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes not = { tag = JAP num_of_military_factories < 50 } date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_opinion_modifier = sov_ger_treaty }
multiply_temp_variable = { rq_ap_w = 15.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_medium_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 161 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 163 } }
if = {
limit = {
NOT = { has_tech = basic_medium_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 162 } }
NOT = { is_in_array = { array = rq_ap_ban value = 162 } }
NOT = { is_in_array = { array = global.rq_hid value = 162 } }
OR = {
can_research = basic_medium_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 270 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 162 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes NOT = { AND = { tag = JAP num_of_military_factories < 50 } } date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1940.3.1 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_advanced_panzer_research has_tech_bonus = { category = cat_medium_armor } }
multiply_temp_variable = { rq_ap_w = 15.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER NOT = { has_completed_focus = GER_advanced_panzer_research } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1938.11.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_medium_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 162 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_medium_td }
NOT = { is_in_array = { array = rq_queue value = 163 } }
NOT = { is_in_array = { array = rq_ap_ban value = 163 } }
NOT = { is_in_array = { array = global.rq_hid value = 163 } }
OR = {
can_research = basic_medium_td
AND = {
OR = { is_in_array = { array = rq_queue value = 161 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 163 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 30 } } } }
add_to_temp_variable = { rq_ap_w = 140 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_medium_td can_research = improved_medium_td is_researching_technology = improved_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 163 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 168 } }
if = {
limit = { check_variable = { rq_t < 166 } }
if = {
limit = { check_variable = { rq_t < 165 } }
if = {
limit = {
NOT = { has_tech = basic_naval_mines }
NOT = { is_in_array = { array = rq_queue value = 164 } }
NOT = { is_in_array = { array = rq_ap_ban value = 164 } }
NOT = { is_in_array = { array = global.rq_hid value = 164 } }
OR = {
can_research = basic_naval_mines
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 164 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 164 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_ship_hull_carrier }
NOT = { is_in_array = { array = rq_queue value = 165 } }
NOT = { is_in_array = { array = rq_ap_ban value = 165 } }
NOT = { is_in_array = { array = global.rq_hid value = 165 } }
OR = {
can_research = basic_ship_hull_carrier
AND = {
OR = { is_in_array = { array = rq_queue value = 229 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 165 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 165 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 167 } }
if = {
limit = {
NOT = { has_tech = basic_ship_hull_cruiser }
NOT = { is_in_array = { array = rq_queue value = 166 } }
NOT = { is_in_array = { array = rq_ap_ban value = 166 } }
NOT = { is_in_array = { array = global.rq_hid value = 166 } }
OR = {
can_research = basic_ship_hull_cruiser
AND = {
OR = { is_in_array = { array = rq_queue value = 230 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 166 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 166 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_ship_hull_heavy }
NOT = { is_in_array = { array = rq_queue value = 167 } }
NOT = { is_in_array = { array = rq_ap_ban value = 167 } }
NOT = { is_in_array = { array = global.rq_hid value = 167 } }
OR = {
can_research = basic_ship_hull_heavy
AND = {
OR = { is_in_array = { array = rq_queue value = 231 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 167 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 167 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 170 } }
if = {
limit = { check_variable = { rq_t < 169 } }
if = {
limit = {
NOT = { has_tech = basic_ship_hull_light }
NOT = { is_in_array = { array = rq_queue value = 168 } }
NOT = { is_in_array = { array = rq_ap_ban value = 168 } }
NOT = { is_in_array = { array = global.rq_hid value = 168 } }
OR = {
can_research = basic_ship_hull_light
AND = {
OR = { is_in_array = { array = rq_queue value = 232 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 168 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 168 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_ship_hull_submarine }
NOT = { is_in_array = { array = rq_queue value = 169 } }
NOT = { is_in_array = { array = rq_ap_ban value = 169 } }
NOT = { is_in_array = { array = global.rq_hid value = 169 } }
OR = {
can_research = basic_ship_hull_submarine
AND = {
OR = { is_in_array = { array = rq_queue value = 233 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 169 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 169 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 171 } }
if = {
limit = {
NOT = { has_tech = basic_small_airframe }
NOT = { is_in_array = { array = rq_queue value = 170 } }
NOT = { is_in_array = { array = rq_ap_ban value = 170 } }
NOT = { is_in_array = { array = global.rq_hid value = 170 } }
OR = {
can_research = basic_small_airframe
AND = {
OR = { is_in_array = { array = rq_queue value = 345 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 170 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_small_airframe }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_2 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 170 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 172 } }
if = {
limit = {
NOT = { has_tech = basic_submarine }
NOT = { is_in_array = { array = rq_queue value = 171 } }
NOT = { is_in_array = { array = rq_ap_ban value = 171 } }
NOT = { is_in_array = { array = global.rq_hid value = 171 } }
OR = {
can_research = basic_submarine
AND = {
OR = { is_in_array = { array = rq_queue value = 234 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 171 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 171 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_submarine_snorkel }
NOT = { is_in_array = { array = rq_queue value = 172 } }
NOT = { is_in_array = { array = rq_ap_ban value = 172 } }
NOT = { is_in_array = { array = global.rq_hid value = 172 } }
OR = {
can_research = basic_submarine_snorkel
AND = {
OR = { is_in_array = { array = rq_queue value = 325 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 172 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = HOL } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { has_war_with = ENG has_War_with = USA } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 172 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 190 } }
if = {
limit = { check_variable = { rq_t < 181 } }
if = {
limit = { check_variable = { rq_t < 177 } }
if = {
limit = { check_variable = { rq_t < 175 } }
if = {
limit = { check_variable = { rq_t < 174 } }
if = {
limit = {
NOT = { has_tech = basic_torpedo }
NOT = { is_in_array = { array = rq_queue value = 173 } }
NOT = { is_in_array = { array = rq_ap_ban value = 173 } }
NOT = { is_in_array = { array = global.rq_hid value = 173 } }
OR = {
can_research = basic_torpedo
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 173 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 173 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = basic_train }
NOT = { is_in_array = { array = rq_queue value = 174 } }
NOT = { is_in_array = { array = rq_ap_ban value = 174 } }
NOT = { is_in_array = { array = global.rq_hid value = 174 } }
OR = {
can_research = basic_train
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 174 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { num_of_factories > 25 }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1936.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 174 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 176 } }
if = {
limit = {
NOT = { has_tech = bba_early_transport_plane }
NOT = { is_in_array = { array = rq_queue value = 175 } }
NOT = { is_in_array = { array = rq_ap_ban value = 175 } }
NOT = { is_in_array = { array = global.rq_hid value = 175 } }
OR = {
can_research = bba_early_transport_plane
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 175 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 175 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = bba_improved_transport_plane }
NOT = { is_in_array = { array = rq_queue value = 176 } }
NOT = { is_in_array = { array = rq_ap_ban value = 176 } }
NOT = { is_in_array = { array = global.rq_hid value = 176 } }
OR = {
can_research = bba_improved_transport_plane
AND = {
OR = { is_in_array = { array = rq_queue value = 175 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 176 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 176 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 179 } }
if = {
limit = { check_variable = { rq_t < 178 } }
if = {
limit = {
NOT = { has_tech = bba_strategic_airlifter }
NOT = { is_in_array = { array = rq_queue value = 177 } }
NOT = { is_in_array = { array = rq_ap_ban value = 177 } }
NOT = { is_in_array = { array = global.rq_hid value = 177 } }
OR = {
can_research = bba_strategic_airlifter
AND = {
OR = { is_in_array = { array = rq_queue value = 176 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 177 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 177 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 180 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 185 } }
if = {
limit = { check_variable = { rq_t < 183 } }
if = {
limit = { check_variable = { rq_t < 182 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 184 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 187 } }
if = {
limit = { check_variable = { rq_t < 186 } }
if = {
limit = {
NOT = { has_tech = coastal_fort_tech_1 }
NOT = { is_in_array = { array = rq_queue value = 185 } }
NOT = { is_in_array = { array = rq_ap_ban value = 185 } }
NOT = { is_in_array = { array = global.rq_hid value = 185 } }
OR = {
can_research = coastal_fort_tech_1
AND = {
OR = { is_in_array = { array = rq_queue value = 138 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 185 }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_fort }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 185 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = coastal_fort_tech_2 }
NOT = { is_in_array = { array = rq_queue value = 186 } }
NOT = { is_in_array = { array = rq_ap_ban value = 186 } }
NOT = { is_in_array = { array = global.rq_hid value = 186 } }
OR = {
can_research = coastal_fort_tech_2
AND = {
OR = { is_in_array = { array = rq_queue value = 185 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 186 }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_fort }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 186 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 188 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 189 } }
if = {
limit = {
NOT = { has_tech = computing_machine }
NOT = { is_in_array = { array = rq_queue value = 188 } }
NOT = { is_in_array = { array = rq_ap_ban value = 188 } }
NOT = { is_in_array = { array = global.rq_hid value = 188 } }
OR = {
can_research = computing_machine
AND = {
OR = { is_in_array = { array = rq_queue value = 369 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 188 }
set_temp_variable = { rq_ap_w = 6 }
if = {
limit = { date > "1938.1.6" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 188 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = concentrated_industry }
NOT = { is_in_array = { array = rq_queue value = 189 } }
NOT = { is_in_array = { array = rq_ap_ban value = 189 } }
NOT = { is_in_array = { array = global.rq_hid value = 189 } }
NOT = { has_tech = dispersed_industry }
NOT = { is_in_array = { array = rq_queue value = 215 } }
OR = {
can_research = concentrated_industry
AND = {
OR = { is_in_array = { array = rq_queue value = 157 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 189 }
set_temp_variable = { rq_ap_w = 25 }
if = {
limit = { NOT = { tag = GER } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = dispersed_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_researching_technology = dispersed_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 189 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 199 } }
if = {
limit = { check_variable = { rq_t < 194 } }
if = {
limit = { check_variable = { rq_t < 192 } }
if = {
limit = { check_variable = { rq_t < 191 } }
if = {
limit = {
NOT = { has_tech = concentrated_industry2 }
NOT = { is_in_array = { array = rq_queue value = 190 } }
NOT = { is_in_array = { array = rq_ap_ban value = 190 } }
NOT = { is_in_array = { array = global.rq_hid value = 190 } }
NOT = { is_in_array = { array = rq_queue value = 215 } }
OR = {
can_research = concentrated_industry2
AND = {
OR = { is_in_array = { array = rq_queue value = 189 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 190 }
set_temp_variable = { rq_ap_w = 20 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 190 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = concentrated_industry3 }
NOT = { is_in_array = { array = rq_queue value = 191 } }
NOT = { is_in_array = { array = rq_ap_ban value = 191 } }
NOT = { is_in_array = { array = global.rq_hid value = 191 } }
NOT = { is_in_array = { array = rq_queue value = 215 } }
OR = {
can_research = concentrated_industry3
AND = {
OR = { is_in_array = { array = rq_queue value = 190 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 191 }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 191 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 193 } }
if = {
limit = {
NOT = { has_tech = concentrated_industry4 }
NOT = { is_in_array = { array = rq_queue value = 192 } }
NOT = { is_in_array = { array = rq_ap_ban value = 192 } }
NOT = { is_in_array = { array = global.rq_hid value = 192 } }
NOT = { is_in_array = { array = rq_queue value = 215 } }
OR = {
can_research = concentrated_industry4
AND = {
OR = { is_in_array = { array = rq_queue value = 191 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 192 }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 192 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = concentrated_industry5 }
NOT = { is_in_array = { array = rq_queue value = 193 } }
NOT = { is_in_array = { array = rq_ap_ban value = 193 } }
NOT = { is_in_array = { array = global.rq_hid value = 193 } }
NOT = { is_in_array = { array = rq_queue value = 215 } }
OR = {
can_research = concentrated_industry5
AND = {
OR = { is_in_array = { array = rq_queue value = 192 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 193 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1942.1.9" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 193 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 196 } }
if = {
limit = { check_variable = { rq_t < 195 } }
if = {
limit = {
NOT = { has_tech = construction1 }
NOT = { is_in_array = { array = rq_queue value = 194 } }
NOT = { is_in_array = { array = rq_ap_ban value = 194 } }
NOT = { is_in_array = { array = global.rq_hid value = 194 } }
OR = {
can_research = construction1
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 194 }
set_temp_variable = { rq_ap_w = 50 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_con }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 194 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = construction2 }
NOT = { is_in_array = { array = rq_queue value = 195 } }
NOT = { is_in_array = { array = rq_ap_ban value = 195 } }
NOT = { is_in_array = { array = global.rq_hid value = 195 } }
OR = {
can_research = construction2
AND = {
OR = { is_in_array = { array = rq_queue value = 194 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 195 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_con }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 195 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 197 } }
if = {
limit = {
NOT = { has_tech = construction3 }
NOT = { is_in_array = { array = rq_queue value = 196 } }
NOT = { is_in_array = { array = rq_ap_ban value = 196 } }
NOT = { is_in_array = { array = global.rq_hid value = 196 } }
OR = {
can_research = construction3
AND = {
OR = { is_in_array = { array = rq_queue value = 195 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 196 }
set_temp_variable = { rq_ap_w = 10 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_con }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 196 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 198 } }
if = {
limit = {
NOT = { has_tech = construction4 }
NOT = { is_in_array = { array = rq_queue value = 197 } }
NOT = { is_in_array = { array = rq_ap_ban value = 197 } }
NOT = { is_in_array = { array = global.rq_hid value = 197 } }
OR = {
can_research = construction4
AND = {
OR = { is_in_array = { array = rq_queue value = 196 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 197 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_con }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 197 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = construction5 }
NOT = { is_in_array = { array = rq_queue value = 198 } }
NOT = { is_in_array = { array = rq_ap_ban value = 198 } }
NOT = { is_in_array = { array = global.rq_hid value = 198 } }
OR = {
can_research = construction5
AND = {
OR = { is_in_array = { array = rq_queue value = 197 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 198 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_con }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 198 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 203 } }
if = {
limit = { check_variable = { rq_t < 201 } }
if = {
limit = { check_variable = { rq_t < 200 } }
}
else = {
if = {
limit = {
NOT = { has_tech = cv_CAS1 }
NOT = { is_in_array = { array = rq_queue value = 200 } }
NOT = { is_in_array = { array = rq_ap_ban value = 200 } }
NOT = { is_in_array = { array = global.rq_hid value = 200 } }
OR = {
can_research = cv_CAS1
AND = {
OR = { is_in_array = { array = rq_queue value = 4 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 200 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = CAS2 is_researching_technology = CAS2 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_4 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 200 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 202 } }
if = {
limit = {
NOT = { has_tech = cv_CAS2 }
NOT = { is_in_array = { array = rq_queue value = 201 } }
NOT = { is_in_array = { array = rq_ap_ban value = 201 } }
NOT = { is_in_array = { array = global.rq_hid value = 201 } }
OR = {
can_research = cv_CAS2
AND = {
OR = { is_in_array = { array = rq_queue value = 5 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 201 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = CAS3 is_researching_technology = CAS3 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_4 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 201 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = cv_CAS3 }
NOT = { is_in_array = { array = rq_queue value = 202 } }
NOT = { is_in_array = { array = rq_ap_ban value = 202 } }
NOT = { is_in_array = { array = global.rq_hid value = 202 } }
OR = {
can_research = cv_CAS3
AND = {
OR = { is_in_array = { array = rq_queue value = 6 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 202 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_4 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 202 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 205 } }
if = {
limit = { check_variable = { rq_t < 204 } }
if = {
limit = {
NOT = { has_tech = cv_early_fighter }
NOT = { is_in_array = { array = rq_queue value = 203 } }
NOT = { is_in_array = { array = rq_ap_ban value = 203 } }
NOT = { is_in_array = { array = global.rq_hid value = 203 } }
OR = {
can_research = cv_early_fighter
AND = {
OR = { is_in_array = { array = rq_queue value = 226 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 203 }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { has_tech = fighter1 is_researching_technology = fighter1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 203 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = cv_fighter1 }
NOT = { is_in_array = { array = rq_queue value = 204 } }
NOT = { is_in_array = { array = rq_ap_ban value = 204 } }
NOT = { is_in_array = { array = global.rq_hid value = 204 } }
OR = {
can_research = cv_fighter1
AND = {
OR = { is_in_array = { array = rq_queue value = 254 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 204 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = fighter2 is_researching_technology = fighter2 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 204 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 206 } }
if = {
limit = {
NOT = { has_tech = cv_fighter2 }
NOT = { is_in_array = { array = rq_queue value = 205 } }
NOT = { is_in_array = { array = rq_ap_ban value = 205 } }
NOT = { is_in_array = { array = global.rq_hid value = 205 } }
OR = {
can_research = cv_fighter2
AND = {
OR = { is_in_array = { array = rq_queue value = 255 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 205 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { AND = { is_historical_focus_on = yes tag = JAP } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.6.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = fighter3 is_researching_technology = fighter3 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 205 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 207 } }
if = {
limit = {
NOT = { has_tech = cv_fighter3 }
NOT = { is_in_array = { array = rq_queue value = 206 } }
NOT = { is_in_array = { array = rq_ap_ban value = 206 } }
NOT = { is_in_array = { array = global.rq_hid value = 206 } }
OR = {
can_research = cv_fighter3
AND = {
OR = { is_in_array = { array = rq_queue value = 256 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 206 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 206 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = cv_naval_bomber1 }
NOT = { is_in_array = { array = rq_queue value = 207 } }
NOT = { is_in_array = { array = rq_ap_ban value = 207 } }
NOT = { is_in_array = { array = global.rq_hid value = 207 } }
OR = {
can_research = cv_naval_bomber1
AND = {
OR = { is_in_array = { array = rq_queue value = 399 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 207 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = naval_bomber2 is_researching_technology = naval_bomber2 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 207 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 242 } }
if = {
limit = { check_variable = { rq_t < 225 } }
if = {
limit = { check_variable = { rq_t < 216 } }
if = {
limit = { check_variable = { rq_t < 212 } }
if = {
limit = { check_variable = { rq_t < 210 } }
if = {
limit = { check_variable = { rq_t < 209 } }
if = {
limit = {
NOT = { has_tech = cv_naval_bomber2 }
NOT = { is_in_array = { array = rq_queue value = 208 } }
NOT = { is_in_array = { array = rq_ap_ban value = 208 } }
NOT = { is_in_array = { array = global.rq_hid value = 208 } }
OR = {
can_research = cv_naval_bomber2
AND = {
OR = { is_in_array = { array = rq_queue value = 400 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 208 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { OR = { has_tech = naval_bomber3 is_researching_technology = naval_bomber3 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 208 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = cv_naval_bomber3 }
NOT = { is_in_array = { array = rq_queue value = 209 } }
NOT = { is_in_array = { array = rq_ap_ban value = 209 } }
NOT = { is_in_array = { array = global.rq_hid value = 209 } }
OR = {
can_research = cv_naval_bomber3
AND = {
OR = { is_in_array = { array = rq_queue value = 401 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 209 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 209 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 211 } }
if = {
limit = {
NOT = { has_tech = damage_control_1 }
NOT = { is_in_array = { array = rq_queue value = 210 } }
NOT = { is_in_array = { array = rq_ap_ban value = 210 } }
NOT = { is_in_array = { array = global.rq_hid value = 210 } }
OR = {
can_research = damage_control_1
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 210 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date < 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { size < 10 } }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_historical_focus_on = yes tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_damage_control }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 210 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = damage_control_2 }
NOT = { is_in_array = { array = rq_queue value = 211 } }
NOT = { is_in_array = { array = rq_ap_ban value = 211 } }
NOT = { is_in_array = { array = global.rq_hid value = 211 } }
OR = {
can_research = damage_control_2
AND = {
OR = { is_in_array = { array = rq_queue value = 210 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 211 }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date < 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_historical_focus_on = yes tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_damage_control }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 211 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 214 } }
if = {
limit = { check_variable = { rq_t < 213 } }
if = {
limit = {
NOT = { has_tech = damage_control_3 }
NOT = { is_in_array = { array = rq_queue value = 212 } }
NOT = { is_in_array = { array = rq_ap_ban value = 212 } }
NOT = { is_in_array = { array = global.rq_hid value = 212 } }
OR = {
can_research = damage_control_3
AND = {
OR = { is_in_array = { array = rq_queue value = 211 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 212 }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date < 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_historical_focus_on = yes tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_damage_control }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 212 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = degaussing }
NOT = { is_in_array = { array = rq_queue value = 213 } }
NOT = { is_in_array = { array = rq_ap_ban value = 213 } }
NOT = { is_in_array = { array = global.rq_hid value = 213 } }
OR = {
can_research = degaussing
AND = {
OR = { is_in_array = { array = rq_queue value = 316 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 213 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 213 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 215 } }
}
else = {
if = {
limit = {
NOT = { has_tech = dispersed_industry }
NOT = { is_in_array = { array = rq_queue value = 215 } }
NOT = { is_in_array = { array = rq_ap_ban value = 215 } }
NOT = { is_in_array = { array = global.rq_hid value = 215 } }
NOT = { has_tech = concentrated_industry }
NOT = { is_in_array = { array = rq_queue value = 189 } }
OR = {
can_research = dispersed_industry
AND = {
OR = { is_in_array = { array = rq_queue value = 157 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 215 }
set_temp_variable = { rq_ap_w = 25 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = concentrated_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_researching_technology = concentrated_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 215 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 220 } }
if = {
limit = { check_variable = { rq_t < 218 } }
if = {
limit = { check_variable = { rq_t < 217 } }
if = {
limit = {
NOT = { has_tech = dispersed_industry2 }
NOT = { is_in_array = { array = rq_queue value = 216 } }
NOT = { is_in_array = { array = rq_ap_ban value = 216 } }
NOT = { is_in_array = { array = global.rq_hid value = 216 } }
NOT = { is_in_array = { array = rq_queue value = 189 } }
OR = {
can_research = dispersed_industry2
AND = {
OR = { is_in_array = { array = rq_queue value = 215 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 216 }
set_temp_variable = { rq_ap_w = 20 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 216 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = dispersed_industry3 }
NOT = { is_in_array = { array = rq_queue value = 217 } }
NOT = { is_in_array = { array = rq_ap_ban value = 217 } }
NOT = { is_in_array = { array = global.rq_hid value = 217 } }
NOT = { is_in_array = { array = rq_queue value = 189 } }
OR = {
can_research = dispersed_industry3
AND = {
OR = { is_in_array = { array = rq_queue value = 216 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 217 }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 217 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 219 } }
if = {
limit = {
NOT = { has_tech = dispersed_industry4 }
NOT = { is_in_array = { array = rq_queue value = 218 } }
NOT = { is_in_array = { array = rq_ap_ban value = 218 } }
NOT = { is_in_array = { array = global.rq_hid value = 218 } }
NOT = { is_in_array = { array = rq_queue value = 189 } }
OR = {
can_research = dispersed_industry4
AND = {
OR = { is_in_array = { array = rq_queue value = 217 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 218 }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 218 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = dispersed_industry5 }
NOT = { is_in_array = { array = rq_queue value = 219 } }
NOT = { is_in_array = { array = rq_ap_ban value = 219 } }
NOT = { is_in_array = { array = global.rq_hid value = 219 } }
NOT = { is_in_array = { array = rq_queue value = 189 } }
OR = {
can_research = dispersed_industry5
AND = {
OR = { is_in_array = { array = rq_queue value = 218 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 219 }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 219 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 222 } }
if = {
limit = { check_variable = { rq_t < 221 } }
if = {
limit = {
NOT = { has_tech = early_battlecruiser }
NOT = { is_in_array = { array = rq_queue value = 220 } }
NOT = { is_in_array = { array = rq_ap_ban value = 220 } }
NOT = { is_in_array = { array = global.rq_hid value = 220 } }
OR = {
can_research = early_battlecruiser
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 220 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 220 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = early_battleship }
NOT = { is_in_array = { array = rq_queue value = 221 } }
NOT = { is_in_array = { array = rq_ap_ban value = 221 } }
NOT = { is_in_array = { array = global.rq_hid value = 221 } }
OR = {
can_research = early_battleship
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 221 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 221 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 223 } }
if = {
limit = {
NOT = { has_tech = early_bomber }
NOT = { is_in_array = { array = rq_queue value = 222 } }
NOT = { is_in_array = { array = rq_ap_ban value = 222 } }
NOT = { is_in_array = { array = global.rq_hid value = 222 } }
OR = {
can_research = early_bomber
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 222 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_tac }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 222 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 224 } }
if = {
limit = {
NOT = { has_tech = early_bombs }
NOT = { is_in_array = { array = rq_queue value = 223 } }
NOT = { is_in_array = { array = rq_ap_ban value = 223 } }
NOT = { is_in_array = { array = global.rq_hid value = 223 } }
OR = {
can_research = early_bombs
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 223 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_bomb }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 223 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = early_carrier }
NOT = { is_in_array = { array = rq_queue value = 224 } }
NOT = { is_in_array = { array = rq_ap_ban value = 224 } }
NOT = { is_in_array = { array = global.rq_hid value = 224 } }
OR = {
can_research = early_carrier
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 224 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 224 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 233 } }
if = {
limit = { check_variable = { rq_t < 229 } }
if = {
limit = { check_variable = { rq_t < 227 } }
if = {
limit = { check_variable = { rq_t < 226 } }
if = {
limit = {
NOT = { has_tech = early_destroyer }
NOT = { is_in_array = { array = rq_queue value = 225 } }
NOT = { is_in_array = { array = rq_ap_ban value = 225 } }
NOT = { is_in_array = { array = global.rq_hid value = 225 } }
OR = {
can_research = early_destroyer
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 225 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 225 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = early_fighter }
NOT = { is_in_array = { array = rq_queue value = 226 } }
NOT = { is_in_array = { array = rq_ap_ban value = 226 } }
NOT = { is_in_array = { array = global.rq_hid value = 226 } }
OR = {
can_research = early_fighter
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 226 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 226 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 228 } }
if = {
limit = {
NOT = { has_tech = early_heavy_cruiser }
NOT = { is_in_array = { array = rq_queue value = 227 } }
NOT = { is_in_array = { array = rq_ap_ban value = 227 } }
NOT = { is_in_array = { array = global.rq_hid value = 227 } }
OR = {
can_research = early_heavy_cruiser
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 227 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 227 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = early_light_cruiser }
NOT = { is_in_array = { array = rq_queue value = 228 } }
NOT = { is_in_array = { array = rq_ap_ban value = 228 } }
NOT = { is_in_array = { array = global.rq_hid value = 228 } }
OR = {
can_research = early_light_cruiser
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 228 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 228 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 231 } }
if = {
limit = { check_variable = { rq_t < 230 } }
if = {
limit = {
NOT = { has_tech = early_ship_hull_carrier }
NOT = { is_in_array = { array = rq_queue value = 229 } }
NOT = { is_in_array = { array = rq_ap_ban value = 229 } }
NOT = { is_in_array = { array = global.rq_hid value = 229 } }
OR = {
can_research = early_ship_hull_carrier
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 229 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 229 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = early_ship_hull_cruiser }
NOT = { is_in_array = { array = rq_queue value = 230 } }
NOT = { is_in_array = { array = rq_ap_ban value = 230 } }
NOT = { is_in_array = { array = global.rq_hid value = 230 } }
OR = {
can_research = early_ship_hull_cruiser
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 230 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 230 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 232 } }
if = {
limit = {
NOT = { has_tech = early_ship_hull_heavy }
NOT = { is_in_array = { array = rq_queue value = 231 } }
NOT = { is_in_array = { array = rq_ap_ban value = 231 } }
NOT = { is_in_array = { array = global.rq_hid value = 231 } }
OR = {
can_research = early_ship_hull_heavy
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 231 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 231 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = early_ship_hull_light }
NOT = { is_in_array = { array = rq_queue value = 232 } }
NOT = { is_in_array = { array = rq_ap_ban value = 232 } }
NOT = { is_in_array = { array = global.rq_hid value = 232 } }
OR = {
can_research = early_ship_hull_light
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 232 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 232 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 237 } }
if = {
limit = { check_variable = { rq_t < 235 } }
if = {
limit = { check_variable = { rq_t < 234 } }
if = {
limit = {
NOT = { has_tech = early_ship_hull_submarine }
NOT = { is_in_array = { array = rq_queue value = 233 } }
NOT = { is_in_array = { array = rq_ap_ban value = 233 } }
NOT = { is_in_array = { array = global.rq_hid value = 233 } }
OR = {
can_research = early_ship_hull_submarine
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 233 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 233 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = early_submarine }
NOT = { is_in_array = { array = rq_queue value = 234 } }
NOT = { is_in_array = { array = rq_ap_ban value = 234 } }
NOT = { is_in_array = { array = global.rq_hid value = 234 } }
OR = {
can_research = early_submarine
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 234 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 234 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 236 } }
if = {
limit = {
NOT = { has_tech = early_transport_plane }
NOT = { is_in_array = { array = rq_queue value = 235 } }
NOT = { is_in_array = { array = rq_ap_ban value = 235 } }
NOT = { is_in_array = { array = global.rq_hid value = 235 } }
OR = {
can_research = early_transport_plane
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 235 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 235 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = electronic_mechanical_engineering }
NOT = { is_in_array = { array = rq_queue value = 236 } }
NOT = { is_in_array = { array = rq_ap_ban value = 236 } }
NOT = { is_in_array = { array = global.rq_hid value = 236 } }
OR = {
can_research = electronic_mechanical_engineering
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 236 }
set_temp_variable = { rq_ap_w = 30 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 236 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 239 } }
if = {
limit = { check_variable = { rq_t < 238 } }
}
else = {
if = {
limit = {
NOT = { has_tech = elite_forces }
NOT = { is_in_array = { array = rq_queue value = 238 } }
NOT = { is_in_array = { array = rq_ap_ban value = 238 } }
NOT = { is_in_array = { array = global.rq_hid value = 238 } }
OR = {
can_research = elite_forces
AND = {
OR = { is_in_array = { array = rq_queue value = 253 } is_in_array = { array = rq_queue value = 503 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 238 }
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 238 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 240 } }
if = {
limit = {
NOT = { has_tech = engine_tech_1 }
NOT = { is_in_array = { array = rq_queue value = 239 } }
NOT = { is_in_array = { array = rq_ap_ban value = 239 } }
NOT = { is_in_array = { array = global.rq_hid value = 239 } }
OR = {
can_research = engine_tech_1
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 239 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_eng }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 239 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 241 } }
if = {
limit = {
NOT = { has_tech = engine_tech_2 }
NOT = { is_in_array = { array = rq_queue value = 240 } }
NOT = { is_in_array = { array = rq_ap_ban value = 240 } }
NOT = { is_in_array = { array = global.rq_hid value = 240 } }
OR = {
can_research = engine_tech_2
AND = {
OR = { is_in_array = { array = rq_queue value = 239 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 240 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_eng }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 240 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = engine_tech_3 }
NOT = { is_in_array = { array = rq_queue value = 241 } }
NOT = { is_in_array = { array = rq_ap_ban value = 241 } }
NOT = { is_in_array = { array = global.rq_hid value = 241 } }
OR = {
can_research = engine_tech_3
AND = {
OR = { is_in_array = { array = rq_queue value = 240 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 241 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_eng }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 241 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 259 } }
if = {
limit = { check_variable = { rq_t < 250 } }
if = {
limit = { check_variable = { rq_t < 246 } }
if = {
limit = { check_variable = { rq_t < 244 } }
if = {
limit = { check_variable = { rq_t < 243 } }
if = {
limit = {
NOT = { has_tech = engine_tech_4 }
NOT = { is_in_array = { array = rq_queue value = 242 } }
NOT = { is_in_array = { array = rq_ap_ban value = 242 } }
NOT = { is_in_array = { array = global.rq_hid value = 242 } }
OR = {
can_research = engine_tech_4
AND = {
OR = { is_in_array = { array = rq_queue value = 241 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 242 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_eng }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 242 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = engines_1 }
NOT = { is_in_array = { array = rq_queue value = 243 } }
NOT = { is_in_array = { array = rq_ap_ban value = 243 } }
NOT = { is_in_array = { array = global.rq_hid value = 243 } }
OR = {
can_research = engines_1
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 243 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_eng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 243 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 245 } }
if = {
limit = {
NOT = { has_tech = engines_2 }
NOT = { is_in_array = { array = rq_queue value = 244 } }
NOT = { is_in_array = { array = rq_ap_ban value = 244 } }
NOT = { is_in_array = { array = global.rq_hid value = 244 } }
OR = {
can_research = engines_2
AND = {
OR = { is_in_array = { array = rq_queue value = 243 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 244 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_engines_2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_eng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 244 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = engines_3 }
NOT = { is_in_array = { array = rq_queue value = 245 } }
NOT = { is_in_array = { array = rq_ap_ban value = 245 } }
NOT = { is_in_array = { array = global.rq_hid value = 245 } }
OR = {
can_research = engines_3
AND = {
OR = { is_in_array = { array = rq_queue value = 244 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 245 }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { is_major = yes date > "1940.6.1" }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date < "1940.12.1" }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_engines_3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_eng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 245 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 248 } }
if = {
limit = { check_variable = { rq_t < 247 } }
if = {
limit = {
NOT = { has_tech = engines_4 }
NOT = { is_in_array = { array = rq_queue value = 246 } }
NOT = { is_in_array = { array = rq_ap_ban value = 246 } }
NOT = { is_in_array = { array = global.rq_hid value = 246 } }
OR = {
can_research = engines_4
AND = {
OR = { is_in_array = { array = rq_queue value = 245 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 246 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_engines_4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_eng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 246 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = excavation1 }
NOT = { is_in_array = { array = rq_queue value = 247 } }
NOT = { is_in_array = { array = rq_ap_ban value = 247 } }
NOT = { is_in_array = { array = global.rq_hid value = 247 } }
OR = {
can_research = excavation1
AND = {
OR = { is_in_array = { array = rq_queue value = 194 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 247 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 247 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 249 } }
if = {
limit = {
NOT = { has_tech = excavation2 }
NOT = { is_in_array = { array = rq_queue value = 248 } }
NOT = { is_in_array = { array = rq_ap_ban value = 248 } }
NOT = { is_in_array = { array = global.rq_hid value = 248 } }
OR = {
can_research = excavation2
AND = {
OR = { is_in_array = { array = rq_queue value = 195 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 248 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 248 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = excavation3 }
NOT = { is_in_array = { array = rq_queue value = 249 } }
NOT = { is_in_array = { array = rq_ap_ban value = 249 } }
NOT = { is_in_array = { array = global.rq_hid value = 249 } }
OR = {
can_research = excavation3
AND = {
OR = { is_in_array = { array = rq_queue value = 196 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 249 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 249 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 254 } }
if = {
limit = { check_variable = { rq_t < 252 } }
if = {
limit = { check_variable = { rq_t < 251 } }
if = {
limit = {
NOT = { has_tech = excavation4 }
NOT = { is_in_array = { array = rq_queue value = 250 } }
NOT = { is_in_array = { array = rq_ap_ban value = 250 } }
NOT = { is_in_array = { array = global.rq_hid value = 250 } }
OR = {
can_research = excavation4
AND = {
OR = { is_in_array = { array = rq_queue value = 197 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 250 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 250 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = excavation5 }
NOT = { is_in_array = { array = rq_queue value = 251 } }
NOT = { is_in_array = { array = rq_ap_ban value = 251 } }
NOT = { is_in_array = { array = global.rq_hid value = 251 } }
OR = {
can_research = excavation5
AND = {
OR = { is_in_array = { array = rq_queue value = 198 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 251 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 251 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 253 } }
if = {
limit = {
NOT = { has_tech = experimental_rockets }
NOT = { is_in_array = { array = rq_queue value = 252 } }
NOT = { is_in_array = { array = rq_ap_ban value = 252 } }
NOT = { is_in_array = { array = global.rq_hid value = 252 } }
OR = {
can_research = experimental_rockets
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 252 }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_roc }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 252 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = extreme_environment_training }
NOT = { is_in_array = { array = rq_queue value = 253 } }
NOT = { is_in_array = { array = rq_ap_ban value = 253 } }
NOT = { is_in_array = { array = global.rq_hid value = 253 } }
NOT = { is_in_array = { array = rq_queue value = 329 } }
OR = {
can_research = extreme_environment_training
AND = {
OR = { is_in_array = { array = rq_queue value = 83 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 253 }
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 253 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 256 } }
if = {
limit = { check_variable = { rq_t < 255 } }
if = {
limit = {
NOT = { has_tech = fighter1 }
NOT = { is_in_array = { array = rq_queue value = 254 } }
NOT = { is_in_array = { array = rq_ap_ban value = 254 } }
NOT = { is_in_array = { array = global.rq_hid value = 254 } }
OR = {
can_research = fighter1
AND = {
OR = { is_in_array = { array = rq_queue value = 226 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 254 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 254 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = fighter2 }
NOT = { is_in_array = { array = rq_queue value = 255 } }
NOT = { is_in_array = { array = rq_ap_ban value = 255 } }
NOT = { is_in_array = { array = global.rq_hid value = 255 } }
OR = {
can_research = fighter2
AND = {
OR = { is_in_array = { array = rq_queue value = 254 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 255 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date < "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 255 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 257 } }
if = {
limit = {
NOT = { has_tech = fighter3 }
NOT = { is_in_array = { array = rq_queue value = 256 } }
NOT = { is_in_array = { array = rq_ap_ban value = 256 } }
NOT = { is_in_array = { array = global.rq_hid value = 256 } }
OR = {
can_research = fighter3
AND = {
OR = { is_in_array = { array = rq_queue value = 255 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 256 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 256 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 258 } }
if = {
limit = {
NOT = { has_tech = fire_control_methods_1 }
NOT = { is_in_array = { array = rq_queue value = 257 } }
NOT = { is_in_array = { array = rq_ap_ban value = 257 } }
NOT = { is_in_array = { array = global.rq_hid value = 257 } }
OR = {
can_research = fire_control_methods_1
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 257 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_navy_size = { size < 10 } }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_fire_control_methods }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 257 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = fire_control_methods_2 }
NOT = { is_in_array = { array = rq_queue value = 258 } }
NOT = { is_in_array = { array = rq_ap_ban value = 258 } }
NOT = { is_in_array = { array = global.rq_hid value = 258 } }
OR = {
can_research = fire_control_methods_2
AND = {
OR = { is_in_array = { array = rq_queue value = 257 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 258 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_fire_control_methods }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 258 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 268 } }
if = {
limit = { check_variable = { rq_t < 263 } }
if = {
limit = { check_variable = { rq_t < 261 } }
if = {
limit = { check_variable = { rq_t < 260 } }
if = {
limit = {
NOT = { has_tech = fire_control_methods_3 }
NOT = { is_in_array = { array = rq_queue value = 259 } }
NOT = { is_in_array = { array = rq_ap_ban value = 259 } }
NOT = { is_in_array = { array = global.rq_hid value = 259 } }
OR = {
can_research = fire_control_methods_3
AND = {
OR = { is_in_array = { array = rq_queue value = 258 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 259 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_fire_control_methods }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 259 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 262 } }
if = {
limit = {
NOT = { has_tech = flexible_line }
NOT = { is_in_array = { array = rq_queue value = 261 } }
NOT = { is_in_array = { array = rq_ap_ban value = 261 } }
NOT = { is_in_array = { array = global.rq_hid value = 261 } }
NOT = { has_tech = streamlined_line }
NOT = { is_in_array = { array = rq_queue value = 485 } }
OR = {
can_research = flexible_line
AND = {
OR = { is_in_array = { array = rq_queue value = 125 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 261 }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 261 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = fuel_refining }
NOT = { is_in_array = { array = rq_queue value = 262 } }
NOT = { is_in_array = { array = rq_ap_ban value = 262 } }
NOT = { is_in_array = { array = global.rq_hid value = 262 } }
OR = {
can_research = fuel_refining
AND = {
OR = { is_in_array = { array = rq_queue value = 267 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 262 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 10 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 10 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 262 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 265 } }
if = {
limit = { check_variable = { rq_t < 264 } }
if = {
limit = {
NOT = { has_tech = fuel_refining2 }
NOT = { is_in_array = { array = rq_queue value = 263 } }
NOT = { is_in_array = { array = rq_ap_ban value = 263 } }
NOT = { is_in_array = { array = global.rq_hid value = 263 } }
OR = {
can_research = fuel_refining2
AND = {
OR = { is_in_array = { array = rq_queue value = 262 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 263 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 263 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = fuel_refining3 }
NOT = { is_in_array = { array = rq_queue value = 264 } }
NOT = { is_in_array = { array = rq_ap_ban value = 264 } }
NOT = { is_in_array = { array = global.rq_hid value = 264 } }
OR = {
can_research = fuel_refining3
AND = {
OR = { is_in_array = { array = rq_queue value = 263 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 264 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 264 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 266 } }
if = {
limit = {
NOT = { has_tech = fuel_refining4 }
NOT = { is_in_array = { array = rq_queue value = 265 } }
NOT = { is_in_array = { array = rq_ap_ban value = 265 } }
NOT = { is_in_array = { array = global.rq_hid value = 265 } }
OR = {
can_research = fuel_refining4
AND = {
OR = { is_in_array = { array = rq_queue value = 264 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 265 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 265 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 267 } }
if = {
limit = {
NOT = { has_tech = fuel_refining5 }
NOT = { is_in_array = { array = rq_queue value = 266 } }
NOT = { is_in_array = { array = rq_ap_ban value = 266 } }
NOT = { is_in_array = { array = global.rq_hid value = 266 } }
OR = {
can_research = fuel_refining5
AND = {
OR = { is_in_array = { array = rq_queue value = 265 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 266 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 40 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 40 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 266 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = fuel_silos }
NOT = { is_in_array = { array = rq_queue value = 267 } }
NOT = { is_in_array = { array = rq_ap_ban value = 267 } }
NOT = { is_in_array = { array = global.rq_hid value = 267 } }
OR = {
can_research = fuel_silos
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 267 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 10 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 20 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 40 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 50 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 10 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 20 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 40 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 50 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 0.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 0.4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 267 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 272 } }
if = {
limit = { check_variable = { rq_t < 270 } }
if = {
limit = { check_variable = { rq_t < 269 } }
if = {
limit = {
NOT = { has_tech = gw_artillery }
NOT = { is_in_array = { array = rq_queue value = 268 } }
NOT = { is_in_array = { array = rq_ap_ban value = 268 } }
NOT = { is_in_array = { array = global.rq_hid value = 268 } }
OR = {
can_research = gw_artillery
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 268 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 268 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = gwtank }
NOT = { is_in_array = { array = rq_queue value = 269 } }
NOT = { is_in_array = { array = rq_ap_ban value = 269 } }
NOT = { is_in_array = { array = global.rq_hid value = 269 } }
OR = {
can_research = gwtank
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 269 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 269 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 271 } }
if = {
limit = {
NOT = { has_tech = gwtank_chassis }
NOT = { is_in_array = { array = rq_queue value = 270 } }
NOT = { is_in_array = { array = rq_ap_ban value = 270 } }
NOT = { is_in_array = { array = global.rq_hid value = 270 } }
OR = {
can_research = gwtank_chassis
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 270 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 270 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 274 } }
if = {
limit = { check_variable = { rq_t < 273 } }
}
else = {
if = {
limit = {
NOT = { has_tech = heavy_bombs }
NOT = { is_in_array = { array = rq_queue value = 273 } }
NOT = { is_in_array = { array = rq_ap_ban value = 273 } }
NOT = { is_in_array = { array = global.rq_hid value = 273 } }
OR = {
can_research = heavy_bombs
AND = {
OR = { is_in_array = { array = rq_queue value = 223 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 273 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_bomb }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 273 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 275 } }
if = {
limit = {
NOT = { has_tech = heavy_fighter1 }
NOT = { is_in_array = { array = rq_queue value = 274 } }
NOT = { is_in_array = { array = rq_ap_ban value = 274 } }
NOT = { is_in_array = { array = global.rq_hid value = 274 } }
OR = {
can_research = heavy_fighter1
AND = {
OR = { is_in_array = { array = rq_queue value = 222 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 274 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 274 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 276 } }
if = {
limit = {
NOT = { has_tech = heavy_fighter2 }
NOT = { is_in_array = { array = rq_queue value = 275 } }
NOT = { is_in_array = { array = rq_ap_ban value = 275 } }
NOT = { is_in_array = { array = global.rq_hid value = 275 } }
OR = {
can_research = heavy_fighter2
AND = {
OR = { is_in_array = { array = rq_queue value = 274 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 275 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 275 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = heavy_fighter3 }
NOT = { is_in_array = { array = rq_queue value = 276 } }
NOT = { is_in_array = { array = rq_ap_ban value = 276 } }
NOT = { is_in_array = { array = global.rq_hid value = 276 } }
OR = {
can_research = heavy_fighter3
AND = {
OR = { is_in_array = { array = rq_queue value = 275 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 276 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 276 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 415 } }
if = {
limit = { check_variable = { rq_t < 346 } }
if = {
limit = { check_variable = { rq_t < 311 } }
if = {
limit = { check_variable = { rq_t < 294 } }
if = {
limit = { check_variable = { rq_t < 285 } }
if = {
limit = { check_variable = { rq_t < 281 } }
if = {
limit = { check_variable = { rq_t < 279 } }
if = {
limit = { check_variable = { rq_t < 278 } }
}
else = {
if = {
limit = {
NOT = { has_tech = homing_torpedo }
NOT = { is_in_array = { array = rq_queue value = 278 } }
NOT = { is_in_array = { array = rq_ap_ban value = 278 } }
NOT = { is_in_array = { array = global.rq_hid value = 278 } }
OR = {
can_research = homing_torpedo
AND = {
OR = { is_in_array = { array = rq_queue value = 80 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 278 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 278 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 280 } }
if = {
limit = {
NOT = { has_tech = improved_battleship }
NOT = { is_in_array = { array = rq_queue value = 279 } }
NOT = { is_in_array = { array = rq_ap_ban value = 279 } }
NOT = { is_in_array = { array = global.rq_hid value = 279 } }
OR = {
can_research = improved_battleship
AND = {
OR = { is_in_array = { array = rq_queue value = 128 } is_in_array = { array = rq_queue value = 129 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 279 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 279 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_carrier }
NOT = { is_in_array = { array = rq_queue value = 280 } }
NOT = { is_in_array = { array = rq_ap_ban value = 280 } }
NOT = { is_in_array = { array = global.rq_hid value = 280 } }
OR = {
can_research = improved_carrier
AND = {
OR = { is_in_array = { array = rq_queue value = 130 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 280 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 280 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 283 } }
if = {
limit = { check_variable = { rq_t < 282 } }
if = {
limit = {
NOT = { has_tech = improved_computing_machine }
NOT = { is_in_array = { array = rq_queue value = 281 } }
NOT = { is_in_array = { array = rq_ap_ban value = 281 } }
NOT = { is_in_array = { array = global.rq_hid value = 281 } }
OR = {
can_research = improved_computing_machine
AND = {
OR = { is_in_array = { array = rq_queue value = 188 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 281 }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_computing_machine }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 281 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_decryption }
NOT = { is_in_array = { array = rq_queue value = 282 } }
NOT = { is_in_array = { array = rq_ap_ban value = 282 } }
NOT = { is_in_array = { array = global.rq_hid value = 282 } }
OR = {
can_research = improved_decryption
AND = {
OR = { is_in_array = { array = rq_queue value = 281 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 282 }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 282 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 284 } }
if = {
limit = {
NOT = { has_tech = improved_depth_charges }
NOT = { is_in_array = { array = rq_queue value = 283 } }
NOT = { is_in_array = { array = rq_ap_ban value = 283 } }
NOT = { is_in_array = { array = global.rq_hid value = 283 } }
OR = {
can_research = improved_depth_charges
AND = {
OR = { is_in_array = { array = rq_queue value = 133 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 283 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 283 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_destroyer }
NOT = { is_in_array = { array = rq_queue value = 284 } }
NOT = { is_in_array = { array = rq_ap_ban value = 284 } }
NOT = { is_in_array = { array = global.rq_hid value = 284 } }
OR = {
can_research = improved_destroyer
AND = {
OR = { is_in_array = { array = rq_queue value = 134 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 284 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 284 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 289 } }
if = {
limit = { check_variable = { rq_t < 287 } }
if = {
limit = { check_variable = { rq_t < 286 } }
if = {
limit = {
NOT = { has_tech = improved_dp_light_battery }
NOT = { is_in_array = { array = rq_queue value = 285 } }
NOT = { is_in_array = { array = rq_ap_ban value = 285 } }
NOT = { is_in_array = { array = global.rq_hid value = 285 } }
OR = {
can_research = improved_dp_light_battery
AND = {
OR = { is_in_array = { array = rq_queue value = 135 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 285 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 285 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_encryption }
NOT = { is_in_array = { array = rq_queue value = 286 } }
NOT = { is_in_array = { array = rq_ap_ban value = 286 } }
NOT = { is_in_array = { array = global.rq_hid value = 286 } }
OR = {
can_research = improved_encryption
AND = {
OR = { is_in_array = { array = rq_queue value = 281 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 286 }
set_temp_variable = { rq_ap_w = 1.75 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 286 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 288 } }
if = {
limit = {
NOT = { has_tech = improved_equipment_conversion }
NOT = { is_in_array = { array = rq_queue value = 287 } }
NOT = { is_in_array = { array = rq_ap_ban value = 287 } }
NOT = { is_in_array = { array = global.rq_hid value = 287 } }
OR = {
can_research = improved_equipment_conversion
AND = {
OR = { is_in_array = { array = rq_queue value = 309 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 287 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_resources_in_country = { resource = coal amount > 0 only_imported = yes } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { energy_ratio < 0.9 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 287 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_fire_control_system }
NOT = { is_in_array = { array = rq_queue value = 288 } }
NOT = { is_in_array = { array = rq_ap_ban value = 288 } }
NOT = { is_in_array = { array = global.rq_hid value = 288 } }
OR = {
can_research = improved_fire_control_system
AND = {
OR = { is_in_array = { array = rq_queue value = 188 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 288 }
set_temp_variable = { rq_ap_w = 0.75 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = advanced_fire_control_system has_tech = advanced_fire_control_system } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 288 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 291 } }
if = {
limit = { check_variable = { rq_t < 290 } }
if = {
limit = {
NOT = { has_tech = improved_heavy_armor_scheme }
NOT = { is_in_array = { array = rq_queue value = 289 } }
NOT = { is_in_array = { array = rq_ap_ban value = 289 } }
NOT = { is_in_array = { array = global.rq_hid value = 289 } }
OR = {
can_research = improved_heavy_armor_scheme
AND = {
OR = { is_in_array = { array = rq_queue value = 139 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 289 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date < 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = improved_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 289 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_heavy_art }
NOT = { is_in_array = { array = rq_queue value = 290 } }
NOT = { is_in_array = { array = rq_ap_ban value = 290 } }
NOT = { is_in_array = { array = global.rq_hid value = 290 } }
OR = {
can_research = improved_heavy_art
AND = {
OR = { is_in_array = { array = rq_queue value = 295 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 290 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_heavy_art can_research = advanced_heavy_art is_researching_technology = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 290 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 292 } }
if = {
limit = {
NOT = { has_tech = improved_heavy_battery }
NOT = { is_in_array = { array = rq_queue value = 291 } }
NOT = { is_in_array = { array = rq_ap_ban value = 291 } }
NOT = { is_in_array = { array = global.rq_hid value = 291 } }
OR = {
can_research = improved_heavy_battery
AND = {
OR = { is_in_array = { array = rq_queue value = 143 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 291 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = improved_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_hgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 291 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 293 } }
if = {
limit = {
NOT = { has_tech = improved_heavy_cruiser }
NOT = { is_in_array = { array = rq_queue value = 292 } }
NOT = { is_in_array = { array = rq_ap_ban value = 292 } }
NOT = { is_in_array = { array = global.rq_hid value = 292 } }
OR = {
can_research = improved_heavy_cruiser
AND = {
OR = { is_in_array = { array = rq_queue value = 303 } is_in_array = { array = rq_queue value = 142 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 292 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 292 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_heavy_shell }
NOT = { is_in_array = { array = rq_queue value = 293 } }
NOT = { is_in_array = { array = rq_ap_ban value = 293 } }
NOT = { is_in_array = { array = global.rq_hid value = 293 } }
OR = {
can_research = improved_heavy_shell
AND = {
OR = { is_in_array = { array = rq_queue value = 291 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 293 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes has_war = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_hgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 293 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 302 } }
if = {
limit = { check_variable = { rq_t < 298 } }
if = {
limit = { check_variable = { rq_t < 296 } }
if = {
limit = { check_variable = { rq_t < 295 } }
if = {
limit = {
NOT = { has_tech = improved_heavy_spaa }
NOT = { is_in_array = { array = rq_queue value = 294 } }
NOT = { is_in_array = { array = rq_ap_ban value = 294 } }
NOT = { is_in_array = { array = global.rq_hid value = 294 } }
OR = {
can_research = improved_heavy_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 295 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 294 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_heavy_spaa can_research = advanced_heavy_spaa is_researching_technology = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 294 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_heavy_tank }
NOT = { is_in_array = { array = rq_queue value = 295 } }
NOT = { is_in_array = { array = rq_ap_ban value = 295 } }
NOT = { is_in_array = { array = global.rq_hid value = 295 } }
OR = {
can_research = improved_heavy_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 313 } is_in_array = { array = rq_queue value = 145 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 295 }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = advanced_heavy_tank has_tech = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_heavy_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 295 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 297 } }
if = {
limit = {
NOT = { has_tech = improved_heavy_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 296 } }
NOT = { is_in_array = { array = rq_ap_ban value = 296 } }
NOT = { is_in_array = { array = global.rq_hid value = 296 } }
OR = {
can_research = improved_heavy_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 146 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 296 }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_expand_kummersdorfs_capacity has_tech_bonus = { category = cat_heavy_armor } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 296 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_heavy_td }
NOT = { is_in_array = { array = rq_queue value = 297 } }
NOT = { is_in_array = { array = rq_ap_ban value = 297 } }
NOT = { is_in_array = { array = global.rq_hid value = 297 } }
OR = {
can_research = improved_heavy_td
AND = {
OR = { is_in_array = { array = rq_queue value = 295 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 297 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_heavy_td can_research = advanced_heavy_td is_researching_technology = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 297 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 300 } }
if = {
limit = { check_variable = { rq_t < 299 } }
if = {
limit = {
NOT = { has_tech = improved_infantry_weapons }
NOT = { is_in_array = { array = rq_queue value = 298 } }
NOT = { is_in_array = { array = rq_ap_ban value = 298 } }
NOT = { is_in_array = { array = global.rq_hid value = 298 } }
OR = {
can_research = improved_infantry_weapons
AND = {
OR = { is_in_array = { array = rq_queue value = 338 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 298 }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_infantry_weapons }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 298 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_infantry_weapons_2 }
NOT = { is_in_array = { array = rq_queue value = 299 } }
NOT = { is_in_array = { array = rq_ap_ban value = 299 } }
NOT = { is_in_array = { array = global.rq_hid value = 299 } }
OR = {
can_research = improved_infantry_weapons_2
AND = {
OR = { is_in_array = { array = rq_queue value = 298 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 299 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_infantry_weapons_2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 299 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 301 } }
if = {
limit = {
NOT = { has_tech = improved_large_airframe }
NOT = { is_in_array = { array = rq_queue value = 300 } }
NOT = { is_in_array = { array = rq_ap_ban value = 300 } }
NOT = { is_in_array = { array = global.rq_hid value = 300 } }
OR = {
can_research = improved_large_airframe
AND = {
OR = { is_in_array = { array = rq_queue value = 148 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 300 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_0 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 300 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_light_art }
NOT = { is_in_array = { array = rq_queue value = 301 } }
NOT = { is_in_array = { array = rq_ap_ban value = 301 } }
NOT = { is_in_array = { array = global.rq_hid value = 301 } }
OR = {
can_research = improved_light_art
AND = {
OR = { is_in_array = { array = rq_queue value = 306 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 301 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { has_template_containing_unit = light_sp_artillery_brigade }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = advanced_light_art can_research = advanced_light_art is_researching_technology = advanced_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 301 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 306 } }
if = {
limit = { check_variable = { rq_t < 304 } }
if = {
limit = { check_variable = { rq_t < 303 } }
if = {
limit = {
NOT = { has_tech = improved_light_battery }
NOT = { is_in_array = { array = rq_queue value = 302 } }
NOT = { is_in_array = { array = rq_ap_ban value = 302 } }
NOT = { is_in_array = { array = global.rq_hid value = 302 } }
OR = {
can_research = improved_light_battery
AND = {
OR = { is_in_array = { array = rq_queue value = 152 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 302 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = improved_ship_hull_light }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = ITA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 302 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_light_cruiser }
NOT = { is_in_array = { array = rq_queue value = 303 } }
NOT = { is_in_array = { array = rq_ap_ban value = 303 } }
NOT = { is_in_array = { array = global.rq_hid value = 303 } }
OR = {
can_research = improved_light_cruiser
AND = {
OR = { is_in_array = { array = rq_queue value = 151 } is_in_array = { array = rq_queue value = 292 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 303 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 303 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 305 } }
if = {
limit = {
NOT = { has_tech = improved_light_shell }
NOT = { is_in_array = { array = rq_queue value = 304 } }
NOT = { is_in_array = { array = rq_ap_ban value = 304 } }
NOT = { is_in_array = { array = global.rq_hid value = 304 } }
OR = {
can_research = improved_light_shell
AND = {
OR = { is_in_array = { array = rq_queue value = 302 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 304 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 304 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_light_spaa }
NOT = { is_in_array = { array = rq_queue value = 305 } }
NOT = { is_in_array = { array = rq_ap_ban value = 305 } }
NOT = { is_in_array = { array = global.rq_hid value = 305 } }
OR = {
can_research = improved_light_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 306 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 305 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_light_spaa can_research = advanced_light_spaa is_researching_technology = advanced_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 305 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 308 } }
if = {
limit = { check_variable = { rq_t < 307 } }
if = {
limit = {
NOT = { has_tech = improved_light_tank }
NOT = { is_in_array = { array = rq_queue value = 306 } }
NOT = { is_in_array = { array = rq_ap_ban value = 306 } }
NOT = { is_in_array = { array = global.rq_hid value = 306 } }
OR = {
can_research = improved_light_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 154 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 306 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes not = { tag = JAP num_of_military_factories < 50 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes not = { tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 306 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_light_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 307 } }
NOT = { is_in_array = { array = rq_ap_ban value = 307 } }
NOT = { is_in_array = { array = global.rq_hid value = 307 } }
OR = {
can_research = improved_light_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 155 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 307 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes NOT = { AND = { tag = JAP num_of_military_factories < 50 } } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes not = { tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1936.9.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1940.9.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_light_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 307 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 309 } }
if = {
limit = {
NOT = { has_tech = improved_light_td }
NOT = { is_in_array = { array = rq_queue value = 308 } }
NOT = { is_in_array = { array = rq_ap_ban value = 308 } }
NOT = { is_in_array = { array = global.rq_hid value = 308 } }
OR = {
can_research = improved_light_td
AND = {
OR = { is_in_array = { array = rq_queue value = 306 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 308 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 27 } } } }
add_to_temp_variable = { rq_ap_w = 120 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = light_tank_destroyer_brigade }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = advanced_light_td can_research = advanced_light_td is_researching_technology = advanced_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 308 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 310 } }
if = {
limit = {
NOT = { has_tech = improved_machine_tools }
NOT = { is_in_array = { array = rq_queue value = 309 } }
NOT = { is_in_array = { array = rq_ap_ban value = 309 } }
NOT = { is_in_array = { array = global.rq_hid value = 309 } }
OR = {
can_research = improved_machine_tools
AND = {
OR = { is_in_array = { array = rq_queue value = 157 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 309 }
set_temp_variable = { rq_ap_w = 40 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 309 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_medium_airframe }
NOT = { is_in_array = { array = rq_queue value = 310 } }
NOT = { is_in_array = { array = rq_ap_ban value = 310 } }
NOT = { is_in_array = { array = global.rq_hid value = 310 } }
OR = {
can_research = improved_medium_airframe
AND = {
OR = { is_in_array = { array = rq_queue value = 158 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 310 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_1 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 310 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 328 } }
if = {
limit = { check_variable = { rq_t < 319 } }
if = {
limit = { check_variable = { rq_t < 315 } }
if = {
limit = { check_variable = { rq_t < 313 } }
if = {
limit = { check_variable = { rq_t < 312 } }
if = {
limit = {
NOT = { has_tech = improved_medium_art }
NOT = { is_in_array = { array = rq_queue value = 311 } }
NOT = { is_in_array = { array = rq_ap_ban value = 311 } }
NOT = { is_in_array = { array = global.rq_hid value = 311 } }
OR = {
can_research = improved_medium_art
AND = {
OR = { is_in_array = { array = rq_queue value = 313 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 311 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = advanced_medium_art can_research = advanced_medium_art is_researching_technology = advanced_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_sp_artillery_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 311 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_medium_spaa }
NOT = { is_in_array = { array = rq_queue value = 312 } }
NOT = { is_in_array = { array = rq_ap_ban value = 312 } }
NOT = { is_in_array = { array = global.rq_hid value = 312 } }
OR = {
can_research = improved_medium_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 313 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 312 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = advanced_medium_spaa can_research = advanced_medium_spaa is_researching_technology = advanced_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 312 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 314 } }
if = {
limit = {
NOT = { has_tech = improved_medium_tank }
NOT = { is_in_array = { array = rq_queue value = 313 } }
NOT = { is_in_array = { array = rq_ap_ban value = 313 } }
NOT = { is_in_array = { array = global.rq_hid value = 313 } }
OR = {
can_research = improved_medium_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 161 } is_in_array = { array = rq_queue value = 295 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 313 }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { is_major = yes not = { tag = JAP num_of_military_factories < 50 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 0.3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_medium_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 313 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_medium_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 314 } }
NOT = { is_in_array = { array = rq_ap_ban value = 314 } }
NOT = { is_in_array = { array = global.rq_hid value = 314 } }
OR = {
can_research = improved_medium_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 162 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 314 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes NOT = { AND = { tag = JAP num_of_military_factories < 50 } } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV date > 1940.3.1 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1941.6.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1942.9.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1944.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_medium_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 314 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 317 } }
if = {
limit = { check_variable = { rq_t < 316 } }
if = {
limit = {
NOT = { has_tech = improved_medium_td }
NOT = { is_in_array = { array = rq_queue value = 315 } }
NOT = { is_in_array = { array = rq_ap_ban value = 315 } }
NOT = { is_in_array = { array = global.rq_hid value = 315 } }
OR = {
can_research = improved_medium_td
AND = {
OR = { is_in_array = { array = rq_queue value = 313 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 315 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 32 } } } }
add_to_temp_variable = { rq_ap_w = 150 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_tank_destroyer_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = advanced_medium_td can_research = advanced_medium_td is_researching_technology = advanced_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 315 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_naval_mines }
NOT = { is_in_array = { array = rq_queue value = 316 } }
NOT = { is_in_array = { array = rq_ap_ban value = 316 } }
NOT = { is_in_array = { array = global.rq_hid value = 316 } }
OR = {
can_research = improved_naval_mines
AND = {
OR = { is_in_array = { array = rq_queue value = 164 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 316 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 316 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 318 } }
if = {
limit = {
NOT = { has_tech = improved_oil_processing }
NOT = { is_in_array = { array = rq_queue value = 317 } }
NOT = { is_in_array = { array = rq_ap_ban value = 317 } }
NOT = { is_in_array = { array = global.rq_hid value = 317 } }
OR = {
can_research = improved_oil_processing
AND = {
OR = { is_in_array = { array = rq_queue value = 408 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 317 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_oil }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 317 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_radio }
NOT = { is_in_array = { array = rq_queue value = 318 } }
NOT = { is_in_array = { array = rq_ap_ban value = 318 } }
NOT = { is_in_array = { array = global.rq_hid value = 318 } }
OR = {
can_research = improved_radio
AND = {
OR = { is_in_array = { array = rq_queue value = 417 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 318 }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.8.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 318 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 323 } }
if = {
limit = { check_variable = { rq_t < 321 } }
if = {
limit = { check_variable = { rq_t < 320 } }
}
else = {
if = {
limit = {
NOT = { has_tech = improved_rubber_processing }
NOT = { is_in_array = { array = rq_queue value = 320 } }
NOT = { is_in_array = { array = rq_ap_ban value = 320 } }
NOT = { is_in_array = { array = global.rq_hid value = 320 } }
OR = {
can_research = improved_rubber_processing
AND = {
OR = { is_in_array = { array = rq_queue value = 431 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 320 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA } has_war = yes }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_rub }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 320 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 322 } }
if = {
limit = {
NOT = { has_tech = improved_ship_hull_carrier }
NOT = { is_in_array = { array = rq_queue value = 321 } }
NOT = { is_in_array = { array = rq_ap_ban value = 321 } }
NOT = { is_in_array = { array = global.rq_hid value = 321 } }
OR = {
can_research = improved_ship_hull_carrier
AND = {
OR = { is_in_array = { array = rq_queue value = 165 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 321 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 321 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_ship_hull_cruiser }
NOT = { is_in_array = { array = rq_queue value = 322 } }
NOT = { is_in_array = { array = rq_ap_ban value = 322 } }
NOT = { is_in_array = { array = global.rq_hid value = 322 } }
OR = {
can_research = improved_ship_hull_cruiser
AND = {
OR = { is_in_array = { array = rq_queue value = 166 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 322 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 322 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 325 } }
if = {
limit = { check_variable = { rq_t < 324 } }
if = {
limit = {
NOT = { has_tech = improved_ship_hull_heavy }
NOT = { is_in_array = { array = rq_queue value = 323 } }
NOT = { is_in_array = { array = rq_ap_ban value = 323 } }
NOT = { is_in_array = { array = global.rq_hid value = 323 } }
OR = {
can_research = improved_ship_hull_heavy
AND = {
OR = { is_in_array = { array = rq_queue value = 167 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 323 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 323 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_ship_hull_light }
NOT = { is_in_array = { array = rq_queue value = 324 } }
NOT = { is_in_array = { array = rq_ap_ban value = 324 } }
NOT = { is_in_array = { array = global.rq_hid value = 324 } }
OR = {
can_research = improved_ship_hull_light
AND = {
OR = { is_in_array = { array = rq_queue value = 168 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 324 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 324 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 326 } }
if = {
limit = {
NOT = { has_tech = improved_ship_hull_submarine }
NOT = { is_in_array = { array = rq_queue value = 325 } }
NOT = { is_in_array = { array = rq_ap_ban value = 325 } }
NOT = { is_in_array = { array = global.rq_hid value = 325 } }
OR = {
can_research = improved_ship_hull_submarine
AND = {
OR = { is_in_array = { array = rq_queue value = 169 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 325 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 325 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 327 } }
if = {
limit = {
NOT = { has_tech = improved_ship_torpedo_launcher }
NOT = { is_in_array = { array = rq_queue value = 326 } }
NOT = { is_in_array = { array = rq_ap_ban value = 326 } }
NOT = { is_in_array = { array = global.rq_hid value = 326 } }
OR = {
can_research = improved_ship_torpedo_launcher
AND = {
OR = { is_in_array = { array = rq_queue value = 173 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 326 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 326 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_small_airframe }
NOT = { is_in_array = { array = rq_queue value = 327 } }
NOT = { is_in_array = { array = rq_ap_ban value = 327 } }
NOT = { is_in_array = { array = global.rq_hid value = 327 } }
OR = {
can_research = improved_small_airframe
AND = {
OR = { is_in_array = { array = rq_queue value = 170 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 327 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date < "1940.2.1" }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_small_airframe }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_2 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 327 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 337 } }
if = {
limit = { check_variable = { rq_t < 332 } }
if = {
limit = { check_variable = { rq_t < 330 } }
if = {
limit = { check_variable = { rq_t < 329 } }
if = {
limit = {
NOT = { has_tech = improved_sonar }
NOT = { is_in_array = { array = rq_queue value = 328 } }
NOT = { is_in_array = { array = rq_ap_ban value = 328 } }
NOT = { is_in_array = { array = global.rq_hid value = 328 } }
OR = {
can_research = improved_sonar
AND = {
OR = { is_in_array = { array = rq_queue value = 437 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 328 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.6.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.6.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 328 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_special_forces }
NOT = { is_in_array = { array = rq_queue value = 329 } }
NOT = { is_in_array = { array = rq_ap_ban value = 329 } }
NOT = { is_in_array = { array = global.rq_hid value = 329 } }
NOT = { has_tech = advanced_special_forces }
NOT = { is_in_array = { array = rq_queue value = 83 } }
OR = {
can_research = improved_special_forces
AND = {
OR = { is_in_array = { array = rq_queue value = 541 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 329 }
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 329 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 331 } }
if = {
limit = {
NOT = { has_tech = improved_submarine }
NOT = { is_in_array = { array = rq_queue value = 330 } }
NOT = { is_in_array = { array = rq_ap_ban value = 330 } }
NOT = { is_in_array = { array = global.rq_hid value = 330 } }
OR = {
can_research = improved_submarine
AND = {
OR = { is_in_array = { array = rq_queue value = 171 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 330 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 330 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_submarine_mine_laying }
NOT = { is_in_array = { array = rq_queue value = 331 } }
NOT = { is_in_array = { array = rq_ap_ban value = 331 } }
NOT = { is_in_array = { array = global.rq_hid value = 331 } }
OR = {
can_research = improved_submarine_mine_laying
AND = {
OR = { is_in_array = { array = rq_queue value = 488 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 331 }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 331 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 334 } }
if = {
limit = { check_variable = { rq_t < 333 } }
if = {
limit = {
NOT = { has_tech = improved_submarine_snorkel }
NOT = { is_in_array = { array = rq_queue value = 332 } }
NOT = { is_in_array = { array = rq_ap_ban value = 332 } }
NOT = { is_in_array = { array = global.rq_hid value = 332 } }
OR = {
can_research = improved_submarine_snorkel
AND = {
OR = { is_in_array = { array = rq_queue value = 172 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 332 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = HOL } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 332 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = improved_transport_plane }
NOT = { is_in_array = { array = rq_queue value = 333 } }
NOT = { is_in_array = { array = rq_ap_ban value = 333 } }
NOT = { is_in_array = { array = global.rq_hid value = 333 } }
OR = {
can_research = improved_transport_plane
AND = {
OR = { is_in_array = { array = rq_queue value = 235 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 333 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 333 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 335 } }
if = {
limit = {
NOT = { has_tech = infantry_at }
NOT = { is_in_array = { array = rq_queue value = 334 } }
NOT = { is_in_array = { array = rq_ap_ban value = 334 } }
NOT = { is_in_array = { array = global.rq_hid value = 334 } }
OR = {
can_research = infantry_at
AND = {
OR = { is_in_array = { array = rq_queue value = 298 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 334 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_infantry_at }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 334 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 336 } }
if = {
limit = {
NOT = { has_tech = infantry_at2 }
NOT = { is_in_array = { array = rq_queue value = 335 } }
NOT = { is_in_array = { array = rq_ap_ban value = 335 } }
NOT = { is_in_array = { array = global.rq_hid value = 335 } }
OR = {
can_research = infantry_at2
AND = {
OR = { is_in_array = { array = rq_queue value = 334 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 335 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 335 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = infantry_weapons }
NOT = { is_in_array = { array = rq_queue value = 336 } }
NOT = { is_in_array = { array = rq_ap_ban value = 336 } }
NOT = { is_in_array = { array = global.rq_hid value = 336 } }
OR = {
can_research = infantry_weapons
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 336 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 336 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 341 } }
if = {
limit = { check_variable = { rq_t < 339 } }
if = {
limit = { check_variable = { rq_t < 338 } }
if = {
limit = {
NOT = { has_tech = infantry_weapons1 }
NOT = { is_in_array = { array = rq_queue value = 337 } }
NOT = { is_in_array = { array = rq_ap_ban value = 337 } }
NOT = { is_in_array = { array = global.rq_hid value = 337 } }
OR = {
can_research = infantry_weapons1
AND = {
OR = { is_in_array = { array = rq_queue value = 336 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 337 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = CHI OR = { date > 1937.1.1 JAP = { is_ai = no } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1936.1.3 }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < 1939.1.1 original_tag = PRC }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 337 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = infantry_weapons2 }
NOT = { is_in_array = { array = rq_queue value = 338 } }
NOT = { is_in_array = { array = rq_ap_ban value = 338 } }
NOT = { is_in_array = { array = global.rq_hid value = 338 } }
OR = {
can_research = infantry_weapons2
AND = {
OR = { is_in_array = { array = rq_queue value = 337 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 338 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < 1939.1.1 tag = PRC }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_infantry_weapons2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 338 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 340 } }
if = {
limit = {
NOT = { has_tech = interwar_antiair }
NOT = { is_in_array = { array = rq_queue value = 339 } }
NOT = { is_in_array = { array = rq_ap_ban value = 339 } }
NOT = { is_in_array = { array = global.rq_hid value = 339 } }
OR = {
can_research = interwar_antiair
AND = {
OR = { is_in_array = { array = rq_queue value = 268 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 339 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 339 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = interwar_antitank }
NOT = { is_in_array = { array = rq_queue value = 340 } }
NOT = { is_in_array = { array = rq_ap_ban value = 340 } }
NOT = { is_in_array = { array = global.rq_hid value = 340 } }
OR = {
can_research = interwar_antitank
AND = {
OR = { is_in_array = { array = rq_queue value = 268 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 340 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 0.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_war_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 30 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 340 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 343 } }
if = {
limit = { check_variable = { rq_t < 342 } }
if = {
limit = {
NOT = { has_tech = interwar_artillery }
NOT = { is_in_array = { array = rq_queue value = 341 } }
NOT = { is_in_array = { array = rq_ap_ban value = 341 } }
NOT = { is_in_array = { array = global.rq_hid value = 341 } }
OR = {
can_research = interwar_artillery
AND = {
OR = { is_in_array = { array = rq_queue value = 268 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 341 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 6.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_interwar_artillery }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 341 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 344 } }
if = {
limit = {
NOT = { has_tech = iw_large_airframe }
NOT = { is_in_array = { array = rq_queue value = 343 } }
NOT = { is_in_array = { array = rq_ap_ban value = 343 } }
NOT = { is_in_array = { array = global.rq_hid value = 343 } }
OR = {
can_research = iw_large_airframe
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 343 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { num_of_military_factories < 30 }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_0 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 343 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 345 } }
if = {
limit = {
NOT = { has_tech = iw_medium_airframe }
NOT = { is_in_array = { array = rq_queue value = 344 } }
NOT = { is_in_array = { array = rq_ap_ban value = 344 } }
NOT = { is_in_array = { array = global.rq_hid value = 344 } }
OR = {
can_research = iw_medium_airframe
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 344 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { num_of_military_factories < 15 }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_1 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 344 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = iw_small_airframe }
NOT = { is_in_array = { array = rq_queue value = 345 } }
NOT = { is_in_array = { array = rq_ap_ban value = 345 } }
NOT = { is_in_array = { array = global.rq_hid value = 345 } }
OR = {
can_research = iw_small_airframe
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 345 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 7 }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_2 }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 345 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 380 } }
if = {
limit = { check_variable = { rq_t < 363 } }
if = {
limit = { check_variable = { rq_t < 354 } }
if = {
limit = { check_variable = { rq_t < 350 } }
if = {
limit = { check_variable = { rq_t < 348 } }
if = {
limit = { check_variable = { rq_t < 347 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 349 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 352 } }
if = {
limit = { check_variable = { rq_t < 351 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 353 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 358 } }
if = {
limit = { check_variable = { rq_t < 356 } }
if = {
limit = { check_variable = { rq_t < 355 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 357 } }
if = {
limit = {
NOT = { has_tech = land_fort_tech_1 }
NOT = { is_in_array = { array = rq_queue value = 356 } }
NOT = { is_in_array = { array = rq_ap_ban value = 356 } }
NOT = { is_in_array = { array = global.rq_hid value = 356 } }
OR = {
can_research = land_fort_tech_1
AND = {
OR = { is_in_array = { array = rq_queue value = 138 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 356 }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_fort }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 356 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = land_fort_tech_2 }
NOT = { is_in_array = { array = rq_queue value = 357 } }
NOT = { is_in_array = { array = rq_ap_ban value = 357 } }
NOT = { is_in_array = { array = global.rq_hid value = 357 } }
OR = {
can_research = land_fort_tech_2
AND = {
OR = { is_in_array = { array = rq_queue value = 356 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 357 }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_fort }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 357 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 360 } }
if = {
limit = { check_variable = { rq_t < 359 } }
}
else = {
if = {
limit = {
NOT = { has_tech = landing_craft }
NOT = { is_in_array = { array = rq_queue value = 359 } }
NOT = { is_in_array = { array = rq_ap_ban value = 359 } }
NOT = { is_in_array = { array = global.rq_hid value = 359 } }
OR = {
can_research = landing_craft
AND = {
OR = { is_in_array = { array = rq_queue value = 548 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 359 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { NOT = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP OR = { has_war_with = USA CHI = { OR = { has_capitulated = yes exists = no is_subject_of = JAP } } } }
multiply_temp_variable = { rq_ap_w = 50 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = ENG tag = USA } has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = ENG tag = USA } has_war_with = GER GER = { has_war_with = SOV } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_tp }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 359 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 361 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 362 } }
}
else = {
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 371 } }
if = {
limit = { check_variable = { rq_t < 367 } }
if = {
limit = { check_variable = { rq_t < 365 } }
if = {
limit = { check_variable = { rq_t < 364 } }
if = {
limit = {
NOT = { has_tech = magnetic_detonator }
NOT = { is_in_array = { array = rq_queue value = 363 } }
NOT = { is_in_array = { array = rq_ap_ban value = 363 } }
NOT = { is_in_array = { array = global.rq_hid value = 363 } }
OR = {
can_research = magnetic_detonator
AND = {
OR = { is_in_array = { array = rq_queue value = 326 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 363 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 363 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = main_battle_tank }
NOT = { is_in_array = { array = rq_queue value = 364 } }
NOT = { is_in_array = { array = rq_ap_ban value = 364 } }
NOT = { is_in_array = { array = global.rq_hid value = 364 } }
OR = {
can_research = main_battle_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 66 } is_in_array = { array = rq_queue value = 49 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 364 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 364 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 366 } }
if = {
limit = {
NOT = { has_tech = main_battle_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 365 } }
NOT = { is_in_array = { array = rq_ap_ban value = 365 } }
NOT = { is_in_array = { array = global.rq_hid value = 365 } }
OR = {
can_research = main_battle_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 67 } is_in_array = { array = rq_queue value = 50 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 365 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > 1946.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1947.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1948.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1944.9.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 365 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = marines }
NOT = { is_in_array = { array = rq_queue value = 366 } }
NOT = { is_in_array = { array = rq_ap_ban value = 366 } }
NOT = { is_in_array = { array = global.rq_hid value = 366 } }
OR = {
can_research = marines
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 366 }
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 366 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 369 } }
if = {
limit = { check_variable = { rq_t < 368 } }
if = {
limit = {
NOT = { has_tech = marines2 }
NOT = { is_in_array = { array = rq_queue value = 367 } }
NOT = { is_in_array = { array = rq_ap_ban value = 367 } }
NOT = { is_in_array = { array = global.rq_hid value = 367 } }
OR = {
can_research = marines2
AND = {
OR = { is_in_array = { array = rq_queue value = 366 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 367 }
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 367 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = marines3 }
NOT = { is_in_array = { array = rq_queue value = 368 } }
NOT = { is_in_array = { array = rq_ap_ban value = 368 } }
NOT = { is_in_array = { array = global.rq_hid value = 368 } }
OR = {
can_research = marines3
AND = {
OR = { is_in_array = { array = rq_queue value = 367 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 368 }
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 368 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 370 } }
if = {
limit = {
NOT = { has_tech = mechanical_computing }
NOT = { is_in_array = { array = rq_queue value = 369 } }
NOT = { is_in_array = { array = rq_ap_ban value = 369 } }
NOT = { is_in_array = { array = global.rq_hid value = 369 } }
OR = {
can_research = mechanical_computing
AND = {
OR = { is_in_array = { array = rq_queue value = 236 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 369 }
set_temp_variable = { rq_ap_w = 10 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 369 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = mechanised_infantry }
NOT = { is_in_array = { array = rq_queue value = 370 } }
NOT = { is_in_array = { array = rq_ap_ban value = 370 } }
NOT = { is_in_array = { array = global.rq_hid value = 370 } }
OR = {
can_research = mechanised_infantry
AND = {
OR = { is_in_array = { array = rq_queue value = 389 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 370 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_mechanised_infantry }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_mech }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 370 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 375 } }
if = {
limit = { check_variable = { rq_t < 373 } }
if = {
limit = { check_variable = { rq_t < 372 } }
if = {
limit = {
NOT = { has_tech = mechanised_infantry2 }
NOT = { is_in_array = { array = rq_queue value = 371 } }
NOT = { is_in_array = { array = rq_ap_ban value = 371 } }
NOT = { is_in_array = { array = global.rq_hid value = 371 } }
OR = {
can_research = mechanised_infantry2
AND = {
OR = { is_in_array = { array = rq_queue value = 370 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 371 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_mech }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 371 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = mechanised_infantry3 }
NOT = { is_in_array = { array = rq_queue value = 372 } }
NOT = { is_in_array = { array = rq_ap_ban value = 372 } }
NOT = { is_in_array = { array = global.rq_hid value = 372 } }
OR = {
can_research = mechanised_infantry3
AND = {
OR = { is_in_array = { array = rq_queue value = 371 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 372 }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_mech }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 372 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 374 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 377 } }
if = {
limit = { check_variable = { rq_t < 376 } }
}
else = {
if = {
limit = {
NOT = { has_tech = modern_art }
NOT = { is_in_array = { array = rq_queue value = 376 } }
NOT = { is_in_array = { array = rq_ap_ban value = 376 } }
NOT = { is_in_array = { array = global.rq_hid value = 376 } }
OR = {
can_research = modern_art
AND = {
OR = { is_in_array = { array = rq_queue value = 364 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 376 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 376 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 378 } }
if = {
limit = {
NOT = { has_tech = modern_depth_charges }
NOT = { is_in_array = { array = rq_queue value = 377 } }
NOT = { is_in_array = { array = rq_ap_ban value = 377 } }
NOT = { is_in_array = { array = global.rq_hid value = 377 } }
OR = {
can_research = modern_depth_charges
AND = {
OR = { is_in_array = { array = rq_queue value = 39 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 377 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 377 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 379 } }
}
else = {
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 397 } }
if = {
limit = { check_variable = { rq_t < 388 } }
if = {
limit = { check_variable = { rq_t < 384 } }
if = {
limit = { check_variable = { rq_t < 382 } }
if = {
limit = { check_variable = { rq_t < 381 } }
if = {
limit = {
NOT = { has_tech = modern_oil_processing }
NOT = { is_in_array = { array = rq_queue value = 380 } }
NOT = { is_in_array = { array = rq_ap_ban value = 380 } }
NOT = { is_in_array = { array = global.rq_hid value = 380 } }
OR = {
can_research = modern_oil_processing
AND = {
OR = { is_in_array = { array = rq_queue value = 71 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 380 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_oil }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 380 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = modern_rubber_processing }
NOT = { is_in_array = { array = rq_queue value = 381 } }
NOT = { is_in_array = { array = rq_ap_ban value = 381 } }
NOT = { is_in_array = { array = global.rq_hid value = 381 } }
OR = {
can_research = modern_rubber_processing
AND = {
OR = { is_in_array = { array = rq_queue value = 74 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 381 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_rub }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 381 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 383 } }
if = {
limit = {
NOT = { has_tech = modern_ship_torpedo_launcher }
NOT = { is_in_array = { array = rq_queue value = 382 } }
NOT = { is_in_array = { array = rq_ap_ban value = 382 } }
NOT = { is_in_array = { array = global.rq_hid value = 382 } }
OR = {
can_research = modern_ship_torpedo_launcher
AND = {
OR = { is_in_array = { array = rq_queue value = 278 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 382 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 382 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 386 } }
if = {
limit = { check_variable = { rq_t < 385 } }
if = {
limit = {
NOT = { has_tech = modern_sonar }
NOT = { is_in_array = { array = rq_queue value = 384 } }
NOT = { is_in_array = { array = rq_ap_ban value = 384 } }
NOT = { is_in_array = { array = global.rq_hid value = 384 } }
OR = {
can_research = modern_sonar
AND = {
OR = { is_in_array = { array = rq_queue value = 82 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 384 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 384 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = modern_spaa }
NOT = { is_in_array = { array = rq_queue value = 385 } }
NOT = { is_in_array = { array = rq_ap_ban value = 385 } }
NOT = { is_in_array = { array = global.rq_hid value = 385 } }
OR = {
can_research = modern_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 364 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 385 }
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 385 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 387 } }
if = {
limit = {
NOT = { has_tech = modern_td }
NOT = { is_in_array = { array = rq_queue value = 386 } }
NOT = { is_in_array = { array = rq_ap_ban value = 386 } }
NOT = { is_in_array = { array = global.rq_hid value = 386 } }
OR = {
can_research = modern_td
AND = {
OR = { is_in_array = { array = rq_queue value = 364 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 386 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 386 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 392 } }
if = {
limit = { check_variable = { rq_t < 390 } }
if = {
limit = { check_variable = { rq_t < 389 } }
}
else = {
if = {
limit = {
NOT = { has_tech = motorised_infantry }
NOT = { is_in_array = { array = rq_queue value = 389 } }
NOT = { is_in_array = { array = rq_ap_ban value = 389 } }
NOT = { is_in_array = { array = global.rq_hid value = 389 } }
OR = {
can_research = motorised_infantry
AND = {
OR = { is_in_array = { array = rq_queue value = 543 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 389 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_motorised_infantry }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_mot }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 389 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 391 } }
if = {
limit = {
NOT = { has_tech = motorized_rocket_unit }
NOT = { is_in_array = { array = rq_queue value = 390 } }
NOT = { is_in_array = { array = rq_ap_ban value = 390 } }
NOT = { is_in_array = { array = global.rq_hid value = 390 } }
OR = {
can_research = motorized_rocket_unit
AND = {
OR = { is_in_array = { array = rq_queue value = 389 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 390 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_oth }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 390 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 394 } }
if = {
limit = { check_variable = { rq_t < 393 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 395 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 396 } }
}
else = {
if = {
limit = {
NOT = { has_tech = mtg_landing_craft }
NOT = { is_in_array = { array = rq_queue value = 396 } }
NOT = { is_in_array = { array = rq_ap_ban value = 396 } }
NOT = { is_in_array = { array = global.rq_hid value = 396 } }
OR = {
can_research = mtg_landing_craft
AND = {
OR = { is_in_array = { array = rq_queue value = 398 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 396 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1941.6.1 }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_mtg_landing_craft }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_transports }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 396 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 406 } }
if = {
limit = { check_variable = { rq_t < 401 } }
if = {
limit = { check_variable = { rq_t < 399 } }
if = {
limit = { check_variable = { rq_t < 398 } }
if = {
limit = {
NOT = { has_tech = mtg_tank_landing_craft }
NOT = { is_in_array = { array = rq_queue value = 397 } }
NOT = { is_in_array = { array = rq_ap_ban value = 397 } }
NOT = { is_in_array = { array = global.rq_hid value = 397 } }
OR = {
can_research = mtg_tank_landing_craft
AND = {
OR = { is_in_array = { array = rq_queue value = 396 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 397 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war_with = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_transports }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 397 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = mtg_transport }
NOT = { is_in_array = { array = rq_queue value = 398 } }
NOT = { is_in_array = { array = rq_ap_ban value = 398 } }
NOT = { is_in_array = { array = global.rq_hid value = 398 } }
OR = {
can_research = mtg_transport
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 398 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war_with = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_transports }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 398 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 400 } }
if = {
limit = {
NOT = { has_tech = naval_bomber1 }
NOT = { is_in_array = { array = rq_queue value = 399 } }
NOT = { is_in_array = { array = rq_ap_ban value = 399 } }
NOT = { is_in_array = { array = global.rq_hid value = 399 } }
OR = {
can_research = naval_bomber1
AND = {
OR = { is_in_array = { array = rq_queue value = 226 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 399 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_war_with = ENG has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 399 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = naval_bomber2 }
NOT = { is_in_array = { array = rq_queue value = 400 } }
NOT = { is_in_array = { array = rq_ap_ban value = 400 } }
NOT = { is_in_array = { array = global.rq_hid value = 400 } }
OR = {
can_research = naval_bomber2
AND = {
OR = { is_in_array = { array = rq_queue value = 399 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 400 }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { has_war_with = ENG has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = naval_bomber } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 400 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 403 } }
if = {
limit = { check_variable = { rq_t < 402 } }
if = {
limit = {
NOT = { has_tech = naval_bomber3 }
NOT = { is_in_array = { array = rq_queue value = 401 } }
NOT = { is_in_array = { array = rq_ap_ban value = 401 } }
NOT = { is_in_array = { array = global.rq_hid value = 401 } }
OR = {
can_research = naval_bomber3
AND = {
OR = { is_in_array = { array = rq_queue value = 400 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 401 }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { has_war_with = ENG has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = naval_bomber } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 401 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = night_vision }
NOT = { is_in_array = { array = rq_queue value = 402 } }
NOT = { is_in_array = { array = rq_ap_ban value = 402 } }
NOT = { is_in_array = { array = global.rq_hid value = 402 } }
OR = {
can_research = night_vision
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 402 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1942.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 402 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 404 } }
if = {
limit = {
NOT = { has_tech = night_vision2 }
NOT = { is_in_array = { array = rq_queue value = 403 } }
NOT = { is_in_array = { array = rq_ap_ban value = 403 } }
NOT = { is_in_array = { array = global.rq_hid value = 403 } }
OR = {
can_research = night_vision2
AND = {
OR = { is_in_array = { array = rq_queue value = 402 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 403 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1945.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 403 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 405 } }
}
else = {
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 410 } }
if = {
limit = { check_variable = { rq_t < 408 } }
if = {
limit = { check_variable = { rq_t < 407 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 409 } }
if = {
limit = {
NOT = { has_tech = oil_processing }
NOT = { is_in_array = { array = rq_queue value = 408 } }
NOT = { is_in_array = { array = rq_ap_ban value = 408 } }
NOT = { is_in_array = { array = global.rq_hid value = 408 } }
OR = {
can_research = oil_processing
AND = {
OR = { is_in_array = { array = rq_queue value = 504 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 408 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_oil }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 408 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 412 } }
if = {
limit = { check_variable = { rq_t < 411 } }
if = {
limit = {
NOT = { has_tech = paratroopers }
NOT = { is_in_array = { array = rq_queue value = 410 } }
NOT = { is_in_array = { array = rq_ap_ban value = 410 } }
NOT = { is_in_array = { array = global.rq_hid value = 410 } }
OR = {
can_research = paratroopers
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 410 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = USA date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_anschluss CZE = { is_ai = no } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_fallschirmjager }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_paratroopers }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_para }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 410 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = paratroopers2 }
NOT = { is_in_array = { array = rq_queue value = 411 } }
NOT = { is_in_array = { array = rq_ap_ban value = 411 } }
NOT = { is_in_array = { array = global.rq_hid value = 411 } }
OR = {
can_research = paratroopers2
AND = {
OR = { is_in_array = { array = rq_queue value = 410 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 411 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_para }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 411 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 413 } }
if = {
limit = {
NOT = { has_tech = paratroopers3 }
NOT = { is_in_array = { array = rq_queue value = 412 } }
NOT = { is_in_array = { array = rq_ap_ban value = 412 } }
NOT = { is_in_array = { array = global.rq_hid value = 412 } }
OR = {
can_research = paratroopers3
AND = {
OR = { is_in_array = { array = rq_queue value = 411 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 412 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_para }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 412 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 414 } }
}
else = {
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 484 } }
if = {
limit = { check_variable = { rq_t < 449 } }
if = {
limit = { check_variable = { rq_t < 432 } }
if = {
limit = { check_variable = { rq_t < 423 } }
if = {
limit = { check_variable = { rq_t < 419 } }
if = {
limit = { check_variable = { rq_t < 417 } }
if = {
limit = { check_variable = { rq_t < 416 } }
if = {
limit = {
NOT = { has_tech = photo_reconnaisance }
NOT = { is_in_array = { array = rq_queue value = 415 } }
NOT = { is_in_array = { array = rq_ap_ban value = 415 } }
NOT = { is_in_array = { array = global.rq_hid value = 415 } }
OR = {
can_research = photo_reconnaisance
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 415 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = basic_medium_airframe } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_rec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 415 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 418 } }
if = {
limit = {
NOT = { has_tech = radio }
NOT = { is_in_array = { array = rq_queue value = 417 } }
NOT = { is_in_array = { array = rq_ap_ban value = 417 } }
NOT = { is_in_array = { array = global.rq_hid value = 417 } }
OR = {
can_research = radio
AND = {
OR = { is_in_array = { array = rq_queue value = 236 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 417 }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.8.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_oth }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 417 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 421 } }
if = {
limit = { check_variable = { rq_t < 420 } }
if = {
limit = {
NOT = { has_tech = railway_gun }
NOT = { is_in_array = { array = rq_queue value = 419 } }
NOT = { is_in_array = { array = rq_ap_ban value = 419 } }
NOT = { is_in_array = { array = global.rq_hid value = 419 } }
OR = {
can_research = railway_gun
AND = {
OR = { is_in_array = { array = rq_queue value = 119 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 419 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { TAG = GER tag = SOV } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_trn }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 419 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = range_improvements }
NOT = { is_in_array = { array = rq_queue value = 420 } }
NOT = { is_in_array = { array = rq_ap_ban value = 420 } }
NOT = { is_in_array = { array = global.rq_hid value = 420 } }
OR = {
can_research = range_improvements
AND = {
OR = { is_in_array = { array = rq_queue value = 243 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 420 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_rng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 420 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 422 } }
if = {
limit = {
NOT = { has_tech = rangers_tech }
NOT = { is_in_array = { array = rq_queue value = 421 } }
NOT = { is_in_array = { array = rq_ap_ban value = 421 } }
NOT = { is_in_array = { array = global.rq_hid value = 421 } }
OR = {
can_research = rangers_tech
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 421 }
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = BRA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rng }
multiply_temp_variable = { rq_ap_n = rq_ap_rng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 421 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = rangers_tech2 }
NOT = { is_in_array = { array = rq_queue value = 422 } }
NOT = { is_in_array = { array = rq_ap_ban value = 422 } }
NOT = { is_in_array = { array = global.rq_hid value = 422 } }
OR = {
can_research = rangers_tech2
AND = {
OR = { is_in_array = { array = rq_queue value = 421 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 422 }
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rng }
multiply_temp_variable = { rq_ap_n = rq_ap_rng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 422 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 427 } }
if = {
limit = { check_variable = { rq_t < 425 } }
if = {
limit = { check_variable = { rq_t < 424 } }
if = {
limit = {
NOT = { has_tech = rangers_tech3 }
NOT = { is_in_array = { array = rq_queue value = 423 } }
NOT = { is_in_array = { array = rq_ap_ban value = 423 } }
NOT = { is_in_array = { array = global.rq_hid value = 423 } }
OR = {
can_research = rangers_tech3
AND = {
OR = { is_in_array = { array = rq_queue value = 422 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 423 }
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rng }
multiply_temp_variable = { rq_ap_n = rq_ap_rng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 423 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 426 } }
}
else = {
if = {
limit = {
NOT = { has_tech = rocket_artillery }
NOT = { is_in_array = { array = rq_queue value = 426 } }
NOT = { is_in_array = { array = rq_ap_ban value = 426 } }
NOT = { is_in_array = { array = global.rq_hid value = 426 } }
OR = {
can_research = rocket_artillery
AND = {
OR = { is_in_array = { array = rq_queue value = 121 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 426 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_oth }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 426 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 429 } }
if = {
limit = { check_variable = { rq_t < 428 } }
if = {
limit = {
NOT = { has_tech = rocket_artillery2 }
NOT = { is_in_array = { array = rq_queue value = 427 } }
NOT = { is_in_array = { array = rq_ap_ban value = 427 } }
NOT = { is_in_array = { array = global.rq_hid value = 427 } }
OR = {
can_research = rocket_artillery2
AND = {
OR = { is_in_array = { array = rq_queue value = 426 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 427 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_oth }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 427 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = rocket_artillery3 }
NOT = { is_in_array = { array = rq_queue value = 428 } }
NOT = { is_in_array = { array = rq_ap_ban value = 428 } }
NOT = { is_in_array = { array = global.rq_hid value = 428 } }
OR = {
can_research = rocket_artillery3
AND = {
OR = { is_in_array = { array = rq_queue value = 427 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 428 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_oth }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 428 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 430 } }
if = {
limit = {
NOT = { has_tech = rocket_artillery4 }
NOT = { is_in_array = { array = rq_queue value = 429 } }
NOT = { is_in_array = { array = rq_ap_ban value = 429 } }
NOT = { is_in_array = { array = global.rq_hid value = 429 } }
OR = {
can_research = rocket_artillery4
AND = {
OR = { is_in_array = { array = rq_queue value = 428 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 429 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_oth }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 429 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 431 } }
}
else = {
if = {
limit = {
NOT = { has_tech = rubber_processing }
NOT = { is_in_array = { array = rq_queue value = 431 } }
NOT = { is_in_array = { array = rq_ap_ban value = 431 } }
NOT = { is_in_array = { array = global.rq_hid value = 431 } }
OR = {
can_research = rubber_processing
AND = {
OR = { is_in_array = { array = rq_queue value = 504 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 431 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA } has_war = yes }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_rubber_processing }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_rub }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 431 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 440 } }
if = {
limit = { check_variable = { rq_t < 436 } }
if = {
limit = { check_variable = { rq_t < 434 } }
if = {
limit = { check_variable = { rq_t < 433 } }
}
else = {
if = {
limit = {
NOT = { has_tech = scout_plane1 }
NOT = { is_in_array = { array = rq_queue value = 433 } }
NOT = { is_in_array = { array = rq_ap_ban value = 433 } }
NOT = { is_in_array = { array = global.rq_hid value = 433 } }
OR = {
can_research = scout_plane1
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 433 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = fighter1 has_tech = tactical_bomber1 has_tech = CAS1 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 433 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 435 } }
if = {
limit = {
NOT = { has_tech = scout_plane2 }
NOT = { is_in_array = { array = rq_queue value = 434 } }
NOT = { is_in_array = { array = rq_ap_ban value = 434 } }
NOT = { is_in_array = { array = global.rq_hid value = 434 } }
OR = {
can_research = scout_plane2
AND = {
OR = { is_in_array = { array = rq_queue value = 433 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 434 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = fighter2 has_tech = tactical_bomber2 has_tech = CAS2 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 434 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 438 } }
if = {
limit = { check_variable = { rq_t < 437 } }
if = {
limit = {
NOT = { has_tech = smoke_generator }
NOT = { is_in_array = { array = rq_queue value = 436 } }
NOT = { is_in_array = { array = rq_ap_ban value = 436 } }
NOT = { is_in_array = { array = global.rq_hid value = 436 } }
OR = {
can_research = smoke_generator
AND = {
OR = { is_in_array = { array = rq_queue value = 232 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 436 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_navy_size = { size < 10 } }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 436 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = sonar }
NOT = { is_in_array = { array = rq_queue value = 437 } }
NOT = { is_in_array = { array = rq_ap_ban value = 437 } }
NOT = { is_in_array = { array = global.rq_hid value = 437 } }
OR = {
can_research = sonar
AND = {
OR = { is_in_array = { array = rq_queue value = 232 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 437 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 437 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 439 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 444 } }
if = {
limit = { check_variable = { rq_t < 442 } }
if = {
limit = { check_variable = { rq_t < 441 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 443 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 446 } }
if = {
limit = { check_variable = { rq_t < 445 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 447 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 448 } }
}
else = {
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 466 } }
if = {
limit = { check_variable = { rq_t < 457 } }
if = {
limit = { check_variable = { rq_t < 453 } }
if = {
limit = { check_variable = { rq_t < 451 } }
if = {
limit = { check_variable = { rq_t < 450 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 452 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 455 } }
if = {
limit = { check_variable = { rq_t < 454 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 456 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 461 } }
if = {
limit = { check_variable = { rq_t < 459 } }
if = {
limit = { check_variable = { rq_t < 458 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 460 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 463 } }
if = {
limit = { check_variable = { rq_t < 462 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 464 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 465 } }
}
else = {
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 475 } }
if = {
limit = { check_variable = { rq_t < 470 } }
if = {
limit = { check_variable = { rq_t < 468 } }
if = {
limit = { check_variable = { rq_t < 467 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 469 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 472 } }
if = {
limit = { check_variable = { rq_t < 471 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 473 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 474 } }
}
else = {
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 479 } }
if = {
limit = { check_variable = { rq_t < 477 } }
if = {
limit = { check_variable = { rq_t < 476 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 478 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 481 } }
if = {
limit = { check_variable = { rq_t < 480 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 482 } }
if = {
limit = {
NOT = { has_tech = strategic_airlifter }
NOT = { is_in_array = { array = rq_queue value = 481 } }
NOT = { is_in_array = { array = rq_ap_ban value = 481 } }
NOT = { is_in_array = { array = global.rq_hid value = 481 } }
OR = {
can_research = strategic_airlifter
AND = {
OR = { is_in_array = { array = rq_queue value = 333 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 481 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 481 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 483 } }
if = {
limit = {
NOT = { has_tech = strategic_bomber1 }
NOT = { is_in_array = { array = rq_queue value = 482 } }
NOT = { is_in_array = { array = rq_ap_ban value = 482 } }
NOT = { is_in_array = { array = global.rq_hid value = 482 } }
OR = {
can_research = strategic_bomber1
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 482 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_str }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 482 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = strategic_bomber2 }
NOT = { is_in_array = { array = rq_queue value = 483 } }
NOT = { is_in_array = { array = rq_ap_ban value = 483 } }
NOT = { is_in_array = { array = global.rq_hid value = 483 } }
OR = {
can_research = strategic_bomber2
AND = {
OR = { is_in_array = { array = rq_queue value = 482 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 483 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_str }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 483 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 518 } }
if = {
limit = { check_variable = { rq_t < 501 } }
if = {
limit = { check_variable = { rq_t < 492 } }
if = {
limit = { check_variable = { rq_t < 488 } }
if = {
limit = { check_variable = { rq_t < 486 } }
if = {
limit = { check_variable = { rq_t < 485 } }
if = {
limit = {
NOT = { has_tech = strategic_bomber3 }
NOT = { is_in_array = { array = rq_queue value = 484 } }
NOT = { is_in_array = { array = rq_ap_ban value = 484 } }
NOT = { is_in_array = { array = global.rq_hid value = 484 } }
OR = {
can_research = strategic_bomber3
AND = {
OR = { is_in_array = { array = rq_queue value = 483 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 484 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_str }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 484 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = streamlined_line }
NOT = { is_in_array = { array = rq_queue value = 485 } }
NOT = { is_in_array = { array = rq_ap_ban value = 485 } }
NOT = { is_in_array = { array = global.rq_hid value = 485 } }
NOT = { has_tech = flexible_line }
NOT = { is_in_array = { array = rq_queue value = 261 } }
OR = {
can_research = streamlined_line
AND = {
OR = { is_in_array = { array = rq_queue value = 125 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 485 }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 485 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 487 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 490 } }
if = {
limit = { check_variable = { rq_t < 489 } }
if = {
limit = {
NOT = { has_tech = submarine_mine_laying }
NOT = { is_in_array = { array = rq_queue value = 488 } }
NOT = { is_in_array = { array = rq_ap_ban value = 488 } }
NOT = { is_in_array = { array = global.rq_hid value = 488 } }
OR = {
can_research = submarine_mine_laying
AND = {
OR = { is_in_array = { array = rq_queue value = 164 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 488 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 488 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 491 } }
}
else = {
if = {
limit = {
NOT = { has_tech = super_heavy_art }
NOT = { is_in_array = { array = rq_queue value = 491 } }
NOT = { is_in_array = { array = rq_ap_ban value = 491 } }
NOT = { is_in_array = { array = global.rq_hid value = 491 } }
OR = {
can_research = super_heavy_art
AND = {
OR = { is_in_array = { array = rq_queue value = 493 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 491 }
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 491 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 496 } }
if = {
limit = { check_variable = { rq_t < 494 } }
if = {
limit = { check_variable = { rq_t < 493 } }
if = {
limit = {
NOT = { has_tech = super_heavy_spaa }
NOT = { is_in_array = { array = rq_queue value = 492 } }
NOT = { is_in_array = { array = rq_ap_ban value = 492 } }
NOT = { is_in_array = { array = global.rq_hid value = 492 } }
OR = {
can_research = super_heavy_spaa
AND = {
OR = { is_in_array = { array = rq_queue value = 493 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 492 }
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 492 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = super_heavy_tank }
NOT = { is_in_array = { array = rq_queue value = 493 } }
NOT = { is_in_array = { array = rq_ap_ban value = 493 } }
NOT = { is_in_array = { array = global.rq_hid value = 493 } }
OR = {
can_research = super_heavy_tank
AND = {
OR = { is_in_array = { array = rq_queue value = 295 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 493 }
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 493 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 495 } }
if = {
limit = {
NOT = { has_tech = super_heavy_tank_chassis }
NOT = { is_in_array = { array = rq_queue value = 494 } }
NOT = { is_in_array = { array = rq_ap_ban value = 494 } }
NOT = { is_in_array = { array = global.rq_hid value = 494 } }
OR = {
can_research = super_heavy_tank_chassis
AND = {
OR = { is_in_array = { array = rq_queue value = 296 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 494 }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { date > 1943.9.1 NOT = { has_government = democratic } num_of_military_factories > 150 }
add_to_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date > 1944.5.1 surrender_progress < 0.1 has_government = fascism has_war_with = SOV }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER is_historical_focus_on = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_super_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 494 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = super_heavy_td }
NOT = { is_in_array = { array = rq_queue value = 495 } }
NOT = { is_in_array = { array = rq_ap_ban value = 495 } }
NOT = { is_in_array = { array = global.rq_hid value = 495 } }
OR = {
can_research = super_heavy_td
AND = {
OR = { is_in_array = { array = rq_queue value = 493 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 495 }
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 495 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 498 } }
if = {
limit = { check_variable = { rq_t < 497 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 499 } }
if = {
limit = {
NOT = { has_tech = support_weapons }
NOT = { is_in_array = { array = rq_queue value = 498 } }
NOT = { is_in_array = { array = rq_ap_ban value = 498 } }
NOT = { is_in_array = { array = global.rq_hid value = 498 } }
OR = {
can_research = support_weapons
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 498 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { original_tag = CHI original_tag = PRC original_tag = XSM original_tag = SIK original_tag = GXC original_tag = SHX original_tag = YUN original_tag = MAN original_tag = MEN original_tag = JAP original_tag = GSM original_tag = NXM original_tag = HBC original_tag = SND original_tag = GDC original_tag = KHM } }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sw }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 498 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 500 } }
if = {
limit = {
NOT = { has_tech = support_weapons2 }
NOT = { is_in_array = { array = rq_queue value = 499 } }
NOT = { is_in_array = { array = rq_ap_ban value = 499 } }
NOT = { is_in_array = { array = global.rq_hid value = 499 } }
OR = {
can_research = support_weapons2
AND = {
OR = { is_in_array = { array = rq_queue value = 498 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 499 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sw }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 499 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = support_weapons3 }
NOT = { is_in_array = { array = rq_queue value = 500 } }
NOT = { is_in_array = { array = rq_ap_ban value = 500 } }
NOT = { is_in_array = { array = global.rq_hid value = 500 } }
OR = {
can_research = support_weapons3
AND = {
OR = { is_in_array = { array = rq_queue value = 499 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 500 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sw }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 500 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 509 } }
if = {
limit = { check_variable = { rq_t < 505 } }
if = {
limit = { check_variable = { rq_t < 503 } }
if = {
limit = { check_variable = { rq_t < 502 } }
if = {
limit = {
NOT = { has_tech = support_weapons4 }
NOT = { is_in_array = { array = rq_queue value = 501 } }
NOT = { is_in_array = { array = rq_ap_ban value = 501 } }
NOT = { is_in_array = { array = global.rq_hid value = 501 } }
OR = {
can_research = support_weapons4
AND = {
OR = { is_in_array = { array = rq_queue value = 500 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 501 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sw }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 501 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = survivability_studies }
NOT = { is_in_array = { array = rq_queue value = 502 } }
NOT = { is_in_array = { array = rq_ap_ban value = 502 } }
NOT = { is_in_array = { array = global.rq_hid value = 502 } }
OR = {
can_research = survivability_studies
AND = {
OR = { is_in_array = { array = rq_queue value = 34 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 502 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_War = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_surv }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 502 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 504 } }
if = {
limit = {
NOT = { has_tech = survival_training }
NOT = { is_in_array = { array = rq_queue value = 503 } }
NOT = { is_in_array = { array = rq_ap_ban value = 503 } }
NOT = { is_in_array = { array = global.rq_hid value = 503 } }
NOT = { is_in_array = { array = rq_queue value = 83 } }
OR = {
can_research = survival_training
AND = {
OR = { is_in_array = { array = rq_queue value = 329 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 503 }
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 503 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = synth_oil_experiments }
NOT = { is_in_array = { array = rq_queue value = 504 } }
NOT = { is_in_array = { array = rq_ap_ban value = 504 } }
NOT = { is_in_array = { array = global.rq_hid value = 504 } }
OR = {
can_research = synth_oil_experiments
AND = {
OR = { is_in_array = { array = rq_queue value = 267 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 504 }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_synth_oil_experiments }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_oil }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 504 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 507 } }
if = {
limit = { check_variable = { rq_t < 506 } }
if = {
limit = {
NOT = { has_tech = tactical_bomber1 }
NOT = { is_in_array = { array = rq_queue value = 505 } }
NOT = { is_in_array = { array = rq_ap_ban value = 505 } }
NOT = { is_in_array = { array = global.rq_hid value = 505 } }
OR = {
can_research = tactical_bomber1
AND = {
OR = { is_in_array = { array = rq_queue value = 222 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 505 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1936.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_tac }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 505 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tactical_bomber2 }
NOT = { is_in_array = { array = rq_queue value = 506 } }
NOT = { is_in_array = { array = rq_ap_ban value = 506 } }
NOT = { is_in_array = { array = global.rq_hid value = 506 } }
OR = {
can_research = tactical_bomber2
AND = {
OR = { is_in_array = { array = rq_queue value = 505 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 506 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_tac }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 506 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 508 } }
if = {
limit = {
NOT = { has_tech = tactical_bomber3 }
NOT = { is_in_array = { array = rq_queue value = 507 } }
NOT = { is_in_array = { array = rq_ap_ban value = 507 } }
NOT = { is_in_array = { array = global.rq_hid value = 507 } }
OR = {
can_research = tactical_bomber3
AND = {
OR = { is_in_array = { array = rq_queue value = 506 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 507 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_tac }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 507 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tank_landing_craft }
NOT = { is_in_array = { array = rq_queue value = 508 } }
NOT = { is_in_array = { array = rq_ap_ban value = 508 } }
NOT = { is_in_array = { array = global.rq_hid value = 508 } }
OR = {
can_research = tank_landing_craft
AND = {
OR = { is_in_array = { array = rq_queue value = 359 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 508 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { NOT = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_tp }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 508 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 513 } }
if = {
limit = { check_variable = { rq_t < 511 } }
if = {
limit = { check_variable = { rq_t < 510 } }
if = {
limit = {
NOT = { has_tech = tech_engineers }
NOT = { is_in_array = { array = rq_queue value = 509 } }
NOT = { is_in_array = { array = rq_ap_ban value = 509 } }
NOT = { is_in_array = { array = global.rq_hid value = 509 } }
OR = {
can_research = tech_engineers
AND = {
OR = { is_in_array = { array = rq_queue value = 542 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 509 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = CHI NOT = { has_dlc = "No Compromise, No Surrender" } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_engineers }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_eng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 509 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_engineers2 }
NOT = { is_in_array = { array = rq_queue value = 510 } }
NOT = { is_in_array = { array = rq_ap_ban value = 510 } }
NOT = { is_in_array = { array = global.rq_hid value = 510 } }
OR = {
can_research = tech_engineers2
AND = {
OR = { is_in_array = { array = rq_queue value = 509 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 510 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_eng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 510 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 512 } }
if = {
limit = {
NOT = { has_tech = tech_engineers3 }
NOT = { is_in_array = { array = rq_queue value = 511 } }
NOT = { is_in_array = { array = rq_ap_ban value = 511 } }
NOT = { is_in_array = { array = global.rq_hid value = 511 } }
OR = {
can_research = tech_engineers3
AND = {
OR = { is_in_array = { array = rq_queue value = 510 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 511 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_eng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 511 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_engineers4 }
NOT = { is_in_array = { array = rq_queue value = 512 } }
NOT = { is_in_array = { array = rq_ap_ban value = 512 } }
NOT = { is_in_array = { array = global.rq_hid value = 512 } }
OR = {
can_research = tech_engineers4
AND = {
OR = { is_in_array = { array = rq_queue value = 511 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 512 }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_eng }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 512 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 515 } }
if = {
limit = { check_variable = { rq_t < 514 } }
if = {
limit = {
NOT = { has_tech = tech_field_hospital }
NOT = { is_in_array = { array = rq_queue value = 513 } }
NOT = { is_in_array = { array = rq_ap_ban value = 513 } }
NOT = { is_in_array = { array = global.rq_hid value = 513 } }
OR = {
can_research = tech_field_hospital
AND = {
OR = { is_in_array = { array = rq_queue value = 542 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 513 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_field_hospital }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_hos }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 513 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_field_hospital2 }
NOT = { is_in_array = { array = rq_queue value = 514 } }
NOT = { is_in_array = { array = rq_ap_ban value = 514 } }
NOT = { is_in_array = { array = global.rq_hid value = 514 } }
OR = {
can_research = tech_field_hospital2
AND = {
OR = { is_in_array = { array = rq_queue value = 513 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 514 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_hos }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 514 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 516 } }
if = {
limit = {
NOT = { has_tech = tech_field_hospital3 }
NOT = { is_in_array = { array = rq_queue value = 515 } }
NOT = { is_in_array = { array = rq_ap_ban value = 515 } }
NOT = { is_in_array = { array = global.rq_hid value = 515 } }
OR = {
can_research = tech_field_hospital3
AND = {
OR = { is_in_array = { array = rq_queue value = 514 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 515 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_hos }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 515 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 517 } }
if = {
limit = {
NOT = { has_tech = tech_field_hospital4 }
NOT = { is_in_array = { array = rq_queue value = 516 } }
NOT = { is_in_array = { array = rq_ap_ban value = 516 } }
NOT = { is_in_array = { array = global.rq_hid value = 516 } }
OR = {
can_research = tech_field_hospital4
AND = {
OR = { is_in_array = { array = rq_queue value = 515 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 516 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_hos }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 516 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_logistics_company }
NOT = { is_in_array = { array = rq_queue value = 517 } }
NOT = { is_in_array = { array = rq_ap_ban value = 517 } }
NOT = { is_in_array = { array = global.rq_hid value = 517 } }
OR = {
can_research = tech_logistics_company
AND = {
OR = { is_in_array = { array = rq_queue value = 542 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 517 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_logistics_company }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_log }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 517 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 535 } }
if = {
limit = { check_variable = { rq_t < 526 } }
if = {
limit = { check_variable = { rq_t < 522 } }
if = {
limit = { check_variable = { rq_t < 520 } }
if = {
limit = { check_variable = { rq_t < 519 } }
if = {
limit = {
NOT = { has_tech = tech_logistics_company2 }
NOT = { is_in_array = { array = rq_queue value = 518 } }
NOT = { is_in_array = { array = rq_ap_ban value = 518 } }
NOT = { is_in_array = { array = global.rq_hid value = 518 } }
OR = {
can_research = tech_logistics_company2
AND = {
OR = { is_in_array = { array = rq_queue value = 517 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 518 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_log }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 518 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_logistics_company3 }
NOT = { is_in_array = { array = rq_queue value = 519 } }
NOT = { is_in_array = { array = rq_ap_ban value = 519 } }
NOT = { is_in_array = { array = global.rq_hid value = 519 } }
OR = {
can_research = tech_logistics_company3
AND = {
OR = { is_in_array = { array = rq_queue value = 518 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 519 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_log }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 519 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 521 } }
if = {
limit = {
NOT = { has_tech = tech_logistics_company4 }
NOT = { is_in_array = { array = rq_queue value = 520 } }
NOT = { is_in_array = { array = rq_ap_ban value = 520 } }
NOT = { is_in_array = { array = global.rq_hid value = 520 } }
OR = {
can_research = tech_logistics_company4
AND = {
OR = { is_in_array = { array = rq_queue value = 519 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 520 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_log }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 520 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_maintenance_company }
NOT = { is_in_array = { array = rq_queue value = 521 } }
NOT = { is_in_array = { array = rq_ap_ban value = 521 } }
NOT = { is_in_array = { array = global.rq_hid value = 521 } }
OR = {
can_research = tech_maintenance_company
AND = {
OR = { is_in_array = { array = rq_queue value = 542 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 521 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_maintenance_company }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnc }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 521 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 524 } }
if = {
limit = { check_variable = { rq_t < 523 } }
if = {
limit = {
NOT = { has_tech = tech_maintenance_company2 }
NOT = { is_in_array = { array = rq_queue value = 522 } }
NOT = { is_in_array = { array = rq_ap_ban value = 522 } }
NOT = { is_in_array = { array = global.rq_hid value = 522 } }
OR = {
can_research = tech_maintenance_company2
AND = {
OR = { is_in_array = { array = rq_queue value = 521 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 522 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_maintenance_company2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnc }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 522 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_maintenance_company3 }
NOT = { is_in_array = { array = rq_queue value = 523 } }
NOT = { is_in_array = { array = rq_ap_ban value = 523 } }
NOT = { is_in_array = { array = global.rq_hid value = 523 } }
OR = {
can_research = tech_maintenance_company3
AND = {
OR = { is_in_array = { array = rq_queue value = 522 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 523 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnc }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 523 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 525 } }
if = {
limit = {
NOT = { has_tech = tech_maintenance_company4 }
NOT = { is_in_array = { array = rq_queue value = 524 } }
NOT = { is_in_array = { array = rq_ap_ban value = 524 } }
NOT = { is_in_array = { array = global.rq_hid value = 524 } }
OR = {
can_research = tech_maintenance_company4
AND = {
OR = { is_in_array = { array = rq_queue value = 523 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 524 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnc }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 524 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_military_police }
NOT = { is_in_array = { array = rq_queue value = 525 } }
NOT = { is_in_array = { array = rq_ap_ban value = 525 } }
NOT = { is_in_array = { array = global.rq_hid value = 525 } }
OR = {
can_research = tech_military_police
AND = {
OR = { is_in_array = { array = rq_queue value = 542 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 525 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER POL = { has_capitulated = yes } GER = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ITA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mp }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 525 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 530 } }
if = {
limit = { check_variable = { rq_t < 528 } }
if = {
limit = { check_variable = { rq_t < 527 } }
if = {
limit = {
NOT = { has_tech = tech_military_police2 }
NOT = { is_in_array = { array = rq_queue value = 526 } }
NOT = { is_in_array = { array = rq_ap_ban value = 526 } }
NOT = { is_in_array = { array = global.rq_hid value = 526 } }
OR = {
can_research = tech_military_police2
AND = {
OR = { is_in_array = { array = rq_queue value = 525 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 526 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mp }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 526 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_military_police3 }
NOT = { is_in_array = { array = rq_queue value = 527 } }
NOT = { is_in_array = { array = rq_ap_ban value = 527 } }
NOT = { is_in_array = { array = global.rq_hid value = 527 } }
OR = {
can_research = tech_military_police3
AND = {
OR = { is_in_array = { array = rq_queue value = 526 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 527 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mp }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 527 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 529 } }
if = {
limit = {
NOT = { has_tech = tech_military_police4 }
NOT = { is_in_array = { array = rq_queue value = 528 } }
NOT = { is_in_array = { array = rq_ap_ban value = 528 } }
NOT = { is_in_array = { array = global.rq_hid value = 528 } }
OR = {
can_research = tech_military_police4
AND = {
OR = { is_in_array = { array = rq_queue value = 527 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 528 }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mp }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 528 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_mountaineers }
NOT = { is_in_array = { array = rq_queue value = 529 } }
NOT = { is_in_array = { array = rq_ap_ban value = 529 } }
NOT = { is_in_array = { array = global.rq_hid value = 529 } }
OR = {
can_research = tech_mountaineers
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 529 }
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_g = rq_apf_tech_mountaineers }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnt }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 529 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 532 } }
if = {
limit = { check_variable = { rq_t < 531 } }
if = {
limit = {
NOT = { has_tech = tech_mountaineers2 }
NOT = { is_in_array = { array = rq_queue value = 530 } }
NOT = { is_in_array = { array = rq_ap_ban value = 530 } }
NOT = { is_in_array = { array = global.rq_hid value = 530 } }
OR = {
can_research = tech_mountaineers2
AND = {
OR = { is_in_array = { array = rq_queue value = 529 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 530 }
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnt }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 530 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_mountaineers3 }
NOT = { is_in_array = { array = rq_queue value = 531 } }
NOT = { is_in_array = { array = rq_ap_ban value = 531 } }
NOT = { is_in_array = { array = global.rq_hid value = 531 } }
OR = {
can_research = tech_mountaineers3
AND = {
OR = { is_in_array = { array = rq_queue value = 530 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 531 }
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnt }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 531 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 533 } }
if = {
limit = {
NOT = { has_tech = tech_recon }
NOT = { is_in_array = { array = rq_queue value = 532 } }
NOT = { is_in_array = { array = rq_ap_ban value = 532 } }
NOT = { is_in_array = { array = global.rq_hid value = 532 } }
OR = {
can_research = tech_recon
AND = {
OR = { is_in_array = { array = rq_queue value = 542 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 532 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_recon }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 532 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 534 } }
if = {
limit = {
NOT = { has_tech = tech_recon2 }
NOT = { is_in_array = { array = rq_queue value = 533 } }
NOT = { is_in_array = { array = rq_ap_ban value = 533 } }
NOT = { is_in_array = { array = global.rq_hid value = 533 } }
OR = {
can_research = tech_recon2
AND = {
OR = { is_in_array = { array = rq_queue value = 532 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 533 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 533 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_recon3 }
NOT = { is_in_array = { array = rq_queue value = 534 } }
NOT = { is_in_array = { array = rq_ap_ban value = 534 } }
NOT = { is_in_array = { array = global.rq_hid value = 534 } }
OR = {
can_research = tech_recon3
AND = {
OR = { is_in_array = { array = rq_queue value = 533 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 534 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 534 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 544 } }
if = {
limit = { check_variable = { rq_t < 539 } }
if = {
limit = { check_variable = { rq_t < 537 } }
if = {
limit = { check_variable = { rq_t < 536 } }
if = {
limit = {
NOT = { has_tech = tech_recon4 }
NOT = { is_in_array = { array = rq_queue value = 535 } }
NOT = { is_in_array = { array = rq_ap_ban value = 535 } }
NOT = { is_in_array = { array = global.rq_hid value = 535 } }
OR = {
can_research = tech_recon4
AND = {
OR = { is_in_array = { array = rq_queue value = 534 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 535 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rec }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 535 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 538 } }
if = {
limit = {
NOT = { has_tech = tech_signal_company }
NOT = { is_in_array = { array = rq_queue value = 537 } }
NOT = { is_in_array = { array = rq_ap_ban value = 537 } }
NOT = { is_in_array = { array = global.rq_hid value = 537 } }
OR = {
can_research = tech_signal_company
AND = {
OR = { is_in_array = { array = rq_queue value = 542 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 537 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sig }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 537 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_signal_company2 }
NOT = { is_in_array = { array = rq_queue value = 538 } }
NOT = { is_in_array = { array = rq_ap_ban value = 538 } }
NOT = { is_in_array = { array = global.rq_hid value = 538 } }
OR = {
can_research = tech_signal_company2
AND = {
OR = { is_in_array = { array = rq_queue value = 537 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 538 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sig }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 538 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 541 } }
if = {
limit = { check_variable = { rq_t < 540 } }
if = {
limit = {
NOT = { has_tech = tech_signal_company3 }
NOT = { is_in_array = { array = rq_queue value = 539 } }
NOT = { is_in_array = { array = rq_ap_ban value = 539 } }
NOT = { is_in_array = { array = global.rq_hid value = 539 } }
OR = {
can_research = tech_signal_company3
AND = {
OR = { is_in_array = { array = rq_queue value = 538 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 539 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sig }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 539 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_signal_company4 }
NOT = { is_in_array = { array = rq_queue value = 540 } }
NOT = { is_in_array = { array = rq_ap_ban value = 540 } }
NOT = { is_in_array = { array = global.rq_hid value = 540 } }
OR = {
can_research = tech_signal_company4
AND = {
OR = { is_in_array = { array = rq_queue value = 539 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 540 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sig }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 540 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 542 } }
if = {
limit = {
NOT = { has_tech = tech_special_forces }
NOT = { is_in_array = { array = rq_queue value = 541 } }
NOT = { is_in_array = { array = rq_ap_ban value = 541 } }
NOT = { is_in_array = { array = global.rq_hid value = 541 } }
OR = {
can_research = tech_special_forces
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 541 }
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 541 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 543 } }
if = {
limit = {
NOT = { has_tech = tech_support }
NOT = { is_in_array = { array = rq_queue value = 542 } }
NOT = { is_in_array = { array = rq_ap_ban value = 542 } }
NOT = { is_in_array = { array = global.rq_hid value = 542 } }
OR = {
can_research = tech_support
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 542 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = CHI NOT = { has_dlc = "No Compromise, No Surrender" } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sw }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 542 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
if = {
limit = {
NOT = { has_tech = tech_trucks }
NOT = { is_in_array = { array = rq_queue value = 543 } }
NOT = { is_in_array = { array = rq_ap_ban value = 543 } }
NOT = { is_in_array = { array = global.rq_hid value = 543 } }
OR = {
can_research = tech_trucks
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 543 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.75 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_mot }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 543 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 548 } }
if = {
limit = { check_variable = { rq_t < 546 } }
if = {
limit = { check_variable = { rq_t < 545 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 547 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 550 } }
if = {
limit = { check_variable = { rq_t < 549 } }
if = {
limit = {
NOT = { has_tech = transport }
NOT = { is_in_array = { array = rq_queue value = 548 } }
NOT = { is_in_array = { array = rq_ap_ban value = 548 } }
NOT = { is_in_array = { array = global.rq_hid value = 548 } }
OR = {
can_research = transport
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 548 }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { NOT = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_tp }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 548 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 551 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 552 } }
if = {
limit = {
NOT = { has_tech = wartime_train }
NOT = { is_in_array = { array = rq_queue value = 551 } }
NOT = { is_in_array = { array = rq_ap_ban value = 551 } }
NOT = { is_in_array = { array = global.rq_hid value = 551 } }
OR = {
can_research = wartime_train
AND = {
OR = { is_in_array = { array = rq_queue value = 174 } }
}
}
}
set_temp_variable = { rq_ap_ok = 1 }
if = {
limit = { check_variable = { rq_ap_chk = 0 } }
set_temp_variable = { rq_t = 551 }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
set_temp_variable = { rq_ap_n = 1 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_trn }
set_temp_variable = { rq_ap_p = 0 }
if = { limit = { is_in_array = { array = rq_ap_pb value = 551 } } set_temp_variable = { rq_ap_p = 1 } }
rq_ap_score = yes
}
}
}
else = {
}
}
}
}
}
}
}
}
}
}
}
rq_ap_kids = {
set_temp_variable = { rq_ap_chk = 0 }
if = {
limit = { check_variable = { rq_t < 277 } }
if = {
limit = { check_variable = { rq_t < 139 } }
if = {
limit = { check_variable = { rq_t < 70 } }
if = {
limit = { check_variable = { rq_t < 35 } }
if = {
limit = { check_variable = { rq_t < 18 } }
if = {
limit = { check_variable = { rq_t < 9 } }
if = {
limit = { check_variable = { rq_t < 5 } }
if = {
limit = { check_variable = { rq_t < 3 } }
if = {
limit = { check_variable = { rq_t < 2 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 4 } }
}
else = {
set_temp_variable = { rq_t = 5 } rq_ap_one = yes
set_temp_variable = { rq_t = 200 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 7 } }
if = {
limit = { check_variable = { rq_t < 6 } }
set_temp_variable = { rq_t = 6 } rq_ap_one = yes
set_temp_variable = { rq_t = 201 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 202 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 8 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 13 } }
if = {
limit = { check_variable = { rq_t < 11 } }
if = {
limit = { check_variable = { rq_t < 10 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 12 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 15 } }
if = {
limit = { check_variable = { rq_t < 14 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 16 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 17 } }
}
else = {
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 26 } }
if = {
limit = { check_variable = { rq_t < 22 } }
if = {
limit = { check_variable = { rq_t < 20 } }
if = {
limit = { check_variable = { rq_t < 19 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 21 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 24 } }
if = {
limit = { check_variable = { rq_t < 23 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 25 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 30 } }
if = {
limit = { check_variable = { rq_t < 28 } }
if = {
limit = { check_variable = { rq_t < 27 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 29 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 32 } }
if = {
limit = { check_variable = { rq_t < 31 } }
set_temp_variable = { rq_t = 31 } rq_ap_one = yes
set_temp_variable = { rq_t = 32 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 33 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 34 } }
}
else = {
set_temp_variable = { rq_t = 30 } rq_ap_one = yes
set_temp_variable = { rq_t = 33 } rq_ap_one = yes
set_temp_variable = { rq_t = 502 } rq_ap_one = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 52 } }
if = {
limit = { check_variable = { rq_t < 43 } }
if = {
limit = { check_variable = { rq_t < 39 } }
if = {
limit = { check_variable = { rq_t < 37 } }
if = {
limit = { check_variable = { rq_t < 36 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 38 } }
set_temp_variable = { rq_t = 38 } rq_ap_one = yes
set_temp_variable = { rq_t = 42 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 41 } }
if = {
limit = { check_variable = { rq_t < 40 } }
set_temp_variable = { rq_t = 377 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 42 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 47 } }
if = {
limit = { check_variable = { rq_t < 45 } }
if = {
limit = { check_variable = { rq_t < 44 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 46 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 49 } }
if = {
limit = { check_variable = { rq_t < 48 } }
set_temp_variable = { rq_t = 57 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 50 } }
set_temp_variable = { rq_t = 45 } rq_ap_one = yes
set_temp_variable = { rq_t = 48 } rq_ap_one = yes
set_temp_variable = { rq_t = 51 } rq_ap_one = yes
set_temp_variable = { rq_t = 66 } rq_ap_one = yes
set_temp_variable = { rq_t = 364 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 51 } }
set_temp_variable = { rq_t = 365 } rq_ap_one = yes
}
else = {
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 61 } }
if = {
limit = { check_variable = { rq_t < 56 } }
if = {
limit = { check_variable = { rq_t < 54 } }
if = {
limit = { check_variable = { rq_t < 53 } }
set_temp_variable = { rq_t = 53 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 55 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 58 } }
if = {
limit = { check_variable = { rq_t < 57 } }
}
else = {
set_temp_variable = { rq_t = 47 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 59 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 60 } }
set_temp_variable = { rq_t = 55 } rq_ap_one = yes
set_temp_variable = { rq_t = 58 } rq_ap_one = yes
set_temp_variable = { rq_t = 61 } rq_ap_one = yes
}
else = {
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 65 } }
if = {
limit = { check_variable = { rq_t < 63 } }
if = {
limit = { check_variable = { rq_t < 62 } }
}
else = {
set_temp_variable = { rq_t = 125 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 64 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 67 } }
if = {
limit = { check_variable = { rq_t < 66 } }
}
else = {
set_temp_variable = { rq_t = 49 } rq_ap_one = yes
set_temp_variable = { rq_t = 64 } rq_ap_one = yes
set_temp_variable = { rq_t = 65 } rq_ap_one = yes
set_temp_variable = { rq_t = 68 } rq_ap_one = yes
set_temp_variable = { rq_t = 364 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 68 } }
set_temp_variable = { rq_t = 365 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 69 } }
}
else = {
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 104 } }
if = {
limit = { check_variable = { rq_t < 87 } }
if = {
limit = { check_variable = { rq_t < 78 } }
if = {
limit = { check_variable = { rq_t < 74 } }
if = {
limit = { check_variable = { rq_t < 72 } }
if = {
limit = { check_variable = { rq_t < 71 } }
set_temp_variable = { rq_t = 90 } rq_ap_one = yes
set_temp_variable = { rq_t = 91 } rq_ap_one = yes
set_temp_variable = { rq_t = 92 } rq_ap_one = yes
set_temp_variable = { rq_t = 93 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 380 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 73 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 76 } }
if = {
limit = { check_variable = { rq_t < 75 } }
set_temp_variable = { rq_t = 381 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 77 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 82 } }
if = {
limit = { check_variable = { rq_t < 80 } }
if = {
limit = { check_variable = { rq_t < 79 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 81 } }
set_temp_variable = { rq_t = 278 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 84 } }
if = {
limit = { check_variable = { rq_t < 83 } }
set_temp_variable = { rq_t = 384 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 253 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 85 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 86 } }
}
else = {
set_temp_variable = { rq_t = 87 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 95 } }
if = {
limit = { check_variable = { rq_t < 91 } }
if = {
limit = { check_variable = { rq_t < 89 } }
if = {
limit = { check_variable = { rq_t < 88 } }
set_temp_variable = { rq_t = 88 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 90 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 93 } }
if = {
limit = { check_variable = { rq_t < 92 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 94 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 99 } }
if = {
limit = { check_variable = { rq_t < 97 } }
if = {
limit = { check_variable = { rq_t < 96 } }
set_temp_variable = { rq_t = 96 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 98 } }
set_temp_variable = { rq_t = 98 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 101 } }
if = {
limit = { check_variable = { rq_t < 100 } }
set_temp_variable = { rq_t = 94 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 101 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 102 } }
set_temp_variable = { rq_t = 102 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 103 } }
set_temp_variable = { rq_t = 103 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 104 } rq_ap_one = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 121 } }
if = {
limit = { check_variable = { rq_t < 112 } }
if = {
limit = { check_variable = { rq_t < 108 } }
if = {
limit = { check_variable = { rq_t < 106 } }
if = {
limit = { check_variable = { rq_t < 105 } }
}
else = {
set_temp_variable = { rq_t = 106 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 107 } }
set_temp_variable = { rq_t = 107 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 108 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 110 } }
if = {
limit = { check_variable = { rq_t < 109 } }
set_temp_variable = { rq_t = 109 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 111 } }
}
else = {
set_temp_variable = { rq_t = 112 } rq_ap_one = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 116 } }
if = {
limit = { check_variable = { rq_t < 114 } }
if = {
limit = { check_variable = { rq_t < 113 } }
set_temp_variable = { rq_t = 113 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 114 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 115 } }
}
else = {
set_temp_variable = { rq_t = 116 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 118 } }
if = {
limit = { check_variable = { rq_t < 117 } }
set_temp_variable = { rq_t = 117 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 118 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 119 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 120 } }
set_temp_variable = { rq_t = 419 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 121 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 130 } }
if = {
limit = { check_variable = { rq_t < 125 } }
if = {
limit = { check_variable = { rq_t < 123 } }
if = {
limit = { check_variable = { rq_t < 122 } }
set_temp_variable = { rq_t = 122 } rq_ap_one = yes
set_temp_variable = { rq_t = 426 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 123 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 124 } }
set_temp_variable = { rq_t = 124 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 127 } }
if = {
limit = { check_variable = { rq_t < 126 } }
set_temp_variable = { rq_t = 261 } rq_ap_one = yes
set_temp_variable = { rq_t = 485 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 128 } }
set_temp_variable = { rq_t = 141 } rq_ap_one = yes
set_temp_variable = { rq_t = 150 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 129 } }
set_temp_variable = { rq_t = 279 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 279 } rq_ap_one = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 134 } }
if = {
limit = { check_variable = { rq_t < 132 } }
if = {
limit = { check_variable = { rq_t < 131 } }
set_temp_variable = { rq_t = 280 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 139 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 133 } }
}
else = {
set_temp_variable = { rq_t = 283 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 136 } }
if = {
limit = { check_variable = { rq_t < 135 } }
set_temp_variable = { rq_t = 284 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 285 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 137 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 138 } }
}
else = {
set_temp_variable = { rq_t = 185 } rq_ap_one = yes
set_temp_variable = { rq_t = 356 } rq_ap_one = yes
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 208 } }
if = {
limit = { check_variable = { rq_t < 173 } }
if = {
limit = { check_variable = { rq_t < 156 } }
if = {
limit = { check_variable = { rq_t < 147 } }
if = {
limit = { check_variable = { rq_t < 143 } }
if = {
limit = { check_variable = { rq_t < 141 } }
if = {
limit = { check_variable = { rq_t < 140 } }
set_temp_variable = { rq_t = 289 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 142 } }
set_temp_variable = { rq_t = 143 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 151 } rq_ap_one = yes
set_temp_variable = { rq_t = 292 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 145 } }
if = {
limit = { check_variable = { rq_t < 144 } }
set_temp_variable = { rq_t = 291 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 146 } }
set_temp_variable = { rq_t = 140 } rq_ap_one = yes
set_temp_variable = { rq_t = 144 } rq_ap_one = yes
set_temp_variable = { rq_t = 147 } rq_ap_one = yes
set_temp_variable = { rq_t = 295 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 296 } rq_ap_one = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 151 } }
if = {
limit = { check_variable = { rq_t < 149 } }
if = {
limit = { check_variable = { rq_t < 148 } }
}
else = {
set_temp_variable = { rq_t = 300 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 150 } }
}
else = {
set_temp_variable = { rq_t = 152 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 153 } }
if = {
limit = { check_variable = { rq_t < 152 } }
set_temp_variable = { rq_t = 142 } rq_ap_one = yes
set_temp_variable = { rq_t = 303 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 302 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 154 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 155 } }
set_temp_variable = { rq_t = 149 } rq_ap_one = yes
set_temp_variable = { rq_t = 153 } rq_ap_one = yes
set_temp_variable = { rq_t = 156 } rq_ap_one = yes
set_temp_variable = { rq_t = 306 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 307 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 164 } }
if = {
limit = { check_variable = { rq_t < 160 } }
if = {
limit = { check_variable = { rq_t < 158 } }
if = {
limit = { check_variable = { rq_t < 157 } }
}
else = {
set_temp_variable = { rq_t = 189 } rq_ap_one = yes
set_temp_variable = { rq_t = 215 } rq_ap_one = yes
set_temp_variable = { rq_t = 309 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 159 } }
set_temp_variable = { rq_t = 310 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 162 } }
if = {
limit = { check_variable = { rq_t < 161 } }
}
else = {
set_temp_variable = { rq_t = 159 } rq_ap_one = yes
set_temp_variable = { rq_t = 160 } rq_ap_one = yes
set_temp_variable = { rq_t = 163 } rq_ap_one = yes
set_temp_variable = { rq_t = 313 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 163 } }
set_temp_variable = { rq_t = 314 } rq_ap_one = yes
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 168 } }
if = {
limit = { check_variable = { rq_t < 166 } }
if = {
limit = { check_variable = { rq_t < 165 } }
set_temp_variable = { rq_t = 316 } rq_ap_one = yes
set_temp_variable = { rq_t = 488 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 321 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 167 } }
set_temp_variable = { rq_t = 322 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 139 } rq_ap_one = yes
set_temp_variable = { rq_t = 323 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 170 } }
if = {
limit = { check_variable = { rq_t < 169 } }
set_temp_variable = { rq_t = 324 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 325 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 171 } }
set_temp_variable = { rq_t = 327 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 172 } }
set_temp_variable = { rq_t = 330 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 332 } rq_ap_one = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 190 } }
if = {
limit = { check_variable = { rq_t < 181 } }
if = {
limit = { check_variable = { rq_t < 177 } }
if = {
limit = { check_variable = { rq_t < 175 } }
if = {
limit = { check_variable = { rq_t < 174 } }
set_temp_variable = { rq_t = 326 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 119 } rq_ap_one = yes
set_temp_variable = { rq_t = 551 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 176 } }
set_temp_variable = { rq_t = 176 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 177 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 179 } }
if = {
limit = { check_variable = { rq_t < 178 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 180 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 185 } }
if = {
limit = { check_variable = { rq_t < 183 } }
if = {
limit = { check_variable = { rq_t < 182 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 184 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 187 } }
if = {
limit = { check_variable = { rq_t < 186 } }
set_temp_variable = { rq_t = 186 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 188 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 189 } }
set_temp_variable = { rq_t = 132 } rq_ap_one = yes
set_temp_variable = { rq_t = 136 } rq_ap_one = yes
set_temp_variable = { rq_t = 281 } rq_ap_one = yes
set_temp_variable = { rq_t = 288 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 190 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 199 } }
if = {
limit = { check_variable = { rq_t < 194 } }
if = {
limit = { check_variable = { rq_t < 192 } }
if = {
limit = { check_variable = { rq_t < 191 } }
set_temp_variable = { rq_t = 191 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 192 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 193 } }
set_temp_variable = { rq_t = 193 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 196 } }
if = {
limit = { check_variable = { rq_t < 195 } }
set_temp_variable = { rq_t = 195 } rq_ap_one = yes
set_temp_variable = { rq_t = 247 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 196 } rq_ap_one = yes
set_temp_variable = { rq_t = 248 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 197 } }
set_temp_variable = { rq_t = 197 } rq_ap_one = yes
set_temp_variable = { rq_t = 249 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 198 } }
set_temp_variable = { rq_t = 198 } rq_ap_one = yes
set_temp_variable = { rq_t = 250 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 251 } rq_ap_one = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 203 } }
if = {
limit = { check_variable = { rq_t < 201 } }
if = {
limit = { check_variable = { rq_t < 200 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 202 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 205 } }
if = {
limit = { check_variable = { rq_t < 204 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 206 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 207 } }
}
else = {
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 242 } }
if = {
limit = { check_variable = { rq_t < 225 } }
if = {
limit = { check_variable = { rq_t < 216 } }
if = {
limit = { check_variable = { rq_t < 212 } }
if = {
limit = { check_variable = { rq_t < 210 } }
if = {
limit = { check_variable = { rq_t < 209 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 211 } }
set_temp_variable = { rq_t = 211 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 212 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 214 } }
if = {
limit = { check_variable = { rq_t < 213 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 215 } }
}
else = {
set_temp_variable = { rq_t = 216 } rq_ap_one = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 220 } }
if = {
limit = { check_variable = { rq_t < 218 } }
if = {
limit = { check_variable = { rq_t < 217 } }
set_temp_variable = { rq_t = 217 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 218 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 219 } }
set_temp_variable = { rq_t = 219 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 222 } }
if = {
limit = { check_variable = { rq_t < 221 } }
set_temp_variable = { rq_t = 128 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 129 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 223 } }
set_temp_variable = { rq_t = 274 } rq_ap_one = yes
set_temp_variable = { rq_t = 505 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 224 } }
set_temp_variable = { rq_t = 110 } rq_ap_one = yes
set_temp_variable = { rq_t = 273 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 130 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 233 } }
if = {
limit = { check_variable = { rq_t < 229 } }
if = {
limit = { check_variable = { rq_t < 227 } }
if = {
limit = { check_variable = { rq_t < 226 } }
set_temp_variable = { rq_t = 134 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 4 } rq_ap_one = yes
set_temp_variable = { rq_t = 203 } rq_ap_one = yes
set_temp_variable = { rq_t = 254 } rq_ap_one = yes
set_temp_variable = { rq_t = 399 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 228 } }
set_temp_variable = { rq_t = 142 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 151 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 231 } }
if = {
limit = { check_variable = { rq_t < 230 } }
set_temp_variable = { rq_t = 165 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 166 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 232 } }
set_temp_variable = { rq_t = 167 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 133 } rq_ap_one = yes
set_temp_variable = { rq_t = 168 } rq_ap_one = yes
set_temp_variable = { rq_t = 436 } rq_ap_one = yes
set_temp_variable = { rq_t = 437 } rq_ap_one = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 237 } }
if = {
limit = { check_variable = { rq_t < 235 } }
if = {
limit = { check_variable = { rq_t < 234 } }
set_temp_variable = { rq_t = 169 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 171 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 236 } }
set_temp_variable = { rq_t = 333 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 369 } rq_ap_one = yes
set_temp_variable = { rq_t = 417 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 239 } }
if = {
limit = { check_variable = { rq_t < 238 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 240 } }
set_temp_variable = { rq_t = 240 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 241 } }
set_temp_variable = { rq_t = 241 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 242 } rq_ap_one = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 259 } }
if = {
limit = { check_variable = { rq_t < 250 } }
if = {
limit = { check_variable = { rq_t < 246 } }
if = {
limit = { check_variable = { rq_t < 244 } }
if = {
limit = { check_variable = { rq_t < 243 } }
}
else = {
set_temp_variable = { rq_t = 89 } rq_ap_one = yes
set_temp_variable = { rq_t = 244 } rq_ap_one = yes
set_temp_variable = { rq_t = 420 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 245 } }
set_temp_variable = { rq_t = 245 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 246 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 248 } }
if = {
limit = { check_variable = { rq_t < 247 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 249 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 254 } }
if = {
limit = { check_variable = { rq_t < 252 } }
if = {
limit = { check_variable = { rq_t < 251 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 253 } }
}
else = {
set_temp_variable = { rq_t = 238 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 256 } }
if = {
limit = { check_variable = { rq_t < 255 } }
set_temp_variable = { rq_t = 204 } rq_ap_one = yes
set_temp_variable = { rq_t = 255 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 205 } rq_ap_one = yes
set_temp_variable = { rq_t = 256 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 257 } }
set_temp_variable = { rq_t = 206 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 258 } }
set_temp_variable = { rq_t = 258 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 259 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 268 } }
if = {
limit = { check_variable = { rq_t < 263 } }
if = {
limit = { check_variable = { rq_t < 261 } }
if = {
limit = { check_variable = { rq_t < 260 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 262 } }
}
else = {
set_temp_variable = { rq_t = 263 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 265 } }
if = {
limit = { check_variable = { rq_t < 264 } }
set_temp_variable = { rq_t = 264 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 265 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 266 } }
set_temp_variable = { rq_t = 266 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 267 } }
}
else = {
set_temp_variable = { rq_t = 262 } rq_ap_one = yes
set_temp_variable = { rq_t = 504 } rq_ap_one = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 272 } }
if = {
limit = { check_variable = { rq_t < 270 } }
if = {
limit = { check_variable = { rq_t < 269 } }
set_temp_variable = { rq_t = 339 } rq_ap_one = yes
set_temp_variable = { rq_t = 340 } rq_ap_one = yes
set_temp_variable = { rq_t = 341 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 145 } rq_ap_one = yes
set_temp_variable = { rq_t = 154 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 271 } }
set_temp_variable = { rq_t = 146 } rq_ap_one = yes
set_temp_variable = { rq_t = 155 } rq_ap_one = yes
set_temp_variable = { rq_t = 162 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 274 } }
if = {
limit = { check_variable = { rq_t < 273 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 275 } }
set_temp_variable = { rq_t = 275 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 276 } }
set_temp_variable = { rq_t = 276 } rq_ap_one = yes
}
else = {
}
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 415 } }
if = {
limit = { check_variable = { rq_t < 346 } }
if = {
limit = { check_variable = { rq_t < 311 } }
if = {
limit = { check_variable = { rq_t < 294 } }
if = {
limit = { check_variable = { rq_t < 285 } }
if = {
limit = { check_variable = { rq_t < 281 } }
if = {
limit = { check_variable = { rq_t < 279 } }
if = {
limit = { check_variable = { rq_t < 278 } }
}
else = {
set_temp_variable = { rq_t = 382 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 280 } }
set_temp_variable = { rq_t = 35 } rq_ap_one = yes
set_temp_variable = { rq_t = 128 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 36 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 283 } }
if = {
limit = { check_variable = { rq_t < 282 } }
set_temp_variable = { rq_t = 37 } rq_ap_one = yes
set_temp_variable = { rq_t = 44 } rq_ap_one = yes
set_temp_variable = { rq_t = 282 } rq_ap_one = yes
set_temp_variable = { rq_t = 286 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 284 } }
set_temp_variable = { rq_t = 39 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 40 } rq_ap_one = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 289 } }
if = {
limit = { check_variable = { rq_t < 287 } }
if = {
limit = { check_variable = { rq_t < 286 } }
set_temp_variable = { rq_t = 41 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 288 } }
set_temp_variable = { rq_t = 43 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 291 } }
if = {
limit = { check_variable = { rq_t < 290 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 292 } }
set_temp_variable = { rq_t = 293 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 293 } }
set_temp_variable = { rq_t = 47 } rq_ap_one = yes
set_temp_variable = { rq_t = 303 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 46 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 302 } }
if = {
limit = { check_variable = { rq_t < 298 } }
if = {
limit = { check_variable = { rq_t < 296 } }
if = {
limit = { check_variable = { rq_t < 295 } }
}
else = {
set_temp_variable = { rq_t = 49 } rq_ap_one = yes
set_temp_variable = { rq_t = 290 } rq_ap_one = yes
set_temp_variable = { rq_t = 294 } rq_ap_one = yes
set_temp_variable = { rq_t = 297 } rq_ap_one = yes
set_temp_variable = { rq_t = 313 } rq_ap_one = yes
set_temp_variable = { rq_t = 493 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 297 } }
set_temp_variable = { rq_t = 50 } rq_ap_one = yes
set_temp_variable = { rq_t = 494 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 300 } }
if = {
limit = { check_variable = { rq_t < 299 } }
set_temp_variable = { rq_t = 299 } rq_ap_one = yes
set_temp_variable = { rq_t = 334 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 52 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 301 } }
set_temp_variable = { rq_t = 54 } rq_ap_one = yes
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 306 } }
if = {
limit = { check_variable = { rq_t < 304 } }
if = {
limit = { check_variable = { rq_t < 303 } }
set_temp_variable = { rq_t = 135 } rq_ap_one = yes
set_temp_variable = { rq_t = 304 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 57 } rq_ap_one = yes
set_temp_variable = { rq_t = 292 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 305 } }
set_temp_variable = { rq_t = 56 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 308 } }
if = {
limit = { check_variable = { rq_t < 307 } }
set_temp_variable = { rq_t = 59 } rq_ap_one = yes
set_temp_variable = { rq_t = 97 } rq_ap_one = yes
set_temp_variable = { rq_t = 161 } rq_ap_one = yes
set_temp_variable = { rq_t = 301 } rq_ap_one = yes
set_temp_variable = { rq_t = 305 } rq_ap_one = yes
set_temp_variable = { rq_t = 308 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 60 } rq_ap_one = yes
set_temp_variable = { rq_t = 99 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 309 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 310 } }
set_temp_variable = { rq_t = 62 } rq_ap_one = yes
set_temp_variable = { rq_t = 287 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 63 } rq_ap_one = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 328 } }
if = {
limit = { check_variable = { rq_t < 319 } }
if = {
limit = { check_variable = { rq_t < 315 } }
if = {
limit = { check_variable = { rq_t < 313 } }
if = {
limit = { check_variable = { rq_t < 312 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 314 } }
set_temp_variable = { rq_t = 66 } rq_ap_one = yes
set_temp_variable = { rq_t = 295 } rq_ap_one = yes
set_temp_variable = { rq_t = 311 } rq_ap_one = yes
set_temp_variable = { rq_t = 312 } rq_ap_one = yes
set_temp_variable = { rq_t = 315 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 67 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 317 } }
if = {
limit = { check_variable = { rq_t < 316 } }
}
else = {
set_temp_variable = { rq_t = 70 } rq_ap_one = yes
set_temp_variable = { rq_t = 213 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 318 } }
set_temp_variable = { rq_t = 71 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 72 } rq_ap_one = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 323 } }
if = {
limit = { check_variable = { rq_t < 321 } }
if = {
limit = { check_variable = { rq_t < 320 } }
}
else = {
set_temp_variable = { rq_t = 74 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 322 } }
set_temp_variable = { rq_t = 75 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 76 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 325 } }
if = {
limit = { check_variable = { rq_t < 324 } }
set_temp_variable = { rq_t = 77 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 78 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 326 } }
set_temp_variable = { rq_t = 79 } rq_ap_one = yes
set_temp_variable = { rq_t = 172 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 327 } }
set_temp_variable = { rq_t = 363 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 81 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 337 } }
if = {
limit = { check_variable = { rq_t < 332 } }
if = {
limit = { check_variable = { rq_t < 330 } }
if = {
limit = { check_variable = { rq_t < 329 } }
set_temp_variable = { rq_t = 82 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 503 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 331 } }
set_temp_variable = { rq_t = 84 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 334 } }
if = {
limit = { check_variable = { rq_t < 333 } }
}
else = {
set_temp_variable = { rq_t = 481 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 335 } }
set_temp_variable = { rq_t = 335 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 336 } }
}
else = {
set_temp_variable = { rq_t = 337 } rq_ap_one = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 341 } }
if = {
limit = { check_variable = { rq_t < 339 } }
if = {
limit = { check_variable = { rq_t < 338 } }
set_temp_variable = { rq_t = 338 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 298 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 340 } }
set_temp_variable = { rq_t = 100 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 105 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 343 } }
if = {
limit = { check_variable = { rq_t < 342 } }
set_temp_variable = { rq_t = 120 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 344 } }
set_temp_variable = { rq_t = 148 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 345 } }
set_temp_variable = { rq_t = 158 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 170 } rq_ap_one = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 380 } }
if = {
limit = { check_variable = { rq_t < 363 } }
if = {
limit = { check_variable = { rq_t < 354 } }
if = {
limit = { check_variable = { rq_t < 350 } }
if = {
limit = { check_variable = { rq_t < 348 } }
if = {
limit = { check_variable = { rq_t < 347 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 349 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 352 } }
if = {
limit = { check_variable = { rq_t < 351 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 353 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 358 } }
if = {
limit = { check_variable = { rq_t < 356 } }
if = {
limit = { check_variable = { rq_t < 355 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 357 } }
set_temp_variable = { rq_t = 357 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 360 } }
if = {
limit = { check_variable = { rq_t < 359 } }
}
else = {
set_temp_variable = { rq_t = 508 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 361 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 362 } }
}
else = {
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 371 } }
if = {
limit = { check_variable = { rq_t < 367 } }
if = {
limit = { check_variable = { rq_t < 365 } }
if = {
limit = { check_variable = { rq_t < 364 } }
set_temp_variable = { rq_t = 80 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 376 } rq_ap_one = yes
set_temp_variable = { rq_t = 385 } rq_ap_one = yes
set_temp_variable = { rq_t = 386 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 366 } }
}
else = {
set_temp_variable = { rq_t = 367 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 369 } }
if = {
limit = { check_variable = { rq_t < 368 } }
set_temp_variable = { rq_t = 368 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 370 } }
set_temp_variable = { rq_t = 137 } rq_ap_one = yes
set_temp_variable = { rq_t = 188 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 95 } rq_ap_one = yes
set_temp_variable = { rq_t = 371 } rq_ap_one = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 375 } }
if = {
limit = { check_variable = { rq_t < 373 } }
if = {
limit = { check_variable = { rq_t < 372 } }
set_temp_variable = { rq_t = 372 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 374 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 377 } }
if = {
limit = { check_variable = { rq_t < 376 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 378 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 379 } }
}
else = {
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 397 } }
if = {
limit = { check_variable = { rq_t < 388 } }
if = {
limit = { check_variable = { rq_t < 384 } }
if = {
limit = { check_variable = { rq_t < 382 } }
if = {
limit = { check_variable = { rq_t < 381 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 383 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 386 } }
if = {
limit = { check_variable = { rq_t < 385 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 387 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 392 } }
if = {
limit = { check_variable = { rq_t < 390 } }
if = {
limit = { check_variable = { rq_t < 389 } }
}
else = {
set_temp_variable = { rq_t = 370 } rq_ap_one = yes
set_temp_variable = { rq_t = 390 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 391 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 394 } }
if = {
limit = { check_variable = { rq_t < 393 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 395 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 396 } }
}
else = {
set_temp_variable = { rq_t = 397 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 406 } }
if = {
limit = { check_variable = { rq_t < 401 } }
if = {
limit = { check_variable = { rq_t < 399 } }
if = {
limit = { check_variable = { rq_t < 398 } }
}
else = {
set_temp_variable = { rq_t = 396 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 400 } }
set_temp_variable = { rq_t = 207 } rq_ap_one = yes
set_temp_variable = { rq_t = 400 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 208 } rq_ap_one = yes
set_temp_variable = { rq_t = 401 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 403 } }
if = {
limit = { check_variable = { rq_t < 402 } }
set_temp_variable = { rq_t = 209 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 403 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 404 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 405 } }
}
else = {
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 410 } }
if = {
limit = { check_variable = { rq_t < 408 } }
if = {
limit = { check_variable = { rq_t < 407 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 409 } }
set_temp_variable = { rq_t = 317 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 412 } }
if = {
limit = { check_variable = { rq_t < 411 } }
set_temp_variable = { rq_t = 411 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 412 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 413 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 414 } }
}
else = {
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 484 } }
if = {
limit = { check_variable = { rq_t < 449 } }
if = {
limit = { check_variable = { rq_t < 432 } }
if = {
limit = { check_variable = { rq_t < 423 } }
if = {
limit = { check_variable = { rq_t < 419 } }
if = {
limit = { check_variable = { rq_t < 417 } }
if = {
limit = { check_variable = { rq_t < 416 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 418 } }
set_temp_variable = { rq_t = 318 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 421 } }
if = {
limit = { check_variable = { rq_t < 420 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 422 } }
set_temp_variable = { rq_t = 422 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 423 } rq_ap_one = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 427 } }
if = {
limit = { check_variable = { rq_t < 425 } }
if = {
limit = { check_variable = { rq_t < 424 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 426 } }
}
else = {
set_temp_variable = { rq_t = 427 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 429 } }
if = {
limit = { check_variable = { rq_t < 428 } }
set_temp_variable = { rq_t = 428 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 429 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 430 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 431 } }
}
else = {
set_temp_variable = { rq_t = 320 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 440 } }
if = {
limit = { check_variable = { rq_t < 436 } }
if = {
limit = { check_variable = { rq_t < 434 } }
if = {
limit = { check_variable = { rq_t < 433 } }
}
else = {
set_temp_variable = { rq_t = 434 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 435 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 438 } }
if = {
limit = { check_variable = { rq_t < 437 } }
}
else = {
set_temp_variable = { rq_t = 328 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 439 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 444 } }
if = {
limit = { check_variable = { rq_t < 442 } }
if = {
limit = { check_variable = { rq_t < 441 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 443 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 446 } }
if = {
limit = { check_variable = { rq_t < 445 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 447 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 448 } }
}
else = {
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 466 } }
if = {
limit = { check_variable = { rq_t < 457 } }
if = {
limit = { check_variable = { rq_t < 453 } }
if = {
limit = { check_variable = { rq_t < 451 } }
if = {
limit = { check_variable = { rq_t < 450 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 452 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 455 } }
if = {
limit = { check_variable = { rq_t < 454 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 456 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 461 } }
if = {
limit = { check_variable = { rq_t < 459 } }
if = {
limit = { check_variable = { rq_t < 458 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 460 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 463 } }
if = {
limit = { check_variable = { rq_t < 462 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 464 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 465 } }
}
else = {
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 475 } }
if = {
limit = { check_variable = { rq_t < 470 } }
if = {
limit = { check_variable = { rq_t < 468 } }
if = {
limit = { check_variable = { rq_t < 467 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 469 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 472 } }
if = {
limit = { check_variable = { rq_t < 471 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 473 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 474 } }
}
else = {
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 479 } }
if = {
limit = { check_variable = { rq_t < 477 } }
if = {
limit = { check_variable = { rq_t < 476 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 478 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 481 } }
if = {
limit = { check_variable = { rq_t < 480 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 482 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 483 } }
set_temp_variable = { rq_t = 483 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 484 } rq_ap_one = yes
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 518 } }
if = {
limit = { check_variable = { rq_t < 501 } }
if = {
limit = { check_variable = { rq_t < 492 } }
if = {
limit = { check_variable = { rq_t < 488 } }
if = {
limit = { check_variable = { rq_t < 486 } }
if = {
limit = { check_variable = { rq_t < 485 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 487 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 490 } }
if = {
limit = { check_variable = { rq_t < 489 } }
set_temp_variable = { rq_t = 331 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 491 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 496 } }
if = {
limit = { check_variable = { rq_t < 494 } }
if = {
limit = { check_variable = { rq_t < 493 } }
}
else = {
set_temp_variable = { rq_t = 491 } rq_ap_one = yes
set_temp_variable = { rq_t = 492 } rq_ap_one = yes
set_temp_variable = { rq_t = 495 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 495 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 498 } }
if = {
limit = { check_variable = { rq_t < 497 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 499 } }
set_temp_variable = { rq_t = 499 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 500 } }
set_temp_variable = { rq_t = 500 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 501 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 509 } }
if = {
limit = { check_variable = { rq_t < 505 } }
if = {
limit = { check_variable = { rq_t < 503 } }
if = {
limit = { check_variable = { rq_t < 502 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 504 } }
set_temp_variable = { rq_t = 238 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 408 } rq_ap_one = yes
set_temp_variable = { rq_t = 431 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 507 } }
if = {
limit = { check_variable = { rq_t < 506 } }
set_temp_variable = { rq_t = 506 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 507 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 508 } }
}
else = {
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 513 } }
if = {
limit = { check_variable = { rq_t < 511 } }
if = {
limit = { check_variable = { rq_t < 510 } }
set_temp_variable = { rq_t = 510 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 511 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 512 } }
set_temp_variable = { rq_t = 512 } rq_ap_one = yes
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 515 } }
if = {
limit = { check_variable = { rq_t < 514 } }
set_temp_variable = { rq_t = 514 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 515 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 516 } }
set_temp_variable = { rq_t = 516 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 517 } }
}
else = {
set_temp_variable = { rq_t = 518 } rq_ap_one = yes
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 535 } }
if = {
limit = { check_variable = { rq_t < 526 } }
if = {
limit = { check_variable = { rq_t < 522 } }
if = {
limit = { check_variable = { rq_t < 520 } }
if = {
limit = { check_variable = { rq_t < 519 } }
set_temp_variable = { rq_t = 519 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 520 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 521 } }
}
else = {
set_temp_variable = { rq_t = 522 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 524 } }
if = {
limit = { check_variable = { rq_t < 523 } }
set_temp_variable = { rq_t = 523 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 524 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 525 } }
}
else = {
set_temp_variable = { rq_t = 526 } rq_ap_one = yes
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 530 } }
if = {
limit = { check_variable = { rq_t < 528 } }
if = {
limit = { check_variable = { rq_t < 527 } }
set_temp_variable = { rq_t = 527 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 528 } rq_ap_one = yes
}
}
else = {
if = {
limit = { check_variable = { rq_t < 529 } }
}
else = {
set_temp_variable = { rq_t = 530 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 532 } }
if = {
limit = { check_variable = { rq_t < 531 } }
set_temp_variable = { rq_t = 531 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 533 } }
set_temp_variable = { rq_t = 533 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 534 } }
set_temp_variable = { rq_t = 534 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 535 } rq_ap_one = yes
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 544 } }
if = {
limit = { check_variable = { rq_t < 539 } }
if = {
limit = { check_variable = { rq_t < 537 } }
if = {
limit = { check_variable = { rq_t < 536 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 538 } }
set_temp_variable = { rq_t = 538 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 539 } rq_ap_one = yes
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 541 } }
if = {
limit = { check_variable = { rq_t < 540 } }
set_temp_variable = { rq_t = 540 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 542 } }
set_temp_variable = { rq_t = 83 } rq_ap_one = yes
set_temp_variable = { rq_t = 329 } rq_ap_one = yes
}
else = {
if = {
limit = { check_variable = { rq_t < 543 } }
set_temp_variable = { rq_t = 509 } rq_ap_one = yes
set_temp_variable = { rq_t = 513 } rq_ap_one = yes
set_temp_variable = { rq_t = 517 } rq_ap_one = yes
set_temp_variable = { rq_t = 521 } rq_ap_one = yes
set_temp_variable = { rq_t = 525 } rq_ap_one = yes
set_temp_variable = { rq_t = 532 } rq_ap_one = yes
set_temp_variable = { rq_t = 537 } rq_ap_one = yes
}
else = {
set_temp_variable = { rq_t = 115 } rq_ap_one = yes
set_temp_variable = { rq_t = 389 } rq_ap_one = yes
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 548 } }
if = {
limit = { check_variable = { rq_t < 546 } }
if = {
limit = { check_variable = { rq_t < 545 } }
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 547 } }
}
else = {
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 550 } }
if = {
limit = { check_variable = { rq_t < 549 } }
set_temp_variable = { rq_t = 359 } rq_ap_one = yes
}
else = {
}
}
else = {
if = {
limit = { check_variable = { rq_t < 551 } }
}
else = {
if = {
limit = { check_variable = { rq_t < 552 } }
}
else = {
}
}
}
}
}
}
}
}
}
}
}
rq_ap_weigh = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_n = 1 }
if = {
limit = { check_variable = { rq_t < 277 } }
if = {
limit = { check_variable = { rq_t < 139 } }
if = {
limit = { check_variable = { rq_t < 70 } }
if = {
limit = { check_variable = { rq_t < 35 } }
if = {
limit = { check_variable = { rq_t < 18 } }
if = {
limit = { check_variable = { rq_t < 9 } }
if = {
limit = { check_variable = { rq_t < 5 } }
if = {
limit = { check_variable = { rq_t < 3 } }
if = {
limit = { check_variable = { rq_t < 2 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 4 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war_with = GER tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_cas }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 7 } }
if = {
limit = { check_variable = { rq_t < 6 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 400 type = cas } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = GER has_war_with = SOV } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_cas }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = cas } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = GER has_war_with = SOV } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_cas }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 8 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 13 } }
if = {
limit = { check_variable = { rq_t < 11 } }
if = {
limit = { check_variable = { rq_t < 10 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 12 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 15 } }
if = {
limit = { check_variable = { rq_t < 14 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 16 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 17 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 26 } }
if = {
limit = { check_variable = { rq_t < 22 } }
if = {
limit = { check_variable = { rq_t < 20 } }
if = {
limit = { check_variable = { rq_t < 19 } }
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 21 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 24 } }
if = {
limit = { check_variable = { rq_t < 23 } }
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 25 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 30 } }
if = {
limit = { check_variable = { rq_t < 28 } }
if = {
limit = { check_variable = { rq_t < 27 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 29 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 32 } }
if = {
limit = { check_variable = { rq_t < 31 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = basic_small_airframe has_tech = basic_medium_airframe has_tech = basic_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = SOV tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_aa_cannon_1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_can }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_small_airframe has_tech = improved_medium_airframe has_tech = improved_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = SOV tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_aa_cannon_2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_can }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 33 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_small_airframe has_tech = improved_medium_airframe has_tech = improved_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = SOV tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_can }
}
else = {
if = {
limit = { check_variable = { rq_t < 34 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = basic_small_airframe has_tech = basic_medium_airframe has_tech = basic_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_aa_hmg }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_hmg }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_lmg }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 52 } }
if = {
limit = { check_variable = { rq_t < 43 } }
if = {
limit = { check_variable = { rq_t < 39 } }
if = {
limit = { check_variable = { rq_t < 37 } }
if = {
limit = { check_variable = { rq_t < 36 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 38 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
else = {
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 41 } }
if = {
limit = { check_variable = { rq_t < 40 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 42 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
}
else = {
set_temp_variable = { rq_ap_w = 1.75 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 47 } }
if = {
limit = { check_variable = { rq_t < 45 } }
if = {
limit = { check_variable = { rq_t < 44 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_resources_in_country = { resource = coal amount > 0 only_imported = yes } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { energy_ratio < 0.9 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
else = {
set_temp_variable = { rq_ap_w = 0.75 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 46 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_art can_research = modern_art is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = advanced_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_hgun }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 49 } }
if = {
limit = { check_variable = { rq_t < 48 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_spaa can_research = modern_spaa is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 50 } }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
if = {
limit = { check_variable = { rq_t < 51 } }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1944.1.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_td can_research = modern_td is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 61 } }
if = {
limit = { check_variable = { rq_t < 56 } }
if = {
limit = { check_variable = { rq_t < 54 } }
if = {
limit = { check_variable = { rq_t < 53 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 150 }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_infantry_weapons }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1944.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 55 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_0 }
}
else = {
set_temp_variable = { rq_ap_w = 0.1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 58 } }
if = {
limit = { check_variable = { rq_t < 57 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = advanced_ship_hull_light }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 59 } }
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
if = {
limit = { check_variable = { rq_t < 60 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1943.3.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1944.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 65 } }
if = {
limit = { check_variable = { rq_t < 63 } }
if = {
limit = { check_variable = { rq_t < 62 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 27 } } } }
add_to_temp_variable = { rq_ap_w = 130 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 64 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_1 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = modern_art can_research = modern_art is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_sp_artillery_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 67 } }
if = {
limit = { check_variable = { rq_t < 66 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_spaa can_research = modern_spaa is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 68 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER date > "1942.6.1" has_completed_focus = GER_expand_kummersdorfs_capacity has_tech_bonus = { category = cat_medium_armor } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1943.6.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_medium_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
if = {
limit = { check_variable = { rq_t < 69 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = SOV } any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 35 } } } }
add_to_temp_variable = { rq_ap_w = 160 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = modern_td can_research = modern_td is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_tank_destroyer_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 104 } }
if = {
limit = { check_variable = { rq_t < 87 } }
if = {
limit = { check_variable = { rq_t < 78 } }
if = {
limit = { check_variable = { rq_t < 74 } }
if = {
limit = { check_variable = { rq_t < 72 } }
if = {
limit = { check_variable = { rq_t < 71 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_oil }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 73 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.3.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 76 } }
if = {
limit = { check_variable = { rq_t < 75 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA } has_war = yes }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_rub }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 77 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 82 } }
if = {
limit = { check_variable = { rq_t < 80 } }
if = {
limit = { check_variable = { rq_t < 79 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 81 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_small_airframe }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_2 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 84 } }
if = {
limit = { check_variable = { rq_t < 83 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 85 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
else = {
if = {
limit = { check_variable = { rq_t < 86 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_str }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_air_torpedoe_1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_torp }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 95 } }
if = {
limit = { check_variable = { rq_t < 91 } }
if = {
limit = { check_variable = { rq_t < 89 } }
if = {
limit = { check_variable = { rq_t < 88 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_torp }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_torp }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 90 } }
set_temp_variable = { rq_ap_w = 5 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_cons }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 93 } }
if = {
limit = { check_variable = { rq_t < 92 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 94 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 99 } }
if = {
limit = { check_variable = { rq_t < 97 } }
if = {
limit = { check_variable = { rq_t < 96 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_amph }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_amph }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 98 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 101 } }
if = {
limit = { check_variable = { rq_t < 100 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes NOT = { TAG = GER } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 102 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
}
else = {
if = {
limit = { check_variable = { rq_t < 103 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 121 } }
if = {
limit = { check_variable = { rq_t < 112 } }
if = {
limit = { check_variable = { rq_t < 108 } }
if = {
limit = { check_variable = { rq_t < 106 } }
if = {
limit = { check_variable = { rq_t < 105 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 30 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 107 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1939.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA has_War = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 32 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER has_war_with = SOV }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 32 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 110 } }
if = {
limit = { check_variable = { rq_t < 109 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 35 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 35 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 111 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_bomb }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 116 } }
if = {
limit = { check_variable = { rq_t < 114 } }
if = {
limit = { check_variable = { rq_t < 113 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 115 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_ac }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 118 } }
if = {
limit = { check_variable = { rq_t < 117 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_ac }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_ac }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 119 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_ac }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
if = {
limit = { check_variable = { rq_t < 120 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_trn }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1938.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 130 } }
if = {
limit = { check_variable = { rq_t < 125 } }
if = {
limit = { check_variable = { rq_t < 123 } }
if = {
limit = { check_variable = { rq_t < 122 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1941.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 124 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1941.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 127 } }
if = {
limit = { check_variable = { rq_t < 126 } }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { PHI_SEA = yes has_completed_focus = PHI_weapons_of_war }
add_to_temp_variable = { rq_ap_w = 50 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_atomic_research }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_roc }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 128 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = early_ship_hull_light has_tech = early_ship_hull_cruiser has_tech = early_ship_hull_heavy } }
multiply_temp_variable = { rq_ap_w = 500 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
}
else = {
if = {
limit = { check_variable = { rq_t < 129 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 134 } }
if = {
limit = { check_variable = { rq_t < 132 } }
if = {
limit = { check_variable = { rq_t < 131 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 133 } }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 136 } }
if = {
limit = { check_variable = { rq_t < 135 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 137 } }
set_temp_variable = { rq_ap_w = 1.75 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
else = {
if = {
limit = { check_variable = { rq_t < 138 } }
set_temp_variable = { rq_ap_w = 0.75 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = improved_fire_control_system has_tech = improved_fire_control_system } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_fort }
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 208 } }
if = {
limit = { check_variable = { rq_t < 173 } }
if = {
limit = { check_variable = { rq_t < 156 } }
if = {
limit = { check_variable = { rq_t < 147 } }
if = {
limit = { check_variable = { rq_t < 143 } }
if = {
limit = { check_variable = { rq_t < 141 } }
if = {
limit = { check_variable = { rq_t < 140 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = improved_heavy_art can_research = improved_heavy_art is_researching_technology = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 142 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = basic_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_hgun }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 145 } }
if = {
limit = { check_variable = { rq_t < 144 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes has_war = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_hgun }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = improved_heavy_spaa can_research = improved_heavy_spaa is_researching_technology = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 146 } }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = FRA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = improved_heavy_tank has_tech = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_heavy_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = FRA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 151 } }
if = {
limit = { check_variable = { rq_t < 149 } }
if = {
limit = { check_variable = { rq_t < 148 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = improved_heavy_td can_research = improved_heavy_td is_researching_technology = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_0 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 150 } }
set_temp_variable = { rq_ap_w = 0.25 }
if = {
limit = { has_template_containing_unit = light_sp_artillery_brigade }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_light_art can_research = improved_light_art is_researching_technology = improved_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = basic_ship_hull_light }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 153 } }
if = {
limit = { check_variable = { rq_t < 152 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 154 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { is_major = yes }
add_to_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_light_spaa can_research = improved_light_spaa is_researching_technology = improved_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
if = {
limit = { check_variable = { rq_t < 155 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 164 } }
if = {
limit = { check_variable = { rq_t < 160 } }
if = {
limit = { check_variable = { rq_t < 158 } }
if = {
limit = { check_variable = { rq_t < 157 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { OR = { tag = GER tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 25 } } } }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = light_tank_destroyer_brigade }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 50 num_of_military_factories < 120 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_light_td can_research = improved_light_td is_researching_technology = improved_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 50 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 159 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1936.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_1 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_medium_art can_research = improved_medium_art is_researching_technology = improved_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = Ger }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 162 } }
if = {
limit = { check_variable = { rq_t < 161 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_medium_spaa can_research = improved_medium_spaa is_researching_technology = improved_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes not = { tag = JAP num_of_military_factories < 50 } date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_opinion_modifier = sov_ger_treaty }
multiply_temp_variable = { rq_ap_w = 15.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_medium_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 163 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes NOT = { AND = { tag = JAP num_of_military_factories < 50 } } date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1940.3.1 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_advanced_panzer_research has_tech_bonus = { category = cat_medium_armor } }
multiply_temp_variable = { rq_ap_w = 15.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER NOT = { has_completed_focus = GER_advanced_panzer_research } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1938.11.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_medium_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 30 } } } }
add_to_temp_variable = { rq_ap_w = 140 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_medium_td can_research = improved_medium_td is_researching_technology = improved_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 168 } }
if = {
limit = { check_variable = { rq_t < 166 } }
if = {
limit = { check_variable = { rq_t < 165 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 167 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 170 } }
if = {
limit = { check_variable = { rq_t < 169 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 171 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_small_airframe }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_2 }
}
else = {
if = {
limit = { check_variable = { rq_t < 172 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = HOL } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { has_war_with = ENG has_War_with = USA } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 190 } }
if = {
limit = { check_variable = { rq_t < 181 } }
if = {
limit = { check_variable = { rq_t < 177 } }
if = {
limit = { check_variable = { rq_t < 175 } }
if = {
limit = { check_variable = { rq_t < 174 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { num_of_factories > 25 }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1936.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_trn }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 176 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 179 } }
if = {
limit = { check_variable = { rq_t < 178 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 180 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 185 } }
if = {
limit = { check_variable = { rq_t < 183 } }
if = {
limit = { check_variable = { rq_t < 182 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA date > "1939.6.1" } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.6.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.6.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_cavity_magnatron }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 184 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 187 } }
if = {
limit = { check_variable = { rq_t < 186 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_fort }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_fort }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 188 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 189 } }
set_temp_variable = { rq_ap_w = 6 }
if = {
limit = { date > "1938.1.6" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
else = {
set_temp_variable = { rq_ap_w = 25 }
if = {
limit = { NOT = { tag = GER } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = dispersed_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_researching_technology = dispersed_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 199 } }
if = {
limit = { check_variable = { rq_t < 194 } }
if = {
limit = { check_variable = { rq_t < 192 } }
if = {
limit = { check_variable = { rq_t < 191 } }
set_temp_variable = { rq_ap_w = 20 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
else = {
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 193 } }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1942.1.9" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 196 } }
if = {
limit = { check_variable = { rq_t < 195 } }
set_temp_variable = { rq_ap_w = 50 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_con }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_con }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 197 } }
set_temp_variable = { rq_ap_w = 10 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_con }
}
else = {
if = {
limit = { check_variable = { rq_t < 198 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_con }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_con }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 203 } }
if = {
limit = { check_variable = { rq_t < 201 } }
if = {
limit = { check_variable = { rq_t < 200 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = CAS2 is_researching_technology = CAS2 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_4 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 202 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = CAS3 is_researching_technology = CAS3 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_4 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_4 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 205 } }
if = {
limit = { check_variable = { rq_t < 204 } }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { has_tech = fighter1 is_researching_technology = fighter1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = fighter2 is_researching_technology = fighter2 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 206 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { AND = { is_historical_focus_on = yes tag = JAP } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.6.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = fighter3 is_researching_technology = fighter3 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
}
else = {
if = {
limit = { check_variable = { rq_t < 207 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = naval_bomber2 is_researching_technology = naval_bomber2 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 242 } }
if = {
limit = { check_variable = { rq_t < 225 } }
if = {
limit = { check_variable = { rq_t < 216 } }
if = {
limit = { check_variable = { rq_t < 212 } }
if = {
limit = { check_variable = { rq_t < 210 } }
if = {
limit = { check_variable = { rq_t < 209 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { OR = { has_tech = naval_bomber3 is_researching_technology = naval_bomber3 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 211 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date < 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { size < 10 } }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_historical_focus_on = yes tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_damage_control }
}
else = {
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date < 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_historical_focus_on = yes tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_damage_control }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 214 } }
if = {
limit = { check_variable = { rq_t < 213 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date < 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_historical_focus_on = yes tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_damage_control }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 215 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 25 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = concentrated_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_researching_technology = concentrated_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 220 } }
if = {
limit = { check_variable = { rq_t < 218 } }
if = {
limit = { check_variable = { rq_t < 217 } }
set_temp_variable = { rq_ap_w = 20 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
else = {
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 219 } }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
else = {
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 222 } }
if = {
limit = { check_variable = { rq_t < 221 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 223 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_tac }
}
else = {
if = {
limit = { check_variable = { rq_t < 224 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_bomb }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 233 } }
if = {
limit = { check_variable = { rq_t < 229 } }
if = {
limit = { check_variable = { rq_t < 227 } }
if = {
limit = { check_variable = { rq_t < 226 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 228 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 231 } }
if = {
limit = { check_variable = { rq_t < 230 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 232 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 237 } }
if = {
limit = { check_variable = { rq_t < 235 } }
if = {
limit = { check_variable = { rq_t < 234 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 236 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
}
else = {
set_temp_variable = { rq_ap_w = 30 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 239 } }
if = {
limit = { check_variable = { rq_t < 238 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 240 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_eng }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
if = {
limit = { check_variable = { rq_t < 241 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_eng }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_eng }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 259 } }
if = {
limit = { check_variable = { rq_t < 250 } }
if = {
limit = { check_variable = { rq_t < 246 } }
if = {
limit = { check_variable = { rq_t < 244 } }
if = {
limit = { check_variable = { rq_t < 243 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_eng }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_eng }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 245 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_engines_2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_eng }
}
else = {
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { is_major = yes date > "1940.6.1" }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date < "1940.12.1" }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_engines_3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_eng }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 248 } }
if = {
limit = { check_variable = { rq_t < 247 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_engines_4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_eng }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 249 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 254 } }
if = {
limit = { check_variable = { rq_t < 252 } }
if = {
limit = { check_variable = { rq_t < 251 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 253 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_roc }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 256 } }
if = {
limit = { check_variable = { rq_t < 255 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date < "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 257 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
}
else = {
if = {
limit = { check_variable = { rq_t < 258 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_navy_size = { size < 10 } }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_fire_control_methods }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_fire_control_methods }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 268 } }
if = {
limit = { check_variable = { rq_t < 263 } }
if = {
limit = { check_variable = { rq_t < 261 } }
if = {
limit = { check_variable = { rq_t < 260 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_fire_control_methods }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 262 } }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 10 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 10 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 265 } }
if = {
limit = { check_variable = { rq_t < 264 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 266 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
else = {
if = {
limit = { check_variable = { rq_t < 267 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 40 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 40 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 10 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 20 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 40 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 50 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 10 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 20 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 40 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 50 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 0.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 0.4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 272 } }
if = {
limit = { check_variable = { rq_t < 270 } }
if = {
limit = { check_variable = { rq_t < 269 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 271 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 274 } }
if = {
limit = { check_variable = { rq_t < 273 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_bomb }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 275 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
}
else = {
if = {
limit = { check_variable = { rq_t < 276 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
}
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 415 } }
if = {
limit = { check_variable = { rq_t < 346 } }
if = {
limit = { check_variable = { rq_t < 311 } }
if = {
limit = { check_variable = { rq_t < 294 } }
if = {
limit = { check_variable = { rq_t < 285 } }
if = {
limit = { check_variable = { rq_t < 281 } }
if = {
limit = { check_variable = { rq_t < 279 } }
if = {
limit = { check_variable = { rq_t < 278 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 280 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 283 } }
if = {
limit = { check_variable = { rq_t < 282 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_computing_machine }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
else = {
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 284 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 289 } }
if = {
limit = { check_variable = { rq_t < 287 } }
if = {
limit = { check_variable = { rq_t < 286 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
}
else = {
set_temp_variable = { rq_ap_w = 1.75 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 288 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_resources_in_country = { resource = coal amount > 0 only_imported = yes } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { energy_ratio < 0.9 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
}
else = {
set_temp_variable = { rq_ap_w = 0.75 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = advanced_fire_control_system has_tech = advanced_fire_control_system } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 291 } }
if = {
limit = { check_variable = { rq_t < 290 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date < 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = improved_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_heavy_art can_research = advanced_heavy_art is_researching_technology = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 292 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = improved_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_hgun }
}
else = {
if = {
limit = { check_variable = { rq_t < 293 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes has_war = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_hgun }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 302 } }
if = {
limit = { check_variable = { rq_t < 298 } }
if = {
limit = { check_variable = { rq_t < 296 } }
if = {
limit = { check_variable = { rq_t < 295 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_heavy_spaa can_research = advanced_heavy_spaa is_researching_technology = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = advanced_heavy_tank has_tech = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_heavy_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 297 } }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_expand_kummersdorfs_capacity has_tech_bonus = { category = cat_heavy_armor } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_heavy_td can_research = advanced_heavy_td is_researching_technology = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_hv }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 300 } }
if = {
limit = { check_variable = { rq_t < 299 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_infantry_weapons }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_infantry_weapons_2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 301 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_0 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { has_template_containing_unit = light_sp_artillery_brigade }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = advanced_light_art can_research = advanced_light_art is_researching_technology = advanced_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 306 } }
if = {
limit = { check_variable = { rq_t < 304 } }
if = {
limit = { check_variable = { rq_t < 303 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = improved_ship_hull_light }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = ITA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 305 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_lgun }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_light_spaa can_research = advanced_light_spaa is_researching_technology = advanced_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 308 } }
if = {
limit = { check_variable = { rq_t < 307 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes not = { tag = JAP num_of_military_factories < 50 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes not = { tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes NOT = { AND = { tag = JAP num_of_military_factories < 50 } } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes not = { tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1936.9.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1940.9.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_light_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 309 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 27 } } } }
add_to_temp_variable = { rq_ap_w = 120 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = light_tank_destroyer_brigade }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = advanced_light_td can_research = advanced_light_td is_researching_technology = advanced_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_lt }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
if = {
limit = { check_variable = { rq_t < 310 } }
set_temp_variable = { rq_ap_w = 40 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_1 }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 328 } }
if = {
limit = { check_variable = { rq_t < 319 } }
if = {
limit = { check_variable = { rq_t < 315 } }
if = {
limit = { check_variable = { rq_t < 313 } }
if = {
limit = { check_variable = { rq_t < 312 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = advanced_medium_art can_research = advanced_medium_art is_researching_technology = advanced_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_sp_artillery_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = advanced_medium_spaa can_research = advanced_medium_spaa is_researching_technology = advanced_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 314 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { is_major = yes not = { tag = JAP num_of_military_factories < 50 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 0.3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_medium_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes NOT = { AND = { tag = JAP num_of_military_factories < 50 } } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV date > 1940.3.1 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1941.6.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1942.9.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1944.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_medium_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 317 } }
if = {
limit = { check_variable = { rq_t < 316 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 32 } } } }
add_to_temp_variable = { rq_ap_w = 150 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_tank_destroyer_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = advanced_medium_td can_research = advanced_medium_td is_researching_technology = advanced_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_md }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 318 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_oil }
}
else = {
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.8.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 323 } }
if = {
limit = { check_variable = { rq_t < 321 } }
if = {
limit = { check_variable = { rq_t < 320 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA } has_war = yes }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_rub }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 322 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ca }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 325 } }
if = {
limit = { check_variable = { rq_t < 324 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cap }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 326 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
else = {
if = {
limit = { check_variable = { rq_t < 327 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date < "1940.2.1" }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_small_airframe }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_2 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 337 } }
if = {
limit = { check_variable = { rq_t < 332 } }
if = {
limit = { check_variable = { rq_t < 330 } }
if = {
limit = { check_variable = { rq_t < 329 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.6.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.6.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 331 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
else = {
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 334 } }
if = {
limit = { check_variable = { rq_t < 333 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = HOL } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 335 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_infantry_at }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
else = {
if = {
limit = { check_variable = { rq_t < 336 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 341 } }
if = {
limit = { check_variable = { rq_t < 339 } }
if = {
limit = { check_variable = { rq_t < 338 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = CHI OR = { date > 1937.1.1 JAP = { is_ai = no } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1936.1.3 }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < 1939.1.1 original_tag = PRC }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < 1939.1.1 tag = PRC }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_infantry_weapons2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 340 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_aa }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_aa }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 0.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_war_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 30 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 343 } }
if = {
limit = { check_variable = { rq_t < 342 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 6.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_interwar_artillery }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 344 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { num_of_military_factories < 30 }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_0 }
}
else = {
if = {
limit = { check_variable = { rq_t < 345 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { num_of_military_factories < 15 }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_1 }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 7 }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_2 }
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 380 } }
if = {
limit = { check_variable = { rq_t < 363 } }
if = {
limit = { check_variable = { rq_t < 354 } }
if = {
limit = { check_variable = { rq_t < 350 } }
if = {
limit = { check_variable = { rq_t < 348 } }
if = {
limit = { check_variable = { rq_t < 347 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 349 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_ftr }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_deployed_air_force_size = { size > 500 type = strategic_bomber } }
multiply_temp_variable = { rq_ap_w = 4.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_str }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 352 } }
if = {
limit = { check_variable = { rq_t < 351 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_tac }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_tac }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 353 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 358 } }
if = {
limit = { check_variable = { rq_t < 356 } }
if = {
limit = { check_variable = { rq_t < 355 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 357 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_fort }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_fort }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 360 } }
if = {
limit = { check_variable = { rq_t < 359 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { NOT = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP OR = { has_war_with = USA CHI = { OR = { has_capitulated = yes exists = no is_subject_of = JAP } } } }
multiply_temp_variable = { rq_ap_w = 50 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = ENG tag = USA } has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = ENG tag = USA } has_war_with = GER GER = { has_war_with = SOV } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_tp }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 361 } }
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 362 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 371 } }
if = {
limit = { check_variable = { rq_t < 367 } }
if = {
limit = { check_variable = { rq_t < 365 } }
if = {
limit = { check_variable = { rq_t < 364 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 366 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > 1946.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1947.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1948.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1944.9.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 369 } }
if = {
limit = { check_variable = { rq_t < 368 } }
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 370 } }
set_temp_variable = { rq_ap_w = 10 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_mechanised_infantry }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_mech }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 375 } }
if = {
limit = { check_variable = { rq_t < 373 } }
if = {
limit = { check_variable = { rq_t < 372 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_mech }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_mech }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 374 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 377 } }
if = {
limit = { check_variable = { rq_t < 376 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_str }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 378 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
if = {
limit = { check_variable = { rq_t < 379 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_deployed_air_force_size = { size > 500 type = strategic_bomber } }
multiply_temp_variable = { rq_ap_w = 4.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_0 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_1 }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 397 } }
if = {
limit = { check_variable = { rq_t < 388 } }
if = {
limit = { check_variable = { rq_t < 384 } }
if = {
limit = { check_variable = { rq_t < 382 } }
if = {
limit = { check_variable = { rq_t < 381 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_oil }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_rub }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 383 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_torpedoes }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_2 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 386 } }
if = {
limit = { check_variable = { rq_t < 385 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 387 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 392 } }
if = {
limit = { check_variable = { rq_t < 390 } }
if = {
limit = { check_variable = { rq_t < 389 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_motorised_infantry }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_mot }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 391 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_oth }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 394 } }
if = {
limit = { check_variable = { rq_t < 393 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 395 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 396 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1941.6.1 }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_mtg_landing_craft }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_transports }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 406 } }
if = {
limit = { check_variable = { rq_t < 401 } }
if = {
limit = { check_variable = { rq_t < 399 } }
if = {
limit = { check_variable = { rq_t < 398 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war_with = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_transports }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war_with = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_transports }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 400 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_war_with = ENG has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
}
else = {
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { has_war_with = ENG has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = naval_bomber } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 403 } }
if = {
limit = { check_variable = { rq_t < 402 } }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { has_war_with = ENG has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = naval_bomber } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_nav }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1942.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 404 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1945.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_inf }
}
else = {
if = {
limit = { check_variable = { rq_t < 405 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 410 } }
if = {
limit = { check_variable = { rq_t < 408 } }
if = {
limit = { check_variable = { rq_t < 407 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 409 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_oil }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 412 } }
if = {
limit = { check_variable = { rq_t < 411 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = USA date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_anschluss CZE = { is_ai = no } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_fallschirmjager }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_paratroopers }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_para }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_para }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 413 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_para }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
}
else = {
if = {
limit = { check_variable = { rq_t < 414 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_elec }
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 484 } }
if = {
limit = { check_variable = { rq_t < 449 } }
if = {
limit = { check_variable = { rq_t < 432 } }
if = {
limit = { check_variable = { rq_t < 423 } }
if = {
limit = { check_variable = { rq_t < 419 } }
if = {
limit = { check_variable = { rq_t < 417 } }
if = {
limit = { check_variable = { rq_t < 416 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = basic_medium_airframe } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_rec }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 418 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.8.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_oth }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 421 } }
if = {
limit = { check_variable = { rq_t < 420 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { TAG = GER tag = SOV } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_trn }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_rng }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 422 } }
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = BRA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rng }
multiply_temp_variable = { rq_ap_n = rq_ap_rng }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rng }
multiply_temp_variable = { rq_ap_n = rq_ap_rng }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 427 } }
if = {
limit = { check_variable = { rq_t < 425 } }
if = {
limit = { check_variable = { rq_t < 424 } }
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rng }
multiply_temp_variable = { rq_ap_n = rq_ap_rng }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_str }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 426 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_oth }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 429 } }
if = {
limit = { check_variable = { rq_t < 428 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_oth }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_oth }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 430 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_oth }
}
else = {
if = {
limit = { check_variable = { rq_t < 431 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA } has_war = yes }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_rubber_processing }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_rub }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 440 } }
if = {
limit = { check_variable = { rq_t < 436 } }
if = {
limit = { check_variable = { rq_t < 434 } }
if = {
limit = { check_variable = { rq_t < 433 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = fighter1 has_tech = tactical_bomber1 has_tech = CAS1 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 435 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = fighter2 has_tech = tactical_bomber2 has_tech = CAS2 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 438 } }
if = {
limit = { check_variable = { rq_t < 437 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_navy_size = { size < 10 } }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_dd }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 439 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_at }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
multiply_temp_variable = { rq_ap_n = rq_ap_at }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 444 } }
if = {
limit = { check_variable = { rq_t < 442 } }
if = {
limit = { check_variable = { rq_t < 441 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_ss }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 443 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_eng }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 446 } }
if = {
limit = { check_variable = { rq_t < 445 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_eng }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 447 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
if = {
limit = { check_variable = { rq_t < 448 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_arm }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnc }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 466 } }
if = {
limit = { check_variable = { rq_t < 457 } }
if = {
limit = { check_variable = { rq_t < 453 } }
if = {
limit = { check_variable = { rq_t < 451 } }
if = {
limit = { check_variable = { rq_t < 450 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mp }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sig }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 452 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 455 } }
if = {
limit = { check_variable = { rq_t < 454 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_eng }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rec }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 456 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_hos }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_log }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 461 } }
if = {
limit = { check_variable = { rq_t < 459 } }
if = {
limit = { check_variable = { rq_t < 458 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_tp }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 460 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_tp }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 463 } }
if = {
limit = { check_variable = { rq_t < 462 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_tp }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 464 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 465 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 475 } }
if = {
limit = { check_variable = { rq_t < 470 } }
if = {
limit = { check_variable = { rq_t < 468 } }
if = {
limit = { check_variable = { rq_t < 467 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 469 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 472 } }
if = {
limit = { check_variable = { rq_t < 471 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 473 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_cv }
}
else = {
if = {
limit = { check_variable = { rq_t < 474 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_roc }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_roc }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 479 } }
if = {
limit = { check_variable = { rq_t < 477 } }
if = {
limit = { check_variable = { rq_t < 476 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_roc }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_roc }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 478 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_roc }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 481 } }
if = {
limit = { check_variable = { rq_t < 480 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_tp }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_art }
multiply_temp_variable = { rq_ap_n = rq_ap_s_art_art }
multiply_temp_variable = { rq_ap_n = rq_ap_art }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 482 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_trn }
}
else = {
if = {
limit = { check_variable = { rq_t < 483 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_str }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_str }
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 518 } }
if = {
limit = { check_variable = { rq_t < 501 } }
if = {
limit = { check_variable = { rq_t < 492 } }
if = {
limit = { check_variable = { rq_t < 488 } }
if = {
limit = { check_variable = { rq_t < 486 } }
if = {
limit = { check_variable = { rq_t < 485 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_str }
}
else = {
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_prod }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 487 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 490 } }
if = {
limit = { check_variable = { rq_t < 489 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_nsup }
multiply_temp_variable = { rq_ap_n = rq_ap_s_nsup_mine_warfare }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 491 } }
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 496 } }
if = {
limit = { check_variable = { rq_t < 494 } }
if = {
limit = { check_variable = { rq_t < 493 } }
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 495 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { date > 1943.9.1 NOT = { has_government = democratic } num_of_military_factories > 150 }
add_to_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date > 1944.5.1 surrender_progress < 0.1 has_government = fascism has_war_with = SOV }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER is_historical_focus_on = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_super_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_tank }
multiply_temp_variable = { rq_ap_n = rq_ap_s_tank_oth }
multiply_temp_variable = { rq_ap_n = rq_ap_tank }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 498 } }
if = {
limit = { check_variable = { rq_t < 497 } }
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 499 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { original_tag = CHI original_tag = PRC original_tag = XSM original_tag = SIK original_tag = GXC original_tag = SHX original_tag = YUN original_tag = MAN original_tag = MEN original_tag = JAP original_tag = GSM original_tag = NXM original_tag = HBC original_tag = SND original_tag = GDC original_tag = KHM } }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sw }
}
else = {
if = {
limit = { check_variable = { rq_t < 500 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sw }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sw }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 509 } }
if = {
limit = { check_variable = { rq_t < 505 } }
if = {
limit = { check_variable = { rq_t < 503 } }
if = {
limit = { check_variable = { rq_t < 502 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sw }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_War = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_surv }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 504 } }
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_synth_oil_experiments }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_ind }
multiply_temp_variable = { rq_ap_n = rq_ap_gi }
multiply_temp_variable = { rq_ap_n = rq_ap_s_ind_res }
multiply_temp_variable = { rq_ap_n = rq_ap_oil }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 507 } }
if = {
limit = { check_variable = { rq_t < 506 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1936.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_tac }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_tac }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 508 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_air }
multiply_temp_variable = { rq_ap_n = rq_ap_wair }
multiply_temp_variable = { rq_ap_n = rq_ap_ga }
multiply_temp_variable = { rq_ap_n = rq_ap_s_air_tac }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { NOT = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_tp }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 513 } }
if = {
limit = { check_variable = { rq_t < 511 } }
if = {
limit = { check_variable = { rq_t < 510 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = CHI NOT = { has_dlc = "No Compromise, No Surrender" } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_engineers }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_eng }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_eng }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 512 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_eng }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_eng }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 515 } }
if = {
limit = { check_variable = { rq_t < 514 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_field_hospital }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_hos }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_hos }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 516 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_hos }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
if = {
limit = { check_variable = { rq_t < 517 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_hos }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_logistics_company }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_log }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 535 } }
if = {
limit = { check_variable = { rq_t < 526 } }
if = {
limit = { check_variable = { rq_t < 522 } }
if = {
limit = { check_variable = { rq_t < 520 } }
if = {
limit = { check_variable = { rq_t < 519 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_log }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_log }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 521 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_log }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_maintenance_company }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnc }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 524 } }
if = {
limit = { check_variable = { rq_t < 523 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_maintenance_company2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnc }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnc }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 525 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnc }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER POL = { has_capitulated = yes } GER = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ITA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mp }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 530 } }
if = {
limit = { check_variable = { rq_t < 528 } }
if = {
limit = { check_variable = { rq_t < 527 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mp }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mp }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 529 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mp }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_g = rq_apf_tech_mountaineers }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnt }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 532 } }
if = {
limit = { check_variable = { rq_t < 531 } }
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnt }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_mnt }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 533 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_recon }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rec }
}
else = {
if = {
limit = { check_variable = { rq_t < 534 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rec }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rec }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 544 } }
if = {
limit = { check_variable = { rq_t < 539 } }
if = {
limit = { check_variable = { rq_t < 537 } }
if = {
limit = { check_variable = { rq_t < 536 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_rec }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 538 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sig }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sig }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 541 } }
if = {
limit = { check_variable = { rq_t < 540 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sig }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sig }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 542 } }
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_sx_3 }
multiply_temp_variable = { rq_ap_n = rq_ap_para }
multiply_temp_variable = { rq_ap_n = rq_ap_mar }
multiply_temp_variable = { rq_ap_n = rq_ap_mnt }
}
else = {
if = {
limit = { check_variable = { rq_t < 543 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = CHI NOT = { has_dlc = "No Compromise, No Surrender" } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gl }
multiply_temp_variable = { rq_ap_n = rq_ap_s_land_sw }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.75 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_mot }
multiply_temp_variable = { rq_ap_n = rq_ap_mot }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 548 } }
if = {
limit = { check_variable = { rq_t < 546 } }
if = {
limit = { check_variable = { rq_t < 545 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 547 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 550 } }
if = {
limit = { check_variable = { rq_t < 549 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { NOT = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_nav }
multiply_temp_variable = { rq_ap_n = rq_ap_wsea }
multiply_temp_variable = { rq_ap_n = rq_ap_gn }
multiply_temp_variable = { rq_ap_n = rq_ap_s_naval_tp }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 551 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 552 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
multiply_temp_variable = { rq_ap_n = rq_ap_wland }
multiply_temp_variable = { rq_ap_n = rq_ap_gx_veh }
multiply_temp_variable = { rq_ap_n = rq_ap_s_veh_trn }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
}
}
}
multiply_temp_variable = { rq_ap_w = rq_ap_n }
}
rq_ap_why = {
if = {
limit = { check_variable = { rq_t < 277 } }
if = {
limit = { check_variable = { rq_t < 139 } }
if = {
limit = { check_variable = { rq_t < 70 } }
if = {
limit = { check_variable = { rq_t < 35 } }
if = {
limit = { check_variable = { rq_t < 18 } }
if = {
limit = { check_variable = { rq_t < 9 } }
if = {
limit = { check_variable = { rq_t < 5 } }
if = {
limit = { check_variable = { rq_t < 3 } }
if = {
limit = { check_variable = { rq_t < 2 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 4 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war_with = GER tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 7 } }
if = {
limit = { check_variable = { rq_t < 6 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 400 type = cas } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = GER has_war_with = SOV } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = cas } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = GER has_war_with = SOV } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 8 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 13 } }
if = {
limit = { check_variable = { rq_t < 11 } }
if = {
limit = { check_variable = { rq_t < 10 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 12 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 15 } }
if = {
limit = { check_variable = { rq_t < 14 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 16 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 17 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 26 } }
if = {
limit = { check_variable = { rq_t < 22 } }
if = {
limit = { check_variable = { rq_t < 20 } }
if = {
limit = { check_variable = { rq_t < 19 } }
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 21 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 24 } }
if = {
limit = { check_variable = { rq_t < 23 } }
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 25 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 30 } }
if = {
limit = { check_variable = { rq_t < 28 } }
if = {
limit = { check_variable = { rq_t < 27 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 29 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 32 } }
if = {
limit = { check_variable = { rq_t < 31 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = basic_small_airframe has_tech = basic_medium_airframe has_tech = basic_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = SOV tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_aa_cannon_1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_small_airframe has_tech = improved_medium_airframe has_tech = improved_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = SOV tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_aa_cannon_2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 33 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_small_airframe has_tech = improved_medium_airframe has_tech = improved_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = SOV tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 34 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = basic_small_airframe has_tech = basic_medium_airframe has_tech = basic_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_aa_hmg }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 52 } }
if = {
limit = { check_variable = { rq_t < 43 } }
if = {
limit = { check_variable = { rq_t < 39 } }
if = {
limit = { check_variable = { rq_t < 37 } }
if = {
limit = { check_variable = { rq_t < 36 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 38 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 41 } }
if = {
limit = { check_variable = { rq_t < 40 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 42 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1.75 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 47 } }
if = {
limit = { check_variable = { rq_t < 45 } }
if = {
limit = { check_variable = { rq_t < 44 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_resources_in_country = { resource = coal amount > 0 only_imported = yes } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { energy_ratio < 0.9 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.75 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 46 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_art can_research = modern_art is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = advanced_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 49 } }
if = {
limit = { check_variable = { rq_t < 48 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_spaa can_research = modern_spaa is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 50 } }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 51 } }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1944.1.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_td can_research = modern_td is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 61 } }
if = {
limit = { check_variable = { rq_t < 56 } }
if = {
limit = { check_variable = { rq_t < 54 } }
if = {
limit = { check_variable = { rq_t < 53 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 150 }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_infantry_weapons }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1944.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 55 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 58 } }
if = {
limit = { check_variable = { rq_t < 57 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = advanced_ship_hull_light }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 59 } }
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 60 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1943.3.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1944.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 65 } }
if = {
limit = { check_variable = { rq_t < 63 } }
if = {
limit = { check_variable = { rq_t < 62 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 27 } } } }
add_to_temp_variable = { rq_ap_w = 130 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 64 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = modern_art can_research = modern_art is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_sp_artillery_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 67 } }
if = {
limit = { check_variable = { rq_t < 66 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = modern_spaa can_research = modern_spaa is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 68 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER date > "1942.6.1" has_completed_focus = GER_expand_kummersdorfs_capacity has_tech_bonus = { category = cat_medium_armor } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1943.6.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_medium_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 69 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = SOV } any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 35 } } } }
add_to_temp_variable = { rq_ap_w = 160 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = modern_td can_research = modern_td is_researching_technology = main_battle_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_tank_destroyer_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 104 } }
if = {
limit = { check_variable = { rq_t < 87 } }
if = {
limit = { check_variable = { rq_t < 78 } }
if = {
limit = { check_variable = { rq_t < 74 } }
if = {
limit = { check_variable = { rq_t < 72 } }
if = {
limit = { check_variable = { rq_t < 71 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 73 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.3.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 76 } }
if = {
limit = { check_variable = { rq_t < 75 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA } has_war = yes }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 77 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 82 } }
if = {
limit = { check_variable = { rq_t < 80 } }
if = {
limit = { check_variable = { rq_t < 79 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 81 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_advanced_small_airframe }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 84 } }
if = {
limit = { check_variable = { rq_t < 83 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 85 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 86 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_air_torpedoe_1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 95 } }
if = {
limit = { check_variable = { rq_t < 91 } }
if = {
limit = { check_variable = { rq_t < 89 } }
if = {
limit = { check_variable = { rq_t < 88 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 90 } }
set_temp_variable = { rq_ap_w = 5 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 93 } }
if = {
limit = { check_variable = { rq_t < 92 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 94 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 99 } }
if = {
limit = { check_variable = { rq_t < 97 } }
if = {
limit = { check_variable = { rq_t < 96 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 98 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 101 } }
if = {
limit = { check_variable = { rq_t < 100 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes NOT = { TAG = GER } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { original_tag = USA original_tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { any_controlled_state = { is_coastal = yes } } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 102 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 103 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antiair4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 121 } }
if = {
limit = { check_variable = { rq_t < 112 } }
if = {
limit = { check_variable = { rq_t < 108 } }
if = {
limit = { check_variable = { rq_t < 106 } }
if = {
limit = { check_variable = { rq_t < 105 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = JAP tag = ENG tag = USA } OR = { has_war_with = JAP has_war_with = USA has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 30 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 107 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1939.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA has_War = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 32 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER has_war_with = SOV }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 32 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 110 } }
if = {
limit = { check_variable = { rq_t < 109 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 35 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_antitank4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_War_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 35 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 111 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 116 } }
if = {
limit = { check_variable = { rq_t < 114 } }
if = {
limit = { check_variable = { rq_t < 113 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 115 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 118 } }
if = {
limit = { check_variable = { rq_t < 117 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 119 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 120 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1938.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 130 } }
if = {
limit = { check_variable = { rq_t < 125 } }
if = {
limit = { check_variable = { rq_t < 123 } }
if = {
limit = { check_variable = { rq_t < 122 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1941.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 124 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1941.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_artillery4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 127 } }
if = {
limit = { check_variable = { rq_t < 126 } }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { PHI_SEA = yes has_completed_focus = PHI_weapons_of_war }
add_to_temp_variable = { rq_ap_w = 50 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_atomic_research }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 128 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = early_ship_hull_light has_tech = early_ship_hull_cruiser has_tech = early_ship_hull_heavy } }
multiply_temp_variable = { rq_ap_w = 500 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 129 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 134 } }
if = {
limit = { check_variable = { rq_t < 132 } }
if = {
limit = { check_variable = { rq_t < 131 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 133 } }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 136 } }
if = {
limit = { check_variable = { rq_t < 135 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 137 } }
set_temp_variable = { rq_ap_w = 1.75 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 138 } }
set_temp_variable = { rq_ap_w = 0.75 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = improved_fire_control_system has_tech = improved_fire_control_system } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 208 } }
if = {
limit = { check_variable = { rq_t < 173 } }
if = {
limit = { check_variable = { rq_t < 156 } }
if = {
limit = { check_variable = { rq_t < 147 } }
if = {
limit = { check_variable = { rq_t < 143 } }
if = {
limit = { check_variable = { rq_t < 141 } }
if = {
limit = { check_variable = { rq_t < 140 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = improved_heavy_art can_research = improved_heavy_art is_researching_technology = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 142 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = basic_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 145 } }
if = {
limit = { check_variable = { rq_t < 144 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes has_war = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = improved_heavy_spaa can_research = improved_heavy_spaa is_researching_technology = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 146 } }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = FRA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = improved_heavy_tank has_tech = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_heavy_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = FRA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 151 } }
if = {
limit = { check_variable = { rq_t < 149 } }
if = {
limit = { check_variable = { rq_t < 148 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = improved_heavy_td can_research = improved_heavy_td is_researching_technology = improved_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 150 } }
set_temp_variable = { rq_ap_w = 0.25 }
if = {
limit = { has_template_containing_unit = light_sp_artillery_brigade }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_light_art can_research = improved_light_art is_researching_technology = improved_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = basic_ship_hull_light }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 153 } }
if = {
limit = { check_variable = { rq_t < 152 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 154 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { is_major = yes }
add_to_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_light_spaa can_research = improved_light_spaa is_researching_technology = improved_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 155 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 164 } }
if = {
limit = { check_variable = { rq_t < 160 } }
if = {
limit = { check_variable = { rq_t < 158 } }
if = {
limit = { check_variable = { rq_t < 157 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { OR = { tag = GER tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 25 } } } }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = light_tank_destroyer_brigade }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 50 num_of_military_factories < 120 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_light_td can_research = improved_light_td is_researching_technology = improved_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 50 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 159 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1936.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_medium_art can_research = improved_medium_art is_researching_technology = improved_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = Ger }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 162 } }
if = {
limit = { check_variable = { rq_t < 161 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = improved_medium_spaa can_research = improved_medium_spaa is_researching_technology = improved_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes not = { tag = JAP num_of_military_factories < 50 } date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_opinion_modifier = sov_ger_treaty }
multiply_temp_variable = { rq_ap_w = 15.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_medium_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 163 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes NOT = { AND = { tag = JAP num_of_military_factories < 50 } } date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1940.3.1 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_advanced_panzer_research has_tech_bonus = { category = cat_medium_armor } }
multiply_temp_variable = { rq_ap_w = 15.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER NOT = { has_completed_focus = GER_advanced_panzer_research } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1938.11.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_medium_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 30 } } } }
add_to_temp_variable = { rq_ap_w = 140 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = improved_medium_td can_research = improved_medium_td is_researching_technology = improved_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 168 } }
if = {
limit = { check_variable = { rq_t < 166 } }
if = {
limit = { check_variable = { rq_t < 165 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 167 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 170 } }
if = {
limit = { check_variable = { rq_t < 169 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 171 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_basic_small_airframe }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 172 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = HOL } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { not = { has_war_with = ENG has_War_with = USA } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 190 } }
if = {
limit = { check_variable = { rq_t < 181 } }
if = {
limit = { check_variable = { rq_t < 177 } }
if = {
limit = { check_variable = { rq_t < 175 } }
if = {
limit = { check_variable = { rq_t < 174 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { num_of_factories > 25 }
multiply_temp_variable = { rq_ap_w = 100 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1936.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 176 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 179 } }
if = {
limit = { check_variable = { rq_t < 178 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 180 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 185 } }
if = {
limit = { check_variable = { rq_t < 183 } }
if = {
limit = { check_variable = { rq_t < 182 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA date > "1939.6.1" } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.6.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.6.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_cavity_magnatron }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 184 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 187 } }
if = {
limit = { check_variable = { rq_t < 186 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 188 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 189 } }
set_temp_variable = { rq_ap_w = 6 }
if = {
limit = { date > "1938.1.6" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 25 }
if = {
limit = { NOT = { tag = GER } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = dispersed_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_researching_technology = dispersed_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 199 } }
if = {
limit = { check_variable = { rq_t < 194 } }
if = {
limit = { check_variable = { rq_t < 192 } }
if = {
limit = { check_variable = { rq_t < 191 } }
set_temp_variable = { rq_ap_w = 20 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 193 } }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1942.1.9" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 196 } }
if = {
limit = { check_variable = { rq_t < 195 } }
set_temp_variable = { rq_ap_w = 50 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction1 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 197 } }
set_temp_variable = { rq_ap_w = 10 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 198 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_construction4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 203 } }
if = {
limit = { check_variable = { rq_t < 201 } }
if = {
limit = { check_variable = { rq_t < 200 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = CAS2 is_researching_technology = CAS2 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 202 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = CAS3 is_researching_technology = CAS3 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 205 } }
if = {
limit = { check_variable = { rq_t < 204 } }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { has_tech = fighter1 is_researching_technology = fighter1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = fighter2 is_researching_technology = fighter2 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 206 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { AND = { is_historical_focus_on = yes tag = JAP } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.6.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = fighter3 is_researching_technology = fighter3 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 207 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 3 } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = naval_bomber2 is_researching_technology = naval_bomber2 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 242 } }
if = {
limit = { check_variable = { rq_t < 225 } }
if = {
limit = { check_variable = { rq_t < 216 } }
if = {
limit = { check_variable = { rq_t < 212 } }
if = {
limit = { check_variable = { rq_t < 210 } }
if = {
limit = { check_variable = { rq_t < 209 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { OR = { has_tech = naval_bomber3 is_researching_technology = naval_bomber3 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP has_war_with = ENG } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size > 0 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { type = carrier size < 1 } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 211 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date < 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_navy_size = { size < 10 } }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_historical_focus_on = yes tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date < 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_historical_focus_on = yes tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 214 } }
if = {
limit = { check_variable = { rq_t < 213 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date < 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_historical_focus_on = yes tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 215 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 25 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = concentrated_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_researching_technology = concentrated_industry }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 220 } }
if = {
limit = { check_variable = { rq_t < 218 } }
if = {
limit = { check_variable = { rq_t < 217 } }
set_temp_variable = { rq_ap_w = 20 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 219 } }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 222 } }
if = {
limit = { check_variable = { rq_t < 221 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 223 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 224 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 233 } }
if = {
limit = { check_variable = { rq_t < 229 } }
if = {
limit = { check_variable = { rq_t < 227 } }
if = {
limit = { check_variable = { rq_t < 226 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 228 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 231 } }
if = {
limit = { check_variable = { rq_t < 230 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 232 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 237 } }
if = {
limit = { check_variable = { rq_t < 235 } }
if = {
limit = { check_variable = { rq_t < 234 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 236 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 30 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 239 } }
if = {
limit = { check_variable = { rq_t < 238 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 240 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 241 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 259 } }
if = {
limit = { check_variable = { rq_t < 250 } }
if = {
limit = { check_variable = { rq_t < 246 } }
if = {
limit = { check_variable = { rq_t < 244 } }
if = {
limit = { check_variable = { rq_t < 243 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 245 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_engines_2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { is_major = yes date > "1940.6.1" }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date < "1940.12.1" }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_engines_3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 248 } }
if = {
limit = { check_variable = { rq_t < 247 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_engines_4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 249 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 254 } }
if = {
limit = { check_variable = { rq_t < 252 } }
if = {
limit = { check_variable = { rq_t < 251 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { oil > 0 aluminium > 0 rubber > 0 tungsten > 0 steel > 0 chromium > 0 coal > 0 } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { oil > 8 aluminium > 8 rubber > 8 tungsten > 8 steel > 8 chromium > 8 coal > 8 } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 253 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 256 } }
if = {
limit = { check_variable = { rq_t < 255 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date < "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 257 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 258 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_navy_size = { size < 10 } }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 268 } }
if = {
limit = { check_variable = { rq_t < 263 } }
if = {
limit = { check_variable = { rq_t < 261 } }
if = {
limit = { check_variable = { rq_t < 260 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = JAP tag = ITA } date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 262 } }
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 10 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 10 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 265 } }
if = {
limit = { check_variable = { rq_t < 264 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 20 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 266 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 267 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 40 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 40 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 10 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 20 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 30 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 40 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories > 50 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 10 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 20 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 30 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 40 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_naval_factories > 50 }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 0.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 0.4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 272 } }
if = {
limit = { check_variable = { rq_t < 270 } }
if = {
limit = { check_variable = { rq_t < 269 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 271 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 274 } }
if = {
limit = { check_variable = { rq_t < 273 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = iw_small_airframe has_tech = iw_medium_airframe has_tech = iw_large_airframe } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 275 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 276 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 415 } }
if = {
limit = { check_variable = { rq_t < 346 } }
if = {
limit = { check_variable = { rq_t < 311 } }
if = {
limit = { check_variable = { rq_t < 294 } }
if = {
limit = { check_variable = { rq_t < 285 } }
if = {
limit = { check_variable = { rq_t < 281 } }
if = {
limit = { check_variable = { rq_t < 279 } }
if = {
limit = { check_variable = { rq_t < 278 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 280 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 283 } }
if = {
limit = { check_variable = { rq_t < 282 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_computing_machine }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 284 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 289 } }
if = {
limit = { check_variable = { rq_t < 287 } }
if = {
limit = { check_variable = { rq_t < 286 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1.75 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 288 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_resources_in_country = { resource = coal amount > 0 only_imported = yes } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { energy_ratio < 0.9 }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.75 }
if = {
limit = { OR = { tag = ENG tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = advanced_fire_control_system has_tech = advanced_fire_control_system } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 291 } }
if = {
limit = { check_variable = { rq_t < 290 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date < 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = improved_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_heavy_art can_research = advanced_heavy_art is_researching_technology = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 292 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = improved_ship_hull_heavy }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = GER tag = JAP } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 293 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes has_war = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 302 } }
if = {
limit = { check_variable = { rq_t < 298 } }
if = {
limit = { check_variable = { rq_t < 296 } }
if = {
limit = { check_variable = { rq_t < 295 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_heavy_spaa can_research = advanced_heavy_spaa is_researching_technology = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { can_research = advanced_heavy_tank has_tech = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_heavy_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 297 } }
set_temp_variable = { rq_ap_w = 0.8 }
if = {
limit = { tag = JAP num_of_military_factories < 100 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_expand_kummersdorfs_capacity has_tech_bonus = { category = cat_heavy_armor } }
multiply_temp_variable = { rq_ap_w = 5.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_heavy_td can_research = advanced_heavy_td is_researching_technology = advanced_heavy_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 300 } }
if = {
limit = { check_variable = { rq_t < 299 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 50 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_infantry_weapons }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_infantry_weapons_2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 301 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { has_template_containing_unit = light_sp_artillery_brigade }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = advanced_light_art can_research = advanced_light_art is_researching_technology = advanced_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 306 } }
if = {
limit = { check_variable = { rq_t < 304 } }
if = {
limit = { check_variable = { rq_t < 303 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_tech = improved_ship_hull_light }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG tag = ITA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 305 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = ENG } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { has_tech = advanced_light_spaa can_research = advanced_light_spaa is_researching_technology = advanced_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 308 } }
if = {
limit = { check_variable = { rq_t < 307 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes not = { tag = JAP num_of_military_factories < 50 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes not = { tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes NOT = { AND = { tag = JAP num_of_military_factories < 50 } } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes not = { tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1936.9.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1940.9.1 }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_light_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 309 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 27 } } } }
add_to_temp_variable = { rq_ap_w = 120 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = light_tank_destroyer_brigade }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = advanced_light_td can_research = advanced_light_td is_researching_technology = advanced_light_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 310 } }
set_temp_variable = { rq_ap_w = 40 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 328 } }
if = {
limit = { check_variable = { rq_t < 319 } }
if = {
limit = { check_variable = { rq_t < 315 } }
if = {
limit = { check_variable = { rq_t < 313 } }
if = {
limit = { check_variable = { rq_t < 312 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = advanced_medium_art can_research = advanced_medium_art is_researching_technology = advanced_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_sp_artillery_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = advanced_medium_spaa can_research = advanced_medium_spaa is_researching_technology = advanced_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 314 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { is_major = yes not = { tag = JAP num_of_military_factories < 50 } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 0.3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_medium_tank }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes NOT = { AND = { tag = JAP num_of_military_factories < 50 } } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV date > 1940.3.1 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1941.6.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1942.9.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1944.1.1 }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_medium_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 317 } }
if = {
limit = { check_variable = { rq_t < 316 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { OR = { tag = SOV } has_war = yes any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 32 } } } }
add_to_temp_variable = { rq_ap_w = 150 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_template_containing_unit = medium_tank_destroyer_brigade }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { has_tech = advanced_medium_td can_research = advanced_medium_td is_researching_technology = advanced_medium_tank } }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 318 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.8.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 323 } }
if = {
limit = { check_variable = { rq_t < 321 } }
if = {
limit = { check_variable = { rq_t < 320 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA } has_war = yes }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 322 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 8 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 325 } }
if = {
limit = { check_variable = { rq_t < 324 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = JAP tag = USA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 326 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1940.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 327 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date < "1940.2.1" }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_improved_small_airframe }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 337 } }
if = {
limit = { check_variable = { rq_t < 332 } }
if = {
limit = { check_variable = { rq_t < 330 } }
if = {
limit = { check_variable = { rq_t < 329 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.6.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.6.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 331 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 334 } }
if = {
limit = { check_variable = { rq_t < 333 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = HOL } }
multiply_temp_variable = { rq_ap_w = 7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 335 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_infantry_at }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 336 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 341 } }
if = {
limit = { check_variable = { rq_t < 339 } }
if = {
limit = { check_variable = { rq_t < 338 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = CHI OR = { date > 1937.1.1 JAP = { is_ai = no } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1936.1.3 }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < 1939.1.1 original_tag = PRC }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < 1939.1.1 tag = PRC }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_infantry_weapons2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 340 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 0.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP not = { OR = { has_war_with = SOV has_war_with = USA } } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { any_enemy_country = { ROOT = { estimated_intel_max_armor = { tag = PREV value > 30 } } } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 343 } }
if = {
limit = { check_variable = { rq_t < 342 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 6.0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_interwar_artillery }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 344 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { num_of_military_factories < 30 }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1937.1.1 }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 345 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { num_of_military_factories < 15 }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 7 }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 380 } }
if = {
limit = { check_variable = { rq_t < 363 } }
if = {
limit = { check_variable = { rq_t < 354 } }
if = {
limit = { check_variable = { rq_t < 350 } }
if = {
limit = { check_variable = { rq_t < 348 } }
if = {
limit = { check_variable = { rq_t < 347 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 349 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_deployed_air_force_size = { size > 500 type = strategic_bomber } }
multiply_temp_variable = { rq_ap_w = 4.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 352 } }
if = {
limit = { check_variable = { rq_t < 351 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 353 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 358 } }
if = {
limit = { check_variable = { rq_t < 356 } }
if = {
limit = { check_variable = { rq_t < 355 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 357 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 360 } }
if = {
limit = { check_variable = { rq_t < 359 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { NOT = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP OR = { has_war_with = USA CHI = { OR = { has_capitulated = yes exists = no is_subject_of = JAP } } } }
multiply_temp_variable = { rq_ap_w = 50 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = ENG tag = USA } has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = ENG tag = USA } has_war_with = GER GER = { has_war_with = SOV } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 361 } }
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 362 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 371 } }
if = {
limit = { check_variable = { rq_t < 367 } }
if = {
limit = { check_variable = { rq_t < 365 } }
if = {
limit = { check_variable = { rq_t < 364 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { OR = { tag = JAP tag = USA tag = GER } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 366 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > 1946.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1947.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1948.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1944.9.1 }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 369 } }
if = {
limit = { check_variable = { rq_t < 368 } }
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 370 } }
set_temp_variable = { rq_ap_w = 10 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1941.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_mechanised_infantry }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 375 } }
if = {
limit = { check_variable = { rq_t < 373 } }
if = {
limit = { check_variable = { rq_t < 372 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 374 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 377 } }
if = {
limit = { check_variable = { rq_t < 376 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 378 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 379 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_deployed_air_force_size = { size > 500 type = strategic_bomber } }
multiply_temp_variable = { rq_ap_w = 4.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 397 } }
if = {
limit = { check_variable = { rq_t < 388 } }
if = {
limit = { check_variable = { rq_t < 384 } }
if = {
limit = { check_variable = { rq_t < 382 } }
if = {
limit = { check_variable = { rq_t < 381 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 383 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 386 } }
if = {
limit = { check_variable = { rq_t < 385 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 387 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 392 } }
if = {
limit = { check_variable = { rq_t < 390 } }
if = {
limit = { check_variable = { rq_t < 389 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_motorised_infantry }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 391 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 394 } }
if = {
limit = { check_variable = { rq_t < 393 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 395 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 396 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA date > 1942.1.1 }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG date > 1941.6.1 }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_mtg_landing_craft }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 406 } }
if = {
limit = { check_variable = { rq_t < 401 } }
if = {
limit = { check_variable = { rq_t < 399 } }
if = {
limit = { check_variable = { rq_t < 398 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war_with = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { has_war = no }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war_with = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 400 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_war_with = ENG has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { has_war_with = ENG has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = naval_bomber } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 403 } }
if = {
limit = { check_variable = { rq_t < 402 } }
set_temp_variable = { rq_ap_w = 1.5 }
if = {
limit = { OR = { has_war_with = ENG has_war_with = USA has_war_with = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = naval_bomber } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1942.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 404 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { date > "1945.1.9" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.6" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 405 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 410 } }
if = {
limit = { check_variable = { rq_t < 408 } }
if = {
limit = { check_variable = { rq_t < 407 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 409 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 412 } }
if = {
limit = { check_variable = { rq_t < 411 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = USA date > 1943.1.1 }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_anschluss CZE = { is_ai = no } }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER has_completed_focus = GER_fallschirmjager }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_paratroopers }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 413 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 414 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = ENG tag = USA } }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date < "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 484 } }
if = {
limit = { check_variable = { rq_t < 449 } }
if = {
limit = { check_variable = { rq_t < 432 } }
if = {
limit = { check_variable = { rq_t < 423 } }
if = {
limit = { check_variable = { rq_t < 419 } }
if = {
limit = { check_variable = { rq_t < 417 } }
if = {
limit = { check_variable = { rq_t < 416 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { has_tech = basic_medium_airframe } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 418 } }
set_temp_variable = { rq_ap_w = 3 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.8.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 421 } }
if = {
limit = { check_variable = { rq_t < 420 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { TAG = GER tag = SOV } }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { num_of_military_factories < 10 }
multiply_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { OR = { tag = USA tag = JAP } }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 422 } }
set_temp_variable = { rq_ap_w = 0.7 }
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = BRA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 427 } }
if = {
limit = { check_variable = { rq_t < 425 } }
if = {
limit = { check_variable = { rq_t < 424 } }
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 426 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = SOV date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 429 } }
if = {
limit = { check_variable = { rq_t < 428 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 430 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = SOV }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 431 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = ITA } has_war = yes }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { rubber > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_rubber_processing }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 440 } }
if = {
limit = { check_variable = { rq_t < 436 } }
if = {
limit = { check_variable = { rq_t < 434 } }
if = {
limit = { check_variable = { rq_t < 433 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = fighter1 has_tech = tactical_bomber1 has_tech = CAS1 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 435 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_tech = fighter2 has_tech = tactical_bomber2 has_tech = CAS2 }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 25 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 438 } }
if = {
limit = { check_variable = { rq_t < 437 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_navy_size = { size < 10 } }
multiply_temp_variable = { rq_ap_w = 0.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1938.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > 1939.1.1 }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war_with = GER }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { anti_submarine_strategy_required_trigger = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_dd_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 439 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 444 } }
if = {
limit = { check_variable = { rq_t < 442 } }
if = {
limit = { check_variable = { rq_t < 441 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 443 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 446 } }
if = {
limit = { check_variable = { rq_t < 445 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 447 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 448 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 466 } }
if = {
limit = { check_variable = { rq_t < 457 } }
if = {
limit = { check_variable = { rq_t < 453 } }
if = {
limit = { check_variable = { rq_t < 451 } }
if = {
limit = { check_variable = { rq_t < 450 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 452 } }
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 455 } }
if = {
limit = { check_variable = { rq_t < 454 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 456 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 461 } }
if = {
limit = { check_variable = { rq_t < 459 } }
if = {
limit = { check_variable = { rq_t < 458 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 460 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 463 } }
if = {
limit = { check_variable = { rq_t < 462 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 464 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 465 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 475 } }
if = {
limit = { check_variable = { rq_t < 470 } }
if = {
limit = { check_variable = { rq_t < 468 } }
if = {
limit = { check_variable = { rq_t < 467 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 469 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 472 } }
if = {
limit = { check_variable = { rq_t < 471 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 473 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 474 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 479 } }
if = {
limit = { check_variable = { rq_t < 477 } }
if = {
limit = { check_variable = { rq_t < 476 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 478 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 481 } }
if = {
limit = { check_variable = { rq_t < 480 } }
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_artillery }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 482 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 483 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 518 } }
if = {
limit = { check_variable = { rq_t < 501 } }
if = {
limit = { check_variable = { rq_t < 492 } }
if = {
limit = { check_variable = { rq_t < 488 } }
if = {
limit = { check_variable = { rq_t < 486 } }
if = {
limit = { check_variable = { rq_t < 485 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 15 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 487 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 490 } }
if = {
limit = { check_variable = { rq_t < 489 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = GER tag = USA tag = ENG tag = SOV } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 491 } }
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 496 } }
if = {
limit = { check_variable = { rq_t < 494 } }
if = {
limit = { check_variable = { rq_t < 493 } }
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 495 } }
set_temp_variable = { rq_ap_w = 0 }
if = {
limit = { date > 1943.9.1 NOT = { has_government = democratic } num_of_military_factories > 150 }
add_to_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = GER date > 1944.5.1 surrender_progress < 0.1 has_government = fascism has_war_with = SOV }
add_to_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER is_historical_focus_on = yes }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_super_heavy_tank_chassis }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_armor }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 498 } }
if = {
limit = { check_variable = { rq_t < 497 } }
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 499 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { original_tag = CHI original_tag = PRC original_tag = XSM original_tag = SIK original_tag = GXC original_tag = SHX original_tag = YUN original_tag = MAN original_tag = MEN original_tag = JAP original_tag = GSM original_tag = NXM original_tag = HBC original_tag = SND original_tag = GDC original_tag = KHM } }
multiply_temp_variable = { rq_ap_w = 15 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 500 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { OR = { tag = CHI tag = PRC tag = XSM tag = SIK tag = GXC tag = SHX tag = YUN } }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.6" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons3 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 509 } }
if = {
limit = { check_variable = { rq_t < 505 } }
if = {
limit = { check_variable = { rq_t < 503 } }
if = {
limit = { check_variable = { rq_t < 502 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_support_weapons4 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_weapons }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_War = yes }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 504 } }
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 5 }
if = {
limit = { OR = { tag = GER tag = ITA tag = JAP } has_war = yes }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 10 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 20 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { oil > 30 }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_synth_oil_experiments }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_industry }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 507 } }
if = {
limit = { check_variable = { rq_t < 506 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1936.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 508 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_deployed_air_force_size = { size > 500 type = tactical_bomber } }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = yes date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_air_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { NOT = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 513 } }
if = {
limit = { check_variable = { rq_t < 511 } }
if = {
limit = { check_variable = { rq_t < 510 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = CHI NOT = { has_dlc = "No Compromise, No Surrender" } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_engineers }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 512 } }
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 4 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 515 } }
if = {
limit = { check_variable = { rq_t < 514 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_field_hospital }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 516 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 517 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_logistics_company }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 535 } }
if = {
limit = { check_variable = { rq_t < 526 } }
if = {
limit = { check_variable = { rq_t < 522 } }
if = {
limit = { check_variable = { rq_t < 520 } }
if = {
limit = { check_variable = { rq_t < 519 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 521 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 3 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_maintenance_company }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 524 } }
if = {
limit = { check_variable = { rq_t < 523 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_maintenance_company2 }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 525 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { tag = GER }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = GER POL = { has_capitulated = yes } GER = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ITA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 530 } }
if = {
limit = { check_variable = { rq_t < 528 } }
if = {
limit = { check_variable = { rq_t < 527 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 529 } }
set_temp_variable = { rq_ap_w = 0.5 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_g = rq_apf_tech_mountaineers }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 532 } }
if = {
limit = { check_variable = { rq_t < 531 } }
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0.7 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 533 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_g = rq_apf_tech_recon }
divide_temp_variable = { rq_ap_g = 100 }
add_to_temp_variable = { rq_ap_g = 1 }
clamp_temp_variable = { var = rq_ap_g min = 0 }
multiply_temp_variable = { rq_ap_w = rq_ap_g }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 534 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 544 } }
if = {
limit = { check_variable = { rq_t < 539 } }
if = {
limit = { check_variable = { rq_t < 537 } }
if = {
limit = { check_variable = { rq_t < 536 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 538 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { is_major = yes date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 541 } }
if = {
limit = { check_variable = { rq_t < 540 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1943.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1944.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1945.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1946.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1947.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1948.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_electronics }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 542 } }
set_temp_variable = { rq_ap_w = 0.7 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 543 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 4 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { original_tag = CHI NOT = { has_dlc = "No Compromise, No Surrender" } }
multiply_temp_variable = { rq_ap_w = 6 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_support_tech }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { date > "1937.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1938.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1939.1.1" }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { is_major = no }
multiply_temp_variable = { rq_ap_w = 0.75 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_infantry_tech }
add_to_temp_variable = { rq_ap_h = rq_apn_motorized_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 548 } }
if = {
limit = { check_variable = { rq_t < 546 } }
if = {
limit = { check_variable = { rq_t < 545 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 10 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 547 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
else = {
if = {
limit = { check_variable = { rq_t < 550 } }
if = {
limit = { check_variable = { rq_t < 549 } }
set_temp_variable = { rq_ap_w = 1 }
if = {
limit = { NOT = { has_war = yes } }
multiply_temp_variable = { rq_ap_w = 0.5 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = USA }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = JAP }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { tag = ENG }
multiply_temp_variable = { rq_ap_w = 2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
set_temp_variable = { rq_ap_h = 0 }
add_to_temp_variable = { rq_ap_h = rq_apn_naval_equipment }
multiply_temp_variable = { rq_ap_h = 0.01 }
add_to_temp_variable = { rq_ap_h = 1 }
multiply_temp_variable = { rq_ap_w = rq_ap_h }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 0 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
else = {
if = {
limit = { check_variable = { rq_t < 551 } }
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
if = {
limit = { check_variable = { rq_t < 552 } }
set_temp_variable = { rq_ap_w = 2 }
if = {
limit = { has_war = yes }
multiply_temp_variable = { rq_ap_w = 20 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1940.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1941.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
if = {
limit = { date > "1942.1.1" }
multiply_temp_variable = { rq_ap_w = 1.2 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
else = {
set_temp_variable = { rq_ap_w = 1 }
clamp_temp_variable = { var = rq_ap_w min = 0 max = 100000 }
}
}
}
}
}
}
}
}
}
}
}
rq_ap_sub_calc = {
set_variable = { rq_ap_sx_0 = 0 } if = { limit = { check_variable = { rq_ap_sx_0 < rq_ap_s_air_str } } set_variable = { rq_ap_sx_0 = rq_ap_s_air_str } } if = { limit = { check_variable = { rq_ap_sx_0 < rq_ap_s_air_nav } } set_variable = { rq_ap_sx_0 = rq_ap_s_air_nav } }
set_variable = { rq_ap_sx_1 = 0 } if = { limit = { check_variable = { rq_ap_sx_1 < rq_ap_s_air_ftr } } set_variable = { rq_ap_sx_1 = rq_ap_s_air_ftr } } if = { limit = { check_variable = { rq_ap_sx_1 < rq_ap_s_air_tac } } set_variable = { rq_ap_sx_1 = rq_ap_s_air_tac } }
set_variable = { rq_ap_sx_2 = 0 } if = { limit = { check_variable = { rq_ap_sx_2 < rq_ap_s_air_ftr } } set_variable = { rq_ap_sx_2 = rq_ap_s_air_ftr } } if = { limit = { check_variable = { rq_ap_sx_2 < rq_ap_s_air_cas } } set_variable = { rq_ap_sx_2 = rq_ap_s_air_cas } } if = { limit = { check_variable = { rq_ap_sx_2 < rq_ap_s_air_nav } } set_variable = { rq_ap_sx_2 = rq_ap_s_air_nav } }
set_variable = { rq_ap_sx_3 = 0 } if = { limit = { check_variable = { rq_ap_sx_3 < rq_ap_s_land_mnt } } set_variable = { rq_ap_sx_3 = rq_ap_s_land_mnt } } if = { limit = { check_variable = { rq_ap_sx_3 < rq_ap_s_land_mar } } set_variable = { rq_ap_sx_3 = rq_ap_s_land_mar } } if = { limit = { check_variable = { rq_ap_sx_3 < rq_ap_s_land_para } } set_variable = { rq_ap_sx_3 = rq_ap_s_land_para } }
set_variable = { rq_ap_sx_4 = 0 } if = { limit = { check_variable = { rq_ap_sx_4 < rq_ap_s_air_cas } } set_variable = { rq_ap_sx_4 = rq_ap_s_air_cas } } if = { limit = { check_variable = { rq_ap_sx_4 < rq_ap_s_air_nav } } set_variable = { rq_ap_sx_4 = rq_ap_s_air_nav } }
}
rq_ap_strat = {
if = { limit = { original_tag = ENG has_dlc = "Man the Guns" is_historical_focus_on = yes } set_country_flag = rq_as_0 } else = { clr_country_flag = rq_as_0 }
if = { limit = { original_tag = ENG date > 1940.1.1 } set_country_flag = rq_as_1 } else = { clr_country_flag = rq_as_1 }
if = { limit = { NOT = { has_country_flag = rq_as_2 } original_tag = GER date > 1937.5.1 } set_country_flag = rq_as_2  }
if = { limit = { has_country_flag = rq_as_2 OR = { has_tech = paratroopers NOT = { original_tag = GER } } } clr_country_flag = rq_as_2 }
if = { limit = { NOT = { has_country_flag = rq_as_3 } has_dlc = "No Step Back" has_dlc = "Gotterdammerung" original_tag = GER date > 1944.5.1 } set_country_flag = rq_as_3  }
if = { limit = { has_country_flag = rq_as_3 OR = { has_tech = super_heavy_tank_chassis NOT = { has_dlc = "No Step Back" has_dlc = "Gotterdammerung" original_tag = GER } } } clr_country_flag = rq_as_3 }
if = { limit = { NOT = { has_country_flag = rq_as_4 } original_tag = GER has_tech = radio_detection } set_country_flag = rq_as_4  }
if = { limit = { has_country_flag = rq_as_4 OR = { has_tech = cavity_magnatron NOT = { original_tag = GER } } } clr_country_flag = rq_as_4 }
if = { limit = { original_tag = HUN always = yes } set_country_flag = rq_as_5 } else = { clr_country_flag = rq_as_5 }
if = { limit = { original_tag = HUN date > 1940.1.1 } set_country_flag = rq_as_6 } else = { clr_country_flag = rq_as_6 }
if = { limit = { original_tag = HUN date > 1943.1.1 } set_country_flag = rq_as_7 } else = { clr_country_flag = rq_as_7 }
if = { limit = { tag = INS has_active_mission = INS_militias_jakarta_pemuda_mission } set_country_flag = rq_as_8 } else = { clr_country_flag = rq_as_8 }
if = { limit = { NOT = { has_country_flag = rq_as_9 } original_tag = JAP is_historical_focus_on = yes date > 1939.10.1 } set_country_flag = rq_as_9  }
if = { limit = { has_country_flag = rq_as_9 OR = { JAP = { exists = no } NOT = { original_tag = JAP } } } clr_country_flag = rq_as_9 }
if = { limit = { NOT = { has_country_flag = rq_as_10 } original_tag = RAJ OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM } } has_completed_focus = RAJ_every_man_a_leader } set_country_flag = rq_as_10  }
if = { limit = { has_country_flag = rq_as_10 OR = { always = no NOT = { original_tag = RAJ OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM } } } } } clr_country_flag = rq_as_10 }
if = { limit = { original_tag = SOV NOT = { OR = { has_tech = basic_medium_tank has_tech = basic_medium_tank_chassis } } } set_country_flag = rq_as_11 } else = { clr_country_flag = rq_as_11 }
if = { limit = { original_tag = SOV always = yes } set_country_flag = rq_as_12 } else = { clr_country_flag = rq_as_12 }
if = { limit = { NOT = { has_country_flag = rq_as_13 } original_tag = SOV date > 1937.1.1 OR = { has_tech = basic_medium_tank has_tech = basic_medium_tank_chassis } } set_country_flag = rq_as_13  }
if = { limit = { has_country_flag = rq_as_13 OR = { OR = { has_tech = basic_heavy_tank_chassis has_tech = basic_heavy_tank } NOT = { original_tag = SOV } } } clr_country_flag = rq_as_13 }
if = { limit = { NOT = { has_country_flag = rq_as_14 } original_tag = SOV date > 1939.6.1 OR = { has_tech = improved_medium_tank_chassis has_tech = improved_medium_tank } } set_country_flag = rq_as_14  }
if = { limit = { has_country_flag = rq_as_14 OR = { OR = { has_tech = improved_heavy_tank_chassis has_tech = improved_heavy_tank } NOT = { original_tag = SOV } } } clr_country_flag = rq_as_14 }
if = { limit = { NOT = { has_country_flag = rq_as_15 } original_tag = SOV date > 1941.1.1 has_tech = improved_heavy_tank_chassis } set_country_flag = rq_as_15  }
if = { limit = { has_country_flag = rq_as_15 OR = { has_tech = advanced_heavy_tank_chassis NOT = { original_tag = SOV } } } clr_country_flag = rq_as_15 }
if = { limit = { original_tag = USA date > 1939.8.1 NOT = { has_tech = atomic_research } } set_country_flag = rq_as_16 } else = { clr_country_flag = rq_as_16 }
if = { limit = { original_tag = USA date > 1939.1.1 } set_country_flag = rq_as_17 } else = { clr_country_flag = rq_as_17 }
if = { limit = { original_tag = USA NOT = { has_tech = tech_maintenance_company2 } } set_country_flag = rq_as_18 } else = { clr_country_flag = rq_as_18 }
if = { limit = { original_tag = AST NOT = { has_dlc = "Thunder at Our Gates" } OR = { has_country_flag = AST_AI_RANDOM_DEMOCRATIC_ALTERNATE has_game_rule = { rule = AST_ai_behavior option = DEMOCRATIC_ALTERNATE } } } set_country_flag = rq_as_19 } else = { clr_country_flag = rq_as_19 }
if = { limit = { original_tag = AST NOT = { has_dlc = "Thunder at Our Gates" } OR = { has_country_flag = AST_AI_RANDOM_FASCIST has_game_rule = { rule = AST_ai_behavior option = FASCIST } } } set_country_flag = rq_as_20 } else = { clr_country_flag = rq_as_20 }
if = { limit = { original_tag = AST NOT = { has_dlc = "Thunder at Our Gates" } OR = { has_country_flag = AST_AI_RANDOM_COMMUNIST has_game_rule = { rule = AST_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_21 } else = { clr_country_flag = rq_as_21 }
if = { limit = { original_tag = AST NOT = { has_dlc = "Thunder at Our Gates" } OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = AST_ai_behavior option = DEFAULT } } has_country_flag = AST_AI_RANDOM_DEMOCRATIC_HISTORICAL has_game_rule = { rule = AST_ai_behavior option = DEMOCRATIC_HISTORICAL } has_country_flag = britain_enforced_our_loyalty } } set_country_flag = rq_as_22 } else = { clr_country_flag = rq_as_22 }
if = { limit = { OR = { original_tag = LAT original_tag = LIT original_tag = EST } OR = { AND = { original_tag = LAT has_dlc = "No Step Back" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = LAT_ai_behavior option = COMMUNIST } } has_country_flag = LAT_AI_RANDOM_COMMUNIST has_game_rule = { rule = LAT_ai_behavior option = COMMUNIST } } } AND = { original_tag = LIT has_dlc = "No Step Back" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = LIT_ai_behavior option = COMMUNIST } } has_country_flag = LIT_AI_RANDOM_COMMUNIST has_game_rule = { rule = LIT_ai_behavior option = COMMUNIST } } } AND = { original_tag = EST has_dlc = "No Step Back" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = EST_ai_behavior option = COMMUNIST } } has_country_flag = EST_AI_RANDOM_COMMUNIST has_game_rule = { rule = EST_ai_behavior option = COMMUNIST } } } } } set_country_flag = rq_as_23 } else = { clr_country_flag = rq_as_23 }
if = { limit = { original_tag = CAN has_dlc = "Together for Victory" OR = { has_country_flag = CAN_AI_RANDOM_DEMOCRATIC_ALTERNATE has_game_rule = { rule = CAN_ai_behavior option = DEMOCRATIC_ALTERNATE } } } set_country_flag = rq_as_24 } else = { clr_country_flag = rq_as_24 }
if = { limit = { original_tag = CAN has_dlc = "Together for Victory" OR = { has_country_flag = CAN_AI_RANDOM_FASCIST has_game_rule = { rule = CAN_ai_behavior option = FASCIST } } } set_country_flag = rq_as_25 } else = { clr_country_flag = rq_as_25 }
if = { limit = { original_tag = CAN has_dlc = "Together for Victory" OR = { has_country_flag = CAN_AI_RANDOM_COMMUNIST has_game_rule = { rule = CAN_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_26 } else = { clr_country_flag = rq_as_26 }
if = { limit = { original_tag = CAN has_dlc = "Together for Victory" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = CAN_ai_behavior option = DEFAULT } } has_country_flag = CAN_AI_RANDOM_DEMOCRATIC_HISTORICAL has_game_rule = { rule = CAN_ai_behavior option = DEMOCRATIC_HISTORICAL } has_country_flag = britain_enforced_our_loyalty } } set_country_flag = rq_as_27 } else = { clr_country_flag = rq_as_27 }
if = { limit = { NOT = { has_country_flag = rq_as_28 } is_literally_china = yes OR = { original_tag = CHI AND = { is_chinese_warlord = yes has_focus_tree = china_nationalist_focus } } has_war = no } set_country_flag = rq_as_28  }
if = { limit = { has_country_flag = rq_as_28 OR = { has_war = yes NOT = { is_literally_china = yes } } } clr_country_flag = rq_as_28 }
if = { limit = { NOT = { has_country_flag = rq_as_29 } is_literally_china = yes OR = { original_tag = CHI AND = { is_chinese_warlord = yes has_focus_tree = china_nationalist_focus } } has_war = yes } set_country_flag = rq_as_29  }
if = { limit = { has_country_flag = rq_as_29 OR = { OR = { has_war = no has_completed_focus = CHI_war_of_national_liberation has_completed_focus = CHI_dare_to_die_corps controls_state = 527 } NOT = { is_literally_china = yes } } } clr_country_flag = rq_as_29 }
if = { limit = { NOT = { has_country_flag = rq_as_30 } is_literally_china = yes has_completed_focus = CHI_mission_to_the_soviet_union SOV = { has_opinion = { target = ROOT value < 90 } } OR = { has_war = no AND = { NOT = { has_idea = civilian_economy } OR = { NOT = { has_idea = volunteer_only } has_manpower > 200000 } } } } set_country_flag = rq_as_30  }
if = { limit = { has_country_flag = rq_as_30 OR = { OR = { has_completed_focus = CHI_combined_arms_warfare SOV = { has_opinion = { target = ROOT value > 90 } } AND = { has_war = yes OR = { has_idea = civilian_economy AND = { has_idea = volunteer_only has_manpower < 200000 } } } } NOT = { is_literally_china = yes } } } clr_country_flag = rq_as_30 }
if = { limit = { original_tag = CHI has_dlc = "No Compromise, No Surrender" OR = { has_country_flag = CHI_AI_RANDOM_WANG_JINGWEI has_game_rule = { rule = CHI_ai_behavior option = WANG_JINGWEI_SEA } } } set_country_flag = rq_as_31 } else = { clr_country_flag = rq_as_31 }
if = { limit = { original_tag = CHI has_dlc = "No Compromise, No Surrender" OR = { has_country_flag = CHI_AI_RANDOM_FASCIST has_game_rule = { rule = CHI_ai_behavior option = FASCIST_SEA } } } set_country_flag = rq_as_32 } else = { clr_country_flag = rq_as_32 }
if = { limit = { original_tag = CHI has_dlc = "No Compromise, No Surrender" OR = { has_country_flag = CHI_AI_RANDOM_DEMOCRATIC_SEA has_game_rule = { rule = CHI_ai_behavior option = DEMOCRATIC_SEA } } } set_country_flag = rq_as_33 } else = { clr_country_flag = rq_as_33 }
if = { limit = { original_tag = CHI has_dlc = "No Compromise, No Surrender" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = CHI_ai_behavior option = DEFAULT } } has_country_flag = CHI_AI_RANDOM_HISTORICAL_SEA has_game_rule = { rule = CHI_ai_behavior option = HISTORICAL_SEA } } } set_country_flag = rq_as_34 } else = { clr_country_flag = rq_as_34 }
if = { limit = { NOT = { has_country_flag = rq_as_35 } is_chinese_warlord = yes has_dlc = "No Compromise, No Surrender" has_completed_focus = CHI_sea_cooperation_with_the_nationalists } set_country_flag = rq_as_35  }
if = { limit = { has_country_flag = rq_as_35 OR = { not = { has_focus_tree = china_warlord_sea_focus } NOT = { is_chinese_warlord = yes has_dlc = "No Compromise, No Surrender" } } } clr_country_flag = rq_as_35 }
if = { limit = { NOT = { has_country_flag = rq_as_36 } is_chinese_warlord = yes has_dlc = "No Compromise, No Surrender" has_completed_focus = CHI_sea_cooperation_with_the_communists } set_country_flag = rq_as_36  }
if = { limit = { has_country_flag = rq_as_36 OR = { not = { has_focus_tree = china_warlord_sea_focus } NOT = { is_chinese_warlord = yes has_dlc = "No Compromise, No Surrender" } } } clr_country_flag = rq_as_36 }
if = { limit = { NOT = { has_country_flag = rq_as_37 } is_chinese_warlord = yes has_completed_focus = CHI_cooperation_with_the_nationalists } set_country_flag = rq_as_37  }
if = { limit = { has_country_flag = rq_as_37 OR = { not = { has_focus_tree = china_warlord_focus } NOT = { is_chinese_warlord = yes } } } clr_country_flag = rq_as_37 }
if = { limit = { NOT = { has_country_flag = rq_as_38 } is_chinese_warlord = yes has_completed_focus = CHI_cooperation_with_the_communists } set_country_flag = rq_as_38  }
if = { limit = { has_country_flag = rq_as_38 OR = { not = { has_focus_tree = china_warlord_focus } NOT = { is_chinese_warlord = yes } } } clr_country_flag = rq_as_38 }
if = { limit = { original_tag = CZE has_dlc = "Death or Dishonor" NOT = { has_dlc = "Peace For Our Time" } OR = { has_country_flag = CZE_AI_RANDOM_DEMOCRATIC_ALTERNATE has_game_rule = { rule = CZE_ai_behavior option = DEMOCRATIC_ALTERNATE } } } set_country_flag = rq_as_39 } else = { clr_country_flag = rq_as_39 }
if = { limit = { original_tag = CZE OR = { has_country_flag = CZE_AI_RANDOM_COMMUNIST has_game_rule = { rule = CZE_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_40 } else = { clr_country_flag = rq_as_40 }
if = { limit = { original_tag = CZE OR = { has_country_flag = CZE_AI_RANDOM_FASCIST has_game_rule = { rule = CZE_ai_behavior option = FASCIST } } } set_country_flag = rq_as_41 } else = { clr_country_flag = rq_as_41 }
if = { limit = { original_tag = CZE OR = { has_country_flag = CZE_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = CZE_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_42 } else = { clr_country_flag = rq_as_42 }
if = { limit = { NOT = { has_country_flag = rq_as_43 } original_tag = CZE NOT = { has_dlc = "Peace For Our Time" } OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = CZE_ai_behavior option = DEFAULT } } has_country_flag = CZE_AI_RANDOM_HISTORICAL has_game_rule = { rule = CZE_ai_behavior option = HISTORICAL } } } set_country_flag = rq_as_43  }
if = { limit = { has_country_flag = rq_as_43 OR = { OR = { GER = { not = { has_government = fascism } } FRA = { not = { has_government = democratic } } } has_game_rule = { rule = CZE_ai_behavior option = DEFAULT } NOT = { original_tag = CZE NOT = { has_dlc = "Peace For Our Time" } } } } clr_country_flag = rq_as_43 }
if = { limit = { original_tag = CZE has_dlc = "Death or Dishonor" has_dlc = "Peace For Our Time" OR = { has_country_flag = CZE_AI_RANDOM_DEMOCRATIC_ALTERNATE has_game_rule = { rule = CZE_ai_behavior option = DEMOCRATIC_ALTERNATE } } } set_country_flag = rq_as_44 } else = { clr_country_flag = rq_as_44 }
if = { limit = { original_tag = CZE has_dlc = "Peace For Our Time" OR = { has_country_flag = CZE_AI_RANDOM_COMMUNIST has_game_rule = { rule = CZE_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_45 } else = { clr_country_flag = rq_as_45 }
if = { limit = { original_tag = CZE has_dlc = "Peace For Our Time" OR = { has_country_flag = CZE_AI_RANDOM_FASCIST has_game_rule = { rule = CZE_ai_behavior option = FASCIST } } } set_country_flag = rq_as_46 } else = { clr_country_flag = rq_as_46 }
if = { limit = { original_tag = CZE has_dlc = "Peace For Our Time" OR = { has_country_flag = CZE_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = CZE_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_47 } else = { clr_country_flag = rq_as_47 }
if = { limit = { NOT = { has_country_flag = rq_as_48 } original_tag = CZE has_dlc = "Peace For Our Time" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = CZE_ai_behavior option = DEFAULT } } has_country_flag = CZE_AI_RANDOM_HISTORICAL has_game_rule = { rule = CZE_ai_behavior option = HISTORICAL } } } set_country_flag = rq_as_48  }
if = { limit = { has_country_flag = rq_as_48 OR = { OR = { GER = { OR = { NOT = { has_government = fascism } has_completed_focus = GER_oppose_hitler has_completed_focus = GER_oppose_hitler_ww AND = { is_ai = no has_completed_focus = GER_heed_von_neuraths_concerns } } } FRA = { not = { has_government = democratic } } } has_game_rule = { rule = CZE_ai_behavior option = DEFAULT } NOT = { original_tag = CZE has_dlc = "Peace For Our Time" } } } clr_country_flag = rq_as_48 }
if = { limit = { original_tag = EST has_dlc = "No Step Back" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = EST_ai_behavior option = FASCIST } } has_country_flag = EST_AI_RANDOM_FASCIST has_game_rule = { rule = EST_ai_behavior option = FASCIST } } } set_country_flag = rq_as_49 } else = { clr_country_flag = rq_as_49 }
if = { limit = { original_tag = EST has_dlc = "No Step Back" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = EST_ai_behavior option = DEFAULT } } has_country_flag = EST_AI_RANDOM_HISTORICAL has_game_rule = { rule = EST_ai_behavior option = HISTORICAL } } } set_country_flag = rq_as_50 } else = { clr_country_flag = rq_as_50 }
if = { limit = {  original_tag = EST has_dlc = "No Step Back" OR = { has_country_flag = EST_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = EST_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_51 } else = { clr_country_flag = rq_as_51 }
if = { limit = { original_tag = GER NOT = { has_dlc = "Gotterdammerung" } OR = { has_country_flag = GER_AI_RANDOM_KAISER has_game_rule = { rule = GER_ai_behavior option = KAISER } AND = { has_game_rule = { rule = GER_ai_behavior option = DEFAULT } has_completed_focus = GER_oppose_hitler } } } set_country_flag = rq_as_52 } else = { clr_country_flag = rq_as_52 }
if = { limit = { original_tag = GER NOT = { has_dlc = "Gotterdammerung" } OR = { has_country_flag = GER_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = GER_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_53 } else = { clr_country_flag = rq_as_53 }
if = { limit = { original_tag = GER has_dlc = "Gotterdammerung" OR = { has_country_flag = GER_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = GER_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_54 } else = { clr_country_flag = rq_as_54 }
if = { limit = { original_tag = GER has_dlc = "Gotterdammerung" OR = { has_country_flag = GER_AI_RANDOM_KAISER has_game_rule = { rule = GER_ai_behavior option = KAISER } AND = { has_game_rule = { rule = GER_ai_behavior option = DEFAULT } has_completed_focus = GER_oppose_hitler_ww NOT = { has_country_flag = GER_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = GER_ai_behavior option = DEMOCRATIC } } } } } set_country_flag = rq_as_55 } else = { clr_country_flag = rq_as_55 }
if = { limit = { original_tag = GER has_dlc = "Gotterdammerung" OR = { has_country_flag = GER_AI_RANDOM_COMMUNIST_STALINIST has_game_rule = { rule = GER_ai_behavior option = GER_COMMUNIST_STALINIST } } } set_country_flag = rq_as_56 } else = { clr_country_flag = rq_as_56 }
if = { limit = { original_tag = GER has_dlc = "Gotterdammerung" OR = { has_country_flag = GER_AI_RANDOM_COMMUNIST_SPARTACUS has_game_rule = { rule = GER_ai_behavior option = GER_COMMUNIST_SPARTACUS } } } set_country_flag = rq_as_57 } else = { clr_country_flag = rq_as_57 }
if = { limit = { NOT = { has_country_flag = rq_as_58 } original_tag = GER OR = { has_country_flag = GER_AI_RANDOM_ALT_FASCIST has_game_rule = { rule = GER_ai_behavior option = GER_ALT_FASCIST } } } set_country_flag = rq_as_58  }
if = { limit = { has_country_flag = rq_as_58 OR = { OR = { is_subject = yes has_government = democratic has_government = communism } NOT = { original_tag = GER } } } clr_country_flag = rq_as_58 }
if = { limit = { NOT = { has_country_flag = rq_as_59 } original_tag = GER OR = { AND = { is_historical_focus_on = yes OR = { NOT = { has_dlc = "Waking the Tiger" } has_game_rule = { rule = GER_ai_behavior option = DEFAULT } } } has_country_flag = GER_AI_RANDOM_FASCIST has_game_rule = { rule = GER_ai_behavior option = FASCIST } } } set_country_flag = rq_as_59  }
if = { limit = { has_country_flag = rq_as_59 OR = { OR = { SWE = { has_government = communism } SOV = { NOT = { has_government = communism } } ENG = { NOT = { has_government = democratic } } any_country_with_original_tag = { original_tag_to_check = HUN has_completed_focus = HUN_invite_the_habsburg_prince } AND = { OR = { has_completed_focus = GER_anschluss AUS = { is_subject_of = CZE } CZE = { has_war = no has_full_control_of_state = 4 has_full_control_of_state = 152 has_full_control_of_state = 153 has_full_control_of_state = 848 has_full_control_of_state = 975 } } CZE = { OR = { is_in_faction = yes AND = { is_major = yes has_completed_focus = CZE_appeal_to_the_castle } AND = { is_major = yes has_completed_focus = CZE_form_a_federation } AND = { is_major = yes has_completed_focus = CZE_expand_the_communist_press } } NOT = { has_war_with = ROOT is_subject_of = ROOT } } } any_country_with_original_tag = { original_tag_to_check = FRA OR = { has_completed_focus = FRA_utilize_the_leagues has_completed_focus = FRA_invite_communist_ministers has_completed_focus = FRA_leftist_rhetoric has_completed_focus = FRA_right_wing_rhetoric } } any_country_with_original_tag = { original_tag_to_check = USA OR = { has_completed_focus = USA_war_plan_red has_completed_focus = USA_war_plan_white } } is_subject = yes has_government = democratic has_government = communism } NOT = { original_tag = GER } } } clr_country_flag = rq_as_59 }
if = { limit = { original_tag = HUN has_dlc = "Death or Dishonor" NOT = { has_dlc = "Gotterdammerung" } OR = { has_country_flag = HUN_AI_RANDOM_AUSTRIA_HUNGARY has_game_rule = { rule = HUN_ai_behavior option = AUSTRIA_HUNGARY } } } set_country_flag = rq_as_60 } else = { clr_country_flag = rq_as_60 }
if = { limit = { original_tag = HUN has_dlc = "Death or Dishonor" NOT = { has_dlc = "Gotterdammerung" } OR = { has_country_flag = HUN_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = HUN_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_61 } else = { clr_country_flag = rq_as_61 }
if = { limit = { original_tag = HUN has_dlc = "Death or Dishonor" NOT = { has_dlc = "Gotterdammerung" } OR = { has_country_flag = HUN_AI_RANDOM_FASCIST_ALTERNATE has_game_rule = { rule = HUN_ai_behavior option = FASCIST_ALTERNATE } } } set_country_flag = rq_as_62 } else = { clr_country_flag = rq_as_62 }
if = { limit = { original_tag = HUN has_dlc = "Death or Dishonor" NOT = { has_dlc = "Gotterdammerung" } OR = { has_country_flag = HUN_AI_RANDOM_COMMUNIST has_game_rule = { rule = HUN_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_63 } else = { clr_country_flag = rq_as_63 }
if = { limit = { original_tag = HUN has_dlc = "Death or Dishonor" NOT = { has_dlc = "Gotterdammerung" } OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = HUN_ai_behavior option = DEFAULT } } has_country_flag = HUN_AI_RANDOM_FASCIST_HISTORICAL has_game_rule = { rule = HUN_ai_behavior option = FASCIST_HISTORICAL } } } set_country_flag = rq_as_64 } else = { clr_country_flag = rq_as_64 }
if = { limit = { NOT = { has_country_flag = rq_as_65 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_AUSTRIA_HUNGARY has_game_rule = { rule = HUN_ai_behavior option = AUSTRIA_HUNGARY } } } set_country_flag = rq_as_65  }
if = { limit = { has_country_flag = rq_as_65 OR = { OR = { AUS = { has_completed_focus = AUS_reinstate_the_imperial_council } AUS = { AND = { is_ai = no has_completed_focus = AUS_austria_against_fascism } } } is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_65 }
if = { limit = { NOT = { has_country_flag = rq_as_66 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = HUN_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_66  }
if = { limit = { has_country_flag = rq_as_66 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_66 }
if = { limit = { NOT = { has_country_flag = rq_as_67 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_FASCIST_ALTERNATE has_game_rule = { rule = HUN_ai_behavior option = FASCIST_ALTERNATE } } } set_country_flag = rq_as_67  }
if = { limit = { has_country_flag = rq_as_67 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_67 }
if = { limit = { NOT = { has_country_flag = rq_as_68 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_COMMUNIST has_game_rule = { rule = HUN_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_68  }
if = { limit = { has_country_flag = rq_as_68 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_68 }
if = { limit = { NOT = { has_country_flag = rq_as_69 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_RESTORE_THE_SOCIALIST_REPUBLIC has_game_rule = { rule = HUN_ai_behavior option = RESTORE_THE_SOCIALIST_REPUBLIC } } } set_country_flag = rq_as_69  }
if = { limit = { has_country_flag = rq_as_69 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_69 }
if = { limit = { NOT = { has_country_flag = rq_as_70 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_ARROW_CROSS_MOVEMENT has_game_rule = { rule = HUN_ai_behavior option = ARROW_CROSS_MOVEMENT } } } set_country_flag = rq_as_70  }
if = { limit = { has_country_flag = rq_as_70 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_70 }
if = { limit = { NOT = { has_country_flag = rq_as_71 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_REPUBLICAN_DEMOCRACY has_game_rule = { rule = HUN_ai_behavior option = REPUBLICAN_DEMOCRACY } } } set_country_flag = rq_as_71  }
if = { limit = { has_country_flag = rq_as_71 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_71 }
if = { limit = { NOT = { has_country_flag = rq_as_72 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_REPUBLICAN_DEMOCRACY_EXPANSIONIST has_game_rule = { rule = HUN_ai_behavior option = REPUBLICAN_DEMOCRACY_EXPANSIONIST } } } set_country_flag = rq_as_72  }
if = { limit = { has_country_flag = rq_as_72 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_72 }
if = { limit = { NOT = { has_country_flag = rq_as_73 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_FASCIST_KING has_game_rule = { rule = HUN_ai_behavior option = FASCIST_KING } } } set_country_flag = rq_as_73  }
if = { limit = { has_country_flag = rq_as_73 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_73 }
if = { limit = { NOT = { has_country_flag = rq_as_74 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_HABSBURG_HUNGARY has_game_rule = { rule = HUN_ai_behavior option = HABSBURG_HUNGARY } } } set_country_flag = rq_as_74  }
if = { limit = { has_country_flag = rq_as_74 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_74 }
if = { limit = { NOT = { has_country_flag = rq_as_75 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { has_country_flag = HUN_AI_RANDOM_HORTHYIST_KING_HUNGARY has_game_rule = { rule = HUN_ai_behavior option = HORTHYIST_KING_HUNGARY } } } set_country_flag = rq_as_75  }
if = { limit = { has_country_flag = rq_as_75 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_75 }
if = { limit = { NOT = { has_country_flag = rq_as_76 } original_tag = HUN has_dlc = "Gotterdammerung" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = HUN_ai_behavior option = DEFAULT } } has_country_flag = HUN_AI_RANDOM_FASCIST_HISTORICAL has_game_rule = { rule = HUN_ai_behavior option = FASCIST_HISTORICAL } } } set_country_flag = rq_as_76  }
if = { limit = { has_country_flag = rq_as_76 OR = { is_subject = yes NOT = { original_tag = HUN has_dlc = "Gotterdammerung" } } } clr_country_flag = rq_as_76 }
if = { limit = { original_tag = LAT has_dlc = "No Step Back" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = LAT_ai_behavior option = FASCIST } } has_country_flag = LAT_AI_RANDOM_FASCIST has_game_rule = { rule = LAT_ai_behavior option = FASCIST } } } set_country_flag = rq_as_77 } else = { clr_country_flag = rq_as_77 }
if = { limit = { original_tag = LAT has_dlc = "No Step Back" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = LAT_ai_behavior option = DEFAULT } } has_country_flag = LAT_AI_RANDOM_HISTORICAL has_game_rule = { rule = LAT_ai_behavior option = HISTORICAL } } } set_country_flag = rq_as_78 } else = { clr_country_flag = rq_as_78 }
if = { limit = {  original_tag = LAT has_dlc = "No Step Back" OR = { has_country_flag = LAT_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = LAT_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_79 } else = { clr_country_flag = rq_as_79 }
if = { limit = { original_tag = LIT has_dlc = "No Step Back" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = LIT_ai_behavior option = FASCIST } } has_country_flag = LIT_AI_RANDOM_FASCIST has_game_rule = { rule = LIT_ai_behavior option = FASCIST } } } set_country_flag = rq_as_80 } else = { clr_country_flag = rq_as_80 }
if = { limit = { original_tag = LIT has_dlc = "No Step Back" OR = { has_country_flag = LIT_AI_RANDOM_MONARCHY has_game_rule = { rule = LIT_ai_behavior option = MONARCHIST } } } set_country_flag = rq_as_81 } else = { clr_country_flag = rq_as_81 }
if = { limit = { original_tag = LIT has_dlc = "No Step Back" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = LIT_ai_behavior option = DEFAULT } } has_country_flag = LIT_AI_RANDOM_HISTORICAL has_game_rule = { rule = LIT_ai_behavior option = HISTORICAL } } } set_country_flag = rq_as_82 } else = { clr_country_flag = rq_as_82 }
if = { limit = { original_tag = LIT has_dlc = "No Step Back" OR = { has_country_flag = LIT_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = LIT_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_83 } else = { clr_country_flag = rq_as_83 }
if = { limit = { NOT = { has_country_flag = rq_as_84 } original_tag = MAN has_dlc = "No Compromise, No Surrender" OR = { has_country_flag = MAN_AI_RANDOM_INDEPENDENCE_FAS has_country_flag = MAN_AI_RANDOM_INDEPENDENCE_NEU has_country_flag = MAN_AI_RANDOM_INDEPENDENCE_DEM has_country_flag = MAN_AI_RANDOM_INDEPENDENCE_COM is_subject = no has_game_rule = { rule = MAN_ai_behavior option = INDEPENDENCE_FAS } has_game_rule = { rule = MAN_ai_behavior option = INDEPENDENCE_DEM } has_game_rule = { rule = MAN_ai_behavior option = INDEPENDENCE_NEU } has_game_rule = { rule = MAN_ai_behavior option = INDEPENDENCE_COM } } } set_country_flag = rq_as_84  }
if = { limit = { has_country_flag = rq_as_84 OR = { has_completed_focus = MAN_assertiveness NOT = { original_tag = MAN has_dlc = "No Compromise, No Surrender" } } } clr_country_flag = rq_as_84 }
if = { limit = { original_tag = MAN has_dlc = "No Compromise, No Surrender" OR = { has_country_flag = MAN_AI_RANDOM_INDEPENDENCE_FAS has_game_rule = { rule = MAN_ai_behavior option = INDEPENDENCE_FAS } } } set_country_flag = rq_as_85 } else = { clr_country_flag = rq_as_85 }
if = { limit = { original_tag = MAN has_dlc = "No Compromise, No Surrender" OR = { has_country_flag = MAN_AI_RANDOM_INDEPENDENCE_NEU has_game_rule = { rule = MAN_ai_behavior option = INDEPENDENCE_NEU } } } set_country_flag = rq_as_86 } else = { clr_country_flag = rq_as_86 }
if = { limit = { original_tag = MAN has_dlc = "No Compromise, No Surrender" OR = { has_country_flag = MAN_AI_RANDOM_INDEPENDENCE_COM has_game_rule = { rule = MAN_ai_behavior option = INDEPENDENCE_COM } } } set_country_flag = rq_as_87 } else = { clr_country_flag = rq_as_87 }
if = { limit = { original_tag = MAN has_dlc = "No Compromise, No Surrender" OR = { has_country_flag = MAN_AI_RANDOM_INDEPENDENCE_DEM has_game_rule = { rule = MAN_ai_behavior option = INDEPENDENCE_DEM } } } set_country_flag = rq_as_88 } else = { clr_country_flag = rq_as_88 }
if = { limit = { NOT = { has_country_flag = rq_as_89 } original_tag = MAN NOT = { has_dlc = "No Compromise, No Surrender" } OR = { has_country_flag = MAN_AI_RANDOM_INDEPENDENCE is_subject = no has_game_rule = { rule = MAN_ai_behavior option = INDEPENDENCE } } } set_country_flag = rq_as_89  }
if = { limit = { has_country_flag = rq_as_89 OR = { has_completed_focus = MAN_assertiveness NOT = { original_tag = MAN NOT = { has_dlc = "No Compromise, No Surrender" } } } } clr_country_flag = rq_as_89 }
if = { limit = { NOT = { has_country_flag = rq_as_90 } original_tag = MAN NOT = { has_dlc = "No Compromise, No Surrender" } has_completed_focus = MAN_assertiveness } set_country_flag = rq_as_90  }
if = { limit = { has_country_flag = rq_as_90 OR = { always = no NOT = { original_tag = MAN NOT = { has_dlc = "No Compromise, No Surrender" } } } } clr_country_flag = rq_as_90 }
if = { limit = { NOT = { has_country_flag = rq_as_91 } original_tag = MAN NOT = { has_dlc = "No Compromise, No Surrender" } has_completed_focus = MAN_independence_war not = { has_war_with = JAP } is_subject = no } set_country_flag = rq_as_91  }
if = { limit = { has_country_flag = rq_as_91 OR = { always = no NOT = { original_tag = MAN NOT = { has_dlc = "No Compromise, No Surrender" } } } } clr_country_flag = rq_as_91 }
if = { limit = { original_tag = NZL has_dlc = "Together for Victory" OR = { has_country_flag = NZL_AI_RANDOM_DEMOCRATIC_ALTERNATE has_game_rule = { rule = NZL_ai_behavior option = DEMOCRATIC_ALTERNATE } } } set_country_flag = rq_as_92 } else = { clr_country_flag = rq_as_92 }
if = { limit = { original_tag = NZL has_dlc = "Together for Victory" OR = { has_country_flag = NZL_AI_RANDOM_FASCIST has_game_rule = { rule = NZL_ai_behavior option = FASCIST } } } set_country_flag = rq_as_93 } else = { clr_country_flag = rq_as_93 }
if = { limit = { original_tag = NZL has_dlc = "Together for Victory" OR = { has_country_flag = NZL_AI_RANDOM_COMMUNIST has_game_rule = { rule = NZL_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_94 } else = { clr_country_flag = rq_as_94 }
if = { limit = { NOT = { has_country_flag = rq_as_95 } original_tag = NZL has_dlc = "Together for Victory" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = NZL_ai_behavior option = DEFAULT } } has_country_flag = NZL_AI_RANDOM_DEMOCRATIC_HISTORICAL has_game_rule = { rule = NZL_ai_behavior option = DEMOCRATIC_HISTORICAL } has_country_flag = britain_enforced_our_loyalty } } set_country_flag = rq_as_95  }
if = { limit = { has_country_flag = rq_as_95 OR = { is_subject = no NOT = { original_tag = NZL has_dlc = "Together for Victory" } } } clr_country_flag = rq_as_95 }
if = { limit = { NOT = { has_country_flag = rq_as_96 } OR = { original_tag = PRC is_chinese_warlord = yes } NOT = { has_dlc = "No Compromise, No Surrender" } OR = { original_tag = PRC AND = { is_chinese_warlord = yes has_focus_tree = china_communist_focus } } } set_country_flag = rq_as_96  }
if = { limit = { has_country_flag = rq_as_96 OR = { num_of_factories < 35 NOT = { OR = { original_tag = PRC is_chinese_warlord = yes } NOT = { has_dlc = "No Compromise, No Surrender" } } } } clr_country_flag = rq_as_96 }
if = { limit = { original_tag = RAJ has_dlc = "Graveyard of Empires" OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_UNITED has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_UNITED } } } set_country_flag = rq_as_97 } else = { clr_country_flag = rq_as_97 }
if = { limit = { original_tag = RAJ has_dlc = "Graveyard of Empires" OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_BOSE has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_FASCISM_BOSE } } } set_country_flag = rq_as_98 } else = { clr_country_flag = rq_as_98 }
if = { limit = { original_tag = RAJ has_dlc = "Graveyard of Empires" OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_HINDUTVA has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_FASCISM_HINDUTVA } } } set_country_flag = rq_as_99 } else = { clr_country_flag = rq_as_99 }
if = { limit = { original_tag = RAJ has_dlc = "Graveyard of Empires" OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_EAST_INDIA_COMPANY has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_EAST_INDIA_COMPANY } } } set_country_flag = rq_as_100 } else = { clr_country_flag = rq_as_100 }
if = { limit = { original_tag = RAJ has_dlc = "Graveyard of Empires" OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_MUGHAL has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_MUGHAL } } } set_country_flag = rq_as_101 } else = { clr_country_flag = rq_as_101 }
if = { limit = { original_tag = RAJ has_dlc = "Graveyard of Empires" OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM } } } set_country_flag = rq_as_102 } else = { clr_country_flag = rq_as_102 }
if = { limit = { original_tag = RAJ has_dlc = "Graveyard of Empires" OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM_URBAN has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM_URBAN } } } set_country_flag = rq_as_103 } else = { clr_country_flag = rq_as_103 }
if = { limit = { original_tag = RAJ has_dlc = "Graveyard of Empires" OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_LOYALTY has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_LOYALTY } } } set_country_flag = rq_as_104 } else = { clr_country_flag = rq_as_104 }
if = { limit = { original_tag = RAJ has_dlc = "Graveyard of Empires" OR = { has_country_flag = ENG_rejected_eic AND = { is_historical_focus_on = yes has_game_rule = { rule = RAJ_ai_behavior option = DEFAULT } } has_country_flag = RAJ_AI_RANDOM_DEMOCRATIC_HISTORICAL has_game_rule = { rule = RAJ_ai_behavior option = GOE_HISTORICAL } has_country_flag = britain_enforced_our_loyalty } } set_country_flag = rq_as_105 } else = { clr_country_flag = rq_as_105 }
if = { limit = { original_tag = RAJ has_dlc = "Together for Victory" NOT = { has_dlc = "Graveyard of Empires" } OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = RAJ_ai_behavior option = DEFAULT } } has_country_flag = RAJ_AI_RANDOM_COMMUNIST has_game_rule = { rule = RAJ_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_106 } else = { clr_country_flag = rq_as_106 }
if = { limit = { original_tag = RAJ has_dlc = "Together for Victory" NOT = { has_dlc = "Graveyard of Empires" } OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = RAJ_ai_behavior option = DEFAULT } } has_country_flag = RAJ_AI_RANDOM_FASCIST has_game_rule = { rule = RAJ_ai_behavior option = FASCIST } } } set_country_flag = rq_as_107 } else = { clr_country_flag = rq_as_107 }
if = { limit = { NOT = { has_country_flag = rq_as_108 } original_tag = RAJ has_dlc = "Together for Victory" NOT = { has_dlc = "Graveyard of Empires" } OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = RAJ_ai_behavior option = DEFAULT } } has_country_flag = RAJ_AI_RANDOM_DEMOCRATIC_HISTORICAL has_game_rule = { rule = RAJ_ai_behavior option = DEMOCRATIC_HISTORICAL } has_country_flag = britain_enforced_our_loyalty } } set_country_flag = rq_as_108  }
if = { limit = { has_country_flag = rq_as_108 OR = { is_subject = no NOT = { original_tag = RAJ has_dlc = "Together for Victory" NOT = { has_dlc = "Graveyard of Empires" } } } } clr_country_flag = rq_as_108 }
if = { limit = { original_tag = ROM has_dlc = "Death or Dishonor" OR = { has_country_flag = ROM_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = ROM_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_109 } else = { clr_country_flag = rq_as_109 }
if = { limit = { NOT = { has_country_flag = rq_as_110 } original_tag = ROM has_dlc = "Death or Dishonor" OR = { has_country_flag = ROM_AI_RANDOM_BALKAN_DOMINANCE has_game_rule = { rule = ROM_ai_behavior option = BALKAN_DOMINANCE } } } set_country_flag = rq_as_110  }
if = { limit = { has_country_flag = rq_as_110 OR = { is_subject = yes NOT = { original_tag = ROM has_dlc = "Death or Dishonor" } } } clr_country_flag = rq_as_110 }
if = { limit = { NOT = { has_country_flag = rq_as_111 } original_tag = ROM has_dlc = "Death or Dishonor" OR = { has_country_flag = ROM_AI_RANDOM_COMMUNIST has_game_rule = { rule = ROM_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_111  }
if = { limit = { has_country_flag = rq_as_111 OR = { is_subject = yes OVERLORD = { not = { has_government = communism } } NOT = { original_tag = ROM has_dlc = "Death or Dishonor" } } } clr_country_flag = rq_as_111 }
if = { limit = { original_tag = ROM has_dlc = "Death or Dishonor" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = ROM_ai_behavior option = DEFAULT } } has_country_flag = ROM_AI_RANDOM_FASCIST_HISTORICAL has_game_rule = { rule = ROM_ai_behavior option = FASCIST_HISTORICAL } } } set_country_flag = rq_as_112 } else = { clr_country_flag = rq_as_112 }
if = { limit = { original_tag = SAF has_dlc = "Together for Victory" OR = { has_country_flag = SAF_AI_RANDOM_DEMOCRATIC_ALTERNATE has_game_rule = { rule = SAF_ai_behavior option = DEMOCRATIC_ALTERNATE } } } set_country_flag = rq_as_113 } else = { clr_country_flag = rq_as_113 }
if = { limit = { original_tag = SAF has_dlc = "Together for Victory" OR = { has_country_flag = SAF_AI_RANDOM_COMMUNIST has_game_rule = { rule = SAF_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_114 } else = { clr_country_flag = rq_as_114 }
if = { limit = { NOT = { has_country_flag = rq_as_115 } original_tag = SAF has_dlc = "Together for Victory" OR = { has_country_flag = SAF_AI_RANDOM_FASCIST has_game_rule = { rule = SAF_ai_behavior option = FASCIST } } } set_country_flag = rq_as_115  }
if = { limit = { has_country_flag = rq_as_115 OR = { GER = { not = { has_government = fascism } } NOT = { original_tag = SAF has_dlc = "Together for Victory" } } } clr_country_flag = rq_as_115 }
if = { limit = { original_tag = SAF has_dlc = "Together for Victory" OR = { has_country_flag = SAF_AI_RANDOM_FASCIST has_game_rule = { rule = SAF_ai_behavior option = FASCIST } } GER = { not = { has_government = fascism } } } set_country_flag = rq_as_116 } else = { clr_country_flag = rq_as_116 }
if = { limit = { original_tag = SAF has_dlc = "Together for Victory" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = SAF_ai_behavior option = DEFAULT } } has_country_flag = SAF_AI_RANDOM_DEMOCRATIC_HISTORICAL has_game_rule = { rule = SAF_ai_behavior option = DEMOCRATIC_HISTORICAL } has_country_flag = britain_enforced_our_loyalty } } set_country_flag = rq_as_117 } else = { clr_country_flag = rq_as_117 }
if = { limit = { original_tag = SIA has_dlc = "Thunder at Our Gates" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = SIA_ai_behavior option = DEFAULT } } has_country_flag = SIA_AI_RANDOM_HISTORICAL has_game_rule = { rule = SIA_ai_behavior option = HISTORICAL } } } set_country_flag = rq_as_118 } else = { clr_country_flag = rq_as_118 }
if = { limit = { original_tag = YUG has_dlc = "Death or Dishonor" OR = { has_country_flag = YUG_AI_RANDOM_COMMUNIST has_game_rule = { rule = YUG_ai_behavior option = COMMUNIST } } } set_country_flag = rq_as_119 } else = { clr_country_flag = rq_as_119 }
if = { limit = { original_tag = YUG has_dlc = "Death or Dishonor" OR = { has_country_flag = YUG_AI_RANDOM_DEMOCRATIC has_game_rule = { rule = YUG_ai_behavior option = DEMOCRATIC } } } set_country_flag = rq_as_120 } else = { clr_country_flag = rq_as_120 }
if = { limit = { original_tag = YUG has_dlc = "Death or Dishonor" OR = { has_country_flag = YUG_AI_RANDOM_FASCIST has_game_rule = { rule = YUG_ai_behavior option = FASCIST } } } set_country_flag = rq_as_121 } else = { clr_country_flag = rq_as_121 }
if = { limit = { original_tag = YUG has_dlc = "Death or Dishonor" OR = { AND = { is_historical_focus_on = yes has_game_rule = { rule = YUG_ai_behavior option = DEFAULT } } has_country_flag = YUG_AI_RANDOM_HISTORICAL has_game_rule = { rule = YUG_ai_behavior option = HISTORICAL } } } set_country_flag = rq_as_122 } else = { clr_country_flag = rq_as_122 }
set_variable = { rq_apf_aa_cannon_1 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_aa_cannon_1 = 250 } }
set_variable = { rq_apf_aa_cannon_2 = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_aa_cannon_2 = 250 } }
set_variable = { rq_apf_aa_hmg = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_aa_hmg = 250 } }
set_variable = { rq_apf_advanced_heavy_tank_chassis = 0 }
if = { limit = { has_country_flag = rq_as_15 } add_to_variable = { rq_apf_advanced_heavy_tank_chassis = 200 } }
set_variable = { rq_apf_advanced_infantry_weapons = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_advanced_infantry_weapons = 150 } }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_advanced_infantry_weapons = 150 } }
set_variable = { rq_apf_advanced_medium_tank_chassis = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_advanced_medium_tank_chassis = 250 } }
set_variable = { rq_apf_advanced_small_airframe = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_advanced_small_airframe = 250 } }
set_variable = { rq_apf_air_torpedoe_1 = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_air_torpedoe_1 = -500 } }
set_variable = { rq_apf_antiair1 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_antiair1 = 250 } }
set_variable = { rq_apf_antiair2 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_antiair2 = 250 } }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_antiair2 = 250 } }
set_variable = { rq_apf_antiair3 = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_antiair3 = 250 } }
set_variable = { rq_apf_antiair4 = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_antiair4 = 250 } }
set_variable = { rq_apf_antitank1 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_antitank1 = 250 } }
set_variable = { rq_apf_antitank2 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_antitank2 = 250 } }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_antitank2 = 250 } }
set_variable = { rq_apf_antitank3 = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_antitank3 = 250 } }
set_variable = { rq_apf_antitank4 = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_antitank4 = 250 } }
set_variable = { rq_apf_artillery1 = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_artillery1 = 250 } }
set_variable = { rq_apf_artillery2 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_artillery2 = 250 } }
set_variable = { rq_apf_artillery3 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_artillery3 = 250 } }
set_variable = { rq_apf_artillery4 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_artillery4 = 250 } }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_artillery4 = 250 } }
set_variable = { rq_apf_atomic_research = 0 }
if = { limit = { has_country_flag = rq_as_8 } add_to_variable = { rq_apf_atomic_research = 200 } }
if = { limit = { has_country_flag = rq_as_16 } add_to_variable = { rq_apf_atomic_research = 2000 } }
set_variable = { rq_apf_basic_heavy_tank = 0 }
if = { limit = { has_country_flag = rq_as_13 } add_to_variable = { rq_apf_basic_heavy_tank = 200 } }
set_variable = { rq_apf_basic_heavy_tank_chassis = 0 }
if = { limit = { has_country_flag = rq_as_13 } add_to_variable = { rq_apf_basic_heavy_tank_chassis = 200 } }
set_variable = { rq_apf_basic_medium_tank = 0 }
if = { limit = { has_country_flag = rq_as_11 } add_to_variable = { rq_apf_basic_medium_tank = 200 } }
set_variable = { rq_apf_basic_medium_tank_chassis = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_basic_medium_tank_chassis = 500 } }
if = { limit = { has_country_flag = rq_as_11 } add_to_variable = { rq_apf_basic_medium_tank_chassis = 200 } }
set_variable = { rq_apf_basic_small_airframe = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_basic_small_airframe = 250 } }
set_variable = { rq_apf_cavity_magnatron = 0 }
if = { limit = { has_country_flag = rq_as_4 } add_to_variable = { rq_apf_cavity_magnatron = 2000 } }
set_variable = { rq_apf_construction1 = 0 }
if = { limit = { has_country_flag = rq_as_8 } add_to_variable = { rq_apf_construction1 = 50 } }
set_variable = { rq_apf_construction2 = 0 }
if = { limit = { has_country_flag = rq_as_8 } add_to_variable = { rq_apf_construction2 = 75 } }
set_variable = { rq_apf_construction3 = 0 }
if = { limit = { has_country_flag = rq_as_8 } add_to_variable = { rq_apf_construction3 = 100 } }
set_variable = { rq_apf_construction4 = 0 }
if = { limit = { has_country_flag = rq_as_8 } add_to_variable = { rq_apf_construction4 = 300 } }
set_variable = { rq_apf_engines_2 = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_engines_2 = 250 } }
set_variable = { rq_apf_engines_3 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_engines_3 = 250 } }
set_variable = { rq_apf_engines_4 = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_engines_4 = 250 } }
set_variable = { rq_apf_improved_computing_machine = 0 }
if = { limit = { has_country_flag = rq_as_8 } add_to_variable = { rq_apf_improved_computing_machine = 200 } }
set_variable = { rq_apf_improved_heavy_tank = 0 }
if = { limit = { has_country_flag = rq_as_14 } add_to_variable = { rq_apf_improved_heavy_tank = 200 } }
set_variable = { rq_apf_improved_heavy_tank_chassis = 0 }
if = { limit = { has_country_flag = rq_as_14 } add_to_variable = { rq_apf_improved_heavy_tank_chassis = 200 } }
set_variable = { rq_apf_improved_infantry_weapons = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_improved_infantry_weapons = 150 } }
set_variable = { rq_apf_improved_infantry_weapons_2 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_improved_infantry_weapons_2 = 150 } }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_improved_infantry_weapons_2 = 150 } }
set_variable = { rq_apf_improved_light_tank_chassis = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_improved_light_tank_chassis = 250 } }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_improved_light_tank_chassis = 250 } }
set_variable = { rq_apf_improved_medium_tank = 0 }
if = { limit = { has_country_flag = rq_as_12 } add_to_variable = { rq_apf_improved_medium_tank = 200 } }
set_variable = { rq_apf_improved_medium_tank_chassis = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_improved_medium_tank_chassis = 250 } }
if = { limit = { has_country_flag = rq_as_12 } add_to_variable = { rq_apf_improved_medium_tank_chassis = 250 } }
set_variable = { rq_apf_improved_small_airframe = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_improved_small_airframe = 250 } }
set_variable = { rq_apf_infantry_at = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_infantry_at = 150 } }
set_variable = { rq_apf_infantry_weapons2 = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_infantry_weapons2 = 150 } }
set_variable = { rq_apf_interwar_artillery = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_interwar_artillery = 250 } }
set_variable = { rq_apf_mechanised_infantry = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_mechanised_infantry = 250 } }
set_variable = { rq_apf_motorised_infantry = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_motorised_infantry = 1000 } }
set_variable = { rq_apf_mtg_landing_craft = 0 }
if = { limit = { has_country_flag = rq_as_0 } add_to_variable = { rq_apf_mtg_landing_craft = 100 } }
if = { limit = { has_country_flag = rq_as_9 } add_to_variable = { rq_apf_mtg_landing_craft = 100 } }
set_variable = { rq_apf_paratroopers = 0 }
if = { limit = { has_country_flag = rq_as_2 } add_to_variable = { rq_apf_paratroopers = 100 } }
set_variable = { rq_apf_rubber_processing = 0 }
if = { limit = { has_country_flag = rq_as_1 } add_to_variable = { rq_apf_rubber_processing = 100 } }
if = { limit = { has_country_flag = rq_as_17 } add_to_variable = { rq_apf_rubber_processing = 100 } }
set_variable = { rq_apf_super_heavy_tank_chassis = 0 }
if = { limit = { has_country_flag = rq_as_3 } add_to_variable = { rq_apf_super_heavy_tank_chassis = 100 } }
set_variable = { rq_apf_support_weapons = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_support_weapons = 100 } }
set_variable = { rq_apf_support_weapons2 = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_support_weapons2 = 150 } }
set_variable = { rq_apf_support_weapons3 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_support_weapons3 = 150 } }
set_variable = { rq_apf_support_weapons4 = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_support_weapons4 = 150 } }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_support_weapons4 = 150 } }
set_variable = { rq_apf_synth_oil_experiments = 0 }
if = { limit = { has_country_flag = rq_as_1 } add_to_variable = { rq_apf_synth_oil_experiments = 100 } }
if = { limit = { has_country_flag = rq_as_17 } add_to_variable = { rq_apf_synth_oil_experiments = 100 } }
set_variable = { rq_apf_tech_engineers = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_tech_engineers = 150 } }
set_variable = { rq_apf_tech_field_hospital = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_tech_field_hospital = 150 } }
set_variable = { rq_apf_tech_logistics_company = 0 }
if = { limit = { has_country_flag = rq_as_7 } add_to_variable = { rq_apf_tech_logistics_company = 150 } }
set_variable = { rq_apf_tech_maintenance_company = 0 }
if = { limit = { has_country_flag = rq_as_6 } add_to_variable = { rq_apf_tech_maintenance_company = 300 } }
if = { limit = { has_country_flag = rq_as_18 } add_to_variable = { rq_apf_tech_maintenance_company = 400 } }
set_variable = { rq_apf_tech_maintenance_company2 = 0 }
if = { limit = { has_country_flag = rq_as_18 } add_to_variable = { rq_apf_tech_maintenance_company2 = 400 } }
set_variable = { rq_apf_tech_mountaineers = 0 }
if = { limit = { has_country_flag = rq_as_10 } add_to_variable = { rq_apf_tech_mountaineers = 2e+06 } }
set_variable = { rq_apf_tech_recon = 0 }
if = { limit = { has_country_flag = rq_as_5 } add_to_variable = { rq_apf_tech_recon = 150 } }
set_variable = { rq_apn_air_equipment = 0 }
if = { limit = { has_country_flag = rq_as_29 } add_to_variable = { rq_apn_air_equipment = 0 } }
if = { limit = { has_country_flag = rq_as_35 } add_to_variable = { rq_apn_air_equipment = 0 } }
if = { limit = { has_country_flag = rq_as_36 } add_to_variable = { rq_apn_air_equipment = 0 } }
if = { limit = { has_country_flag = rq_as_37 } add_to_variable = { rq_apn_air_equipment = 0 } }
if = { limit = { has_country_flag = rq_as_38 } add_to_variable = { rq_apn_air_equipment = 0 } }
if = { limit = { has_country_flag = rq_as_90 } add_to_variable = { rq_apn_air_equipment = 0 } }
if = { limit = { has_country_flag = rq_as_109 } add_to_variable = { rq_apn_air_equipment = 5 } }
if = { limit = { has_country_flag = rq_as_110 } add_to_variable = { rq_apn_air_equipment = 5 } }
if = { limit = { has_country_flag = rq_as_111 } add_to_variable = { rq_apn_air_equipment = 5 } }
set_variable = { rq_apn_armor = 0 }
if = { limit = { has_country_flag = rq_as_35 } add_to_variable = { rq_apn_armor = 0 } }
if = { limit = { has_country_flag = rq_as_36 } add_to_variable = { rq_apn_armor = 0 } }
if = { limit = { has_country_flag = rq_as_37 } add_to_variable = { rq_apn_armor = 0 } }
if = { limit = { has_country_flag = rq_as_38 } add_to_variable = { rq_apn_armor = 0 } }
if = { limit = { has_country_flag = rq_as_39 } add_to_variable = { rq_apn_armor = 25 } }
if = { limit = { has_country_flag = rq_as_42 } add_to_variable = { rq_apn_armor = 25 } }
if = { limit = { has_country_flag = rq_as_43 } add_to_variable = { rq_apn_armor = 25 } }
if = { limit = { has_country_flag = rq_as_44 } add_to_variable = { rq_apn_armor = 25 } }
if = { limit = { has_country_flag = rq_as_47 } add_to_variable = { rq_apn_armor = 25 } }
if = { limit = { has_country_flag = rq_as_48 } add_to_variable = { rq_apn_armor = 25 } }
if = { limit = { has_country_flag = rq_as_60 } add_to_variable = { rq_apn_armor = 15 } }
if = { limit = { has_country_flag = rq_as_90 } add_to_variable = { rq_apn_armor = 0 } }
set_variable = { rq_apn_artillery = 0 }
if = { limit = { has_country_flag = rq_as_19 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_20 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_21 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_22 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_23 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_24 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_25 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_26 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_27 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_29 } add_to_variable = { rq_apn_artillery = 15 } }
if = { limit = { has_country_flag = rq_as_31 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_32 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_33 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_34 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_35 } add_to_variable = { rq_apn_artillery = 10 } }
if = { limit = { has_country_flag = rq_as_36 } add_to_variable = { rq_apn_artillery = 10 } }
if = { limit = { has_country_flag = rq_as_37 } add_to_variable = { rq_apn_artillery = 10 } }
if = { limit = { has_country_flag = rq_as_38 } add_to_variable = { rq_apn_artillery = 10 } }
if = { limit = { has_country_flag = rq_as_39 } add_to_variable = { rq_apn_artillery = 18 } }
if = { limit = { has_country_flag = rq_as_40 } add_to_variable = { rq_apn_artillery = 18 } }
if = { limit = { has_country_flag = rq_as_41 } add_to_variable = { rq_apn_artillery = 18 } }
if = { limit = { has_country_flag = rq_as_42 } add_to_variable = { rq_apn_artillery = 18 } }
if = { limit = { has_country_flag = rq_as_43 } add_to_variable = { rq_apn_artillery = 18 } }
if = { limit = { has_country_flag = rq_as_44 } add_to_variable = { rq_apn_artillery = 18 } }
if = { limit = { has_country_flag = rq_as_45 } add_to_variable = { rq_apn_artillery = 18 } }
if = { limit = { has_country_flag = rq_as_46 } add_to_variable = { rq_apn_artillery = 18 } }
if = { limit = { has_country_flag = rq_as_47 } add_to_variable = { rq_apn_artillery = 18 } }
if = { limit = { has_country_flag = rq_as_48 } add_to_variable = { rq_apn_artillery = 17 } }
if = { limit = { has_country_flag = rq_as_49 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_50 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_51 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_52 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_53 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_54 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_55 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_56 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_57 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_58 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_59 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_60 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_61 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_62 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_63 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_64 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_65 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_66 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_67 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_68 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_69 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_70 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_71 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_72 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_73 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_74 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_75 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_76 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_77 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_78 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_79 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_80 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_81 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_82 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_83 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_90 } add_to_variable = { rq_apn_artillery = 15 } }
if = { limit = { has_country_flag = rq_as_91 } add_to_variable = { rq_apn_artillery = 15 } }
if = { limit = { has_country_flag = rq_as_92 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_93 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_94 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_95 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_96 } add_to_variable = { rq_apn_artillery = 15 } }
if = { limit = { has_country_flag = rq_as_97 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_98 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_99 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_100 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_101 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_102 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_103 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_104 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_105 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_106 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_107 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_108 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_109 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_110 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_111 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_112 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_113 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_114 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_115 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_116 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_117 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_118 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_119 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_120 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_121 } add_to_variable = { rq_apn_artillery = 8 } }
if = { limit = { has_country_flag = rq_as_122 } add_to_variable = { rq_apn_artillery = 8 } }
set_variable = { rq_apn_dd_tech = 0 }
if = { limit = { has_country_flag = rq_as_19 } add_to_variable = { rq_apn_dd_tech = 5 } }
if = { limit = { has_country_flag = rq_as_20 } add_to_variable = { rq_apn_dd_tech = 5 } }
if = { limit = { has_country_flag = rq_as_21 } add_to_variable = { rq_apn_dd_tech = 5 } }
if = { limit = { has_country_flag = rq_as_22 } add_to_variable = { rq_apn_dd_tech = 5 } }
if = { limit = { has_country_flag = rq_as_24 } add_to_variable = { rq_apn_dd_tech = 5 } }
if = { limit = { has_country_flag = rq_as_25 } add_to_variable = { rq_apn_dd_tech = 5 } }
if = { limit = { has_country_flag = rq_as_26 } add_to_variable = { rq_apn_dd_tech = 5 } }
if = { limit = { has_country_flag = rq_as_27 } add_to_variable = { rq_apn_dd_tech = 5 } }
set_variable = { rq_apn_electronics = 0 }
if = { limit = { has_country_flag = rq_as_28 } add_to_variable = { rq_apn_electronics = 15 } }
set_variable = { rq_apn_industry = 0 }
if = { limit = { has_country_flag = rq_as_19 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_20 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_21 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_22 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_23 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_24 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_25 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_26 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_27 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_28 } add_to_variable = { rq_apn_industry = 15 } }
if = { limit = { has_country_flag = rq_as_31 } add_to_variable = { rq_apn_industry = 15 } }
if = { limit = { has_country_flag = rq_as_32 } add_to_variable = { rq_apn_industry = 15 } }
if = { limit = { has_country_flag = rq_as_33 } add_to_variable = { rq_apn_industry = 15 } }
if = { limit = { has_country_flag = rq_as_34 } add_to_variable = { rq_apn_industry = 15 } }
if = { limit = { has_country_flag = rq_as_39 } add_to_variable = { rq_apn_industry = 30 } }
if = { limit = { has_country_flag = rq_as_40 } add_to_variable = { rq_apn_industry = 30 } }
if = { limit = { has_country_flag = rq_as_41 } add_to_variable = { rq_apn_industry = 30 } }
if = { limit = { has_country_flag = rq_as_42 } add_to_variable = { rq_apn_industry = 30 } }
if = { limit = { has_country_flag = rq_as_43 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_44 } add_to_variable = { rq_apn_industry = 30 } }
if = { limit = { has_country_flag = rq_as_45 } add_to_variable = { rq_apn_industry = 30 } }
if = { limit = { has_country_flag = rq_as_46 } add_to_variable = { rq_apn_industry = 30 } }
if = { limit = { has_country_flag = rq_as_47 } add_to_variable = { rq_apn_industry = 30 } }
if = { limit = { has_country_flag = rq_as_48 } add_to_variable = { rq_apn_industry = 21 } }
if = { limit = { has_country_flag = rq_as_49 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_50 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_51 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_60 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_61 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_62 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_63 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_64 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_65 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_66 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_67 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_68 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_69 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_70 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_71 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_72 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_73 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_74 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_75 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_76 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_77 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_78 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_79 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_80 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_81 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_82 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_83 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_84 } add_to_variable = { rq_apn_industry = 10 } }
if = { limit = { has_country_flag = rq_as_85 } add_to_variable = { rq_apn_industry = 10 } }
if = { limit = { has_country_flag = rq_as_86 } add_to_variable = { rq_apn_industry = 10 } }
if = { limit = { has_country_flag = rq_as_87 } add_to_variable = { rq_apn_industry = 10 } }
if = { limit = { has_country_flag = rq_as_88 } add_to_variable = { rq_apn_industry = 10 } }
if = { limit = { has_country_flag = rq_as_89 } add_to_variable = { rq_apn_industry = 10 } }
if = { limit = { has_country_flag = rq_as_92 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_93 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_94 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_95 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_97 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_98 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_99 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_100 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_101 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_102 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_103 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_104 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_105 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_106 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_107 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_108 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_109 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_110 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_111 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_112 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_113 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_114 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_115 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_116 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_117 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_118 } add_to_variable = { rq_apn_industry = 20 } }
if = { limit = { has_country_flag = rq_as_119 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_120 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_121 } add_to_variable = { rq_apn_industry = 50 } }
if = { limit = { has_country_flag = rq_as_122 } add_to_variable = { rq_apn_industry = 50 } }
set_variable = { rq_apn_infantry_tech = 0 }
if = { limit = { has_country_flag = rq_as_19 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_20 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_21 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_22 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_23 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_24 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_25 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_26 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_27 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_31 } add_to_variable = { rq_apn_infantry_tech = 50 } }
if = { limit = { has_country_flag = rq_as_32 } add_to_variable = { rq_apn_infantry_tech = 50 } }
if = { limit = { has_country_flag = rq_as_33 } add_to_variable = { rq_apn_infantry_tech = 50 } }
if = { limit = { has_country_flag = rq_as_34 } add_to_variable = { rq_apn_infantry_tech = 50 } }
if = { limit = { has_country_flag = rq_as_39 } add_to_variable = { rq_apn_infantry_tech = 5 } }
if = { limit = { has_country_flag = rq_as_40 } add_to_variable = { rq_apn_infantry_tech = 5 } }
if = { limit = { has_country_flag = rq_as_41 } add_to_variable = { rq_apn_infantry_tech = 5 } }
if = { limit = { has_country_flag = rq_as_42 } add_to_variable = { rq_apn_infantry_tech = 5 } }
if = { limit = { has_country_flag = rq_as_43 } add_to_variable = { rq_apn_infantry_tech = 5 } }
if = { limit = { has_country_flag = rq_as_44 } add_to_variable = { rq_apn_infantry_tech = 5 } }
if = { limit = { has_country_flag = rq_as_45 } add_to_variable = { rq_apn_infantry_tech = 5 } }
if = { limit = { has_country_flag = rq_as_46 } add_to_variable = { rq_apn_infantry_tech = 5 } }
if = { limit = { has_country_flag = rq_as_47 } add_to_variable = { rq_apn_infantry_tech = 5 } }
if = { limit = { has_country_flag = rq_as_48 } add_to_variable = { rq_apn_infantry_tech = 5 } }
if = { limit = { has_country_flag = rq_as_49 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_50 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_51 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_52 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_53 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_54 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_55 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_56 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_57 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_58 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_59 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_60 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_61 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_62 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_63 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_64 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_65 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_66 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_67 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_68 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_69 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_70 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_71 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_72 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_73 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_74 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_75 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_76 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_77 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_78 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_79 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_80 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_81 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_82 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_83 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_92 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_93 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_94 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_95 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_97 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_98 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_99 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_100 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_101 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_102 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_103 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_104 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_105 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_106 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_107 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_108 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_109 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_110 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_111 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_112 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_113 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_114 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_115 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_116 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_117 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_118 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_119 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_120 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_121 } add_to_variable = { rq_apn_infantry_tech = 15 } }
if = { limit = { has_country_flag = rq_as_122 } add_to_variable = { rq_apn_infantry_tech = 15 } }
set_variable = { rq_apn_infantry_weapons = 0 }
if = { limit = { has_country_flag = rq_as_29 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_35 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_36 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_37 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_38 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_52 } add_to_variable = { rq_apn_infantry_weapons = 50 } }
if = { limit = { has_country_flag = rq_as_53 } add_to_variable = { rq_apn_infantry_weapons = 50 } }
if = { limit = { has_country_flag = rq_as_54 } add_to_variable = { rq_apn_infantry_weapons = 50 } }
if = { limit = { has_country_flag = rq_as_55 } add_to_variable = { rq_apn_infantry_weapons = 50 } }
if = { limit = { has_country_flag = rq_as_56 } add_to_variable = { rq_apn_infantry_weapons = 50 } }
if = { limit = { has_country_flag = rq_as_57 } add_to_variable = { rq_apn_infantry_weapons = 50 } }
if = { limit = { has_country_flag = rq_as_58 } add_to_variable = { rq_apn_infantry_weapons = 50 } }
if = { limit = { has_country_flag = rq_as_59 } add_to_variable = { rq_apn_infantry_weapons = 50 } }
if = { limit = { has_country_flag = rq_as_84 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_85 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_86 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_87 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_88 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_89 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_90 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_91 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
if = { limit = { has_country_flag = rq_as_96 } add_to_variable = { rq_apn_infantry_weapons = 15 } }
set_variable = { rq_apn_motorized_equipment = 0 }
if = { limit = { has_country_flag = rq_as_30 } add_to_variable = { rq_apn_motorized_equipment = 15 } }
set_variable = { rq_apn_naval_equipment = 0 }
if = { limit = { has_country_flag = rq_as_31 } add_to_variable = { rq_apn_naval_equipment = 0.25 } }
if = { limit = { has_country_flag = rq_as_32 } add_to_variable = { rq_apn_naval_equipment = 0.25 } }
if = { limit = { has_country_flag = rq_as_33 } add_to_variable = { rq_apn_naval_equipment = 0.25 } }
if = { limit = { has_country_flag = rq_as_34 } add_to_variable = { rq_apn_naval_equipment = 0.25 } }
set_variable = { rq_apn_support_tech = 0 }
if = { limit = { has_country_flag = rq_as_19 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_20 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_21 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_22 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_23 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_24 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_25 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_26 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_27 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_31 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_32 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_33 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_34 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_39 } add_to_variable = { rq_apn_support_tech = 0 } }
if = { limit = { has_country_flag = rq_as_40 } add_to_variable = { rq_apn_support_tech = 10 } }
if = { limit = { has_country_flag = rq_as_41 } add_to_variable = { rq_apn_support_tech = 10 } }
if = { limit = { has_country_flag = rq_as_42 } add_to_variable = { rq_apn_support_tech = 0 } }
if = { limit = { has_country_flag = rq_as_43 } add_to_variable = { rq_apn_support_tech = 0 } }
if = { limit = { has_country_flag = rq_as_44 } add_to_variable = { rq_apn_support_tech = 0 } }
if = { limit = { has_country_flag = rq_as_45 } add_to_variable = { rq_apn_support_tech = 10 } }
if = { limit = { has_country_flag = rq_as_46 } add_to_variable = { rq_apn_support_tech = 10 } }
if = { limit = { has_country_flag = rq_as_47 } add_to_variable = { rq_apn_support_tech = 0 } }
if = { limit = { has_country_flag = rq_as_48 } add_to_variable = { rq_apn_support_tech = 0 } }
if = { limit = { has_country_flag = rq_as_49 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_50 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_51 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_52 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_53 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_54 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_55 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_56 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_57 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_58 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_59 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_60 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_61 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_62 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_63 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_64 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_65 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_66 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_67 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_68 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_69 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_70 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_71 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_72 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_73 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_74 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_75 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_76 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_77 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_78 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_79 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_80 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_81 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_82 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_83 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_92 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_93 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_94 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_95 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_97 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_98 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_99 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_100 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_101 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_102 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_103 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_104 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_105 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_106 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_107 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_108 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_109 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_110 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_111 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_112 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_113 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_114 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_115 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_116 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_117 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_118 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_119 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_120 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_121 } add_to_variable = { rq_apn_support_tech = 6.5 } }
if = { limit = { has_country_flag = rq_as_122 } add_to_variable = { rq_apn_support_tech = 6.5 } }
}
