﻿replay_add = {
	scope = country

	ai_is_valid = {
		always = no
	}

	effect = {
		if = {
			limit = {
				NOT = { has_variable = replay_speed }
			}
			set_variable = {
				name = replay_speed
				value = 1
			}
		}
		else_if = {
			limit = {
				var:replay_speed < 14
			}
			change_variable = {
				name = replay_speed
				add = 1
			}
		}
	}
}

replay_max = {
	scope = country

	ai_is_valid = {
		always = no
	}

	effect = {
		set_variable = {
			name = replay_speed
			value = 14
		}
	}
}

replay_max_back = {
	scope = country

	ai_is_valid = {
		always = no
	}

	effect = {
		set_variable = {
			name = replay_speed
			value = -14
		}
	}
}

replay_slow = {
	scope = country

	ai_is_valid = {
		always = no
	}

	effect = {
		if = {
			limit = {
				NOT = { has_variable = replay_speed }
			}
			set_variable = {
				name = replay_speed
				value = -1
			}
		}
		else_if = {
			limit = {
				var:replay_speed > -14
			}
			change_variable = {
				name = replay_speed
				add = -1
			}
		}
	}
}

replay_reset = {
	scope = country

	ai_is_valid = {
		always = no
	}

	effect = {
		remove_variable = replay_speed
	}
}
