defined_text = {
	name = space_race_leaderboard_header
	text = {
		trigger = { check_variable = { global.top_space_race_array_country^num = 0 } }
		localization_key = "Космическая гонка не началась"
	}
	text = {
		trigger = { check_variable = { global.top_space_race_array_country^num > 0 } }
		localization_key = ""
	}
}

defined_text = {
name = space_race_leaderboard_1
	text = {
		trigger = { check_variable = { global.top_space_race_array_country^num > 0 } }
		localization_key = "[?global.top_space_race_array_country^0.GetName]: [?global.top_space_race_array_num_decisions^0]"
	}
	text = {
		trigger = {}
		localization_key = ""
	}
}

defined_text = {
	name = space_race_leaderboard_2
	text = {
		trigger = { check_variable = { global.top_space_race_array_country^num > 1 } }
		localization_key = "[?global.top_space_race_array_country^1.GetName]: [?global.top_space_race_array_num_decisions^1]"
	}
	text = {
		trigger = {}
		localization_key = ""
	}
}

defined_text = {
	name = space_race_leaderboard_3
	text = {
		trigger = { check_variable = { global.top_space_race_array_country^num > 2 } }
		localization_key = "[?global.top_space_race_array_country^2.GetName]: [?global.top_space_race_array_num_decisions^2]"
	}
	text = {
		trigger = {}
		localization_key = ""
	}
}

defined_text = {
	name = space_race_leaderboard_4
	text = {
		trigger = { check_variable = { global.top_space_race_array_country^num > 3 } }
		localization_key = "[?global.top_space_race_array_country^3.GetName]: [?global.top_space_race_array_num_decisions^3]"
	}
	text = {
		trigger = {}
		localization_key = ""
	}
}

defined_text = {
	name = space_race_leaderboard_5
	text = {
		trigger = { check_variable = { global.top_space_race_array_country^num > 4 } }
		localization_key = "[?global.top_space_race_array_country^4.GetName]: [?global.top_space_race_array_num_decisions^4]"
	}
	text = {
		trigger = {}
		localization_key = ""
	}
}
