on_actions = {
	on_startup = {
		effect = {
			if = {
				limit = {
					NOT = { has_global_flag = rt56rp_gr_vanillarestrict_vol_gflag }
					NOT = { has_global_flag = rt56rp_gr_historical_gflag }
				}
				every_country = {
					add_dynamic_modifier = {
						modifier = rt56rp_nonmerc_modifier
					}
				}
			}
		}
	}
	on_release_as_free = {
		effect = {
			if = {
				limit = {
					NOT = { has_global_flag = rt56rp_gr_vanillarestrict_vol_gflag }
					NOT = { has_dynamic_modifier = { modifier = rt56rp_merc_modifier } }	# in case former merc and modifier persists, let them release as merc (avoids headache if annex wasn't intentional, can always use decision themselves)
				}
				ROOT = {
					add_dynamic_modifier = { modifier = rt56rp_nonmerc_modifier }
				}
			}
		}
	}
	on_release_as_puppet = {
		effect = {
			if = {
				limit = {
					NOT = { has_global_flag = rt56rp_gr_vanillarestrict_vol_gflag }
				}
				ROOT = {
					add_dynamic_modifier = { modifier = rt56rp_nonmerc_modifier }
					if = {
						limit = {
							has_dynamic_modifier = { modifier = rt56rp_merc_modifier }
						}
						remove_dynamic_modifier = { modifier = rt56rp_merc_modifier }	# in case former merc, remove modifier if persists
					}
				}
			}
		}
	}
	on_monthly = {
		effect = {
			if = {
				limit = {
					has_global_flag = rt56rp_gr_ruleset_gflag
					NOT = { has_global_flag = rt56rp_merc_on_monthly_disabled_gflag }	# so only fires once per tick, not for every country
					date < 1943.02.01	# stop increasing after 1943
				}
				
				# vol increments biannually
				if = {
					limit = {
						#date > 1937.01.01
						check_variable = { global.rt56rp_merc_tick1 = 24 }
					}
					random_country = {
						add_to_variable = { global.rt56rp_merc_vol_limit = global.rt56rp_merc_vol_inc }			# mercs
						add_to_variable = { global.rt56rp_nonmerc_vol_limit = global.rt56rp_nonmerc_vol_inc }	# non mercs
						set_variable = { global.rt56rp_merc_tick1 = 0 }
					}
				}
				if = {
					limit = { NOT = { check_variable = { global.rt56rp_merc_tick1 = 24 } } }
					random_country = { add_to_variable = { global.rt56rp_merc_tick1 = 1 } }
				}
				
				# air vol increments annually
				if = {
					limit = {
						check_variable = { global.rt56rp_merc_tick2 = 12 }
					}
					random_country = {
						add_to_variable = { global.rt56rp_merc_air_limit = global.rt56rp_merc_air_inc }			# mercs
						add_to_variable = { global.rt56rp_nonmerc_air_limit = global.rt56rp_nonmerc_air_inc }	# non mercs
						set_variable = { global.rt56rp_merc_tick2 = 0 }
					}
				}
				if = {
					limit = { NOT = { check_variable = { global.rt56rp_merc_tick2 = 12 } } }
					random_country = { add_to_variable = { global.rt56rp_merc_tick2 = 1 } }
				}
				
				set_global_flag = {
					flag = rt56rp_merc_on_monthly_disabled_gflag
					days = 5
					value = 1
				}
			}
		}
	}
}