From 67dd0f72192f7208ee8117172952df2ea5002992 Mon Sep 17 00:00:00 2001 From: RedRafe Date: Mon, 12 Aug 2024 13:43:43 +0200 Subject: [PATCH] Fix incorrect rocket score displayed --- map_gen/maps/frontier.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/map_gen/maps/frontier.lua b/map_gen/maps/frontier.lua index 52aa28b62..2b48b8458 100644 --- a/map_gen/maps/frontier.lua +++ b/map_gen/maps/frontier.lua @@ -764,6 +764,7 @@ function Main.on_game_started() game.reset_time_played() ScoreTracker.reset() + ScoreTracker.set_for_global(rocket_launches_name, this.rockets_to_win) end Main.restart_game_token = Token.register(function() @@ -936,6 +937,7 @@ local function on_rocket_launched(event) end game.print({'frontier.rocket_launched', this.rockets_launched, (this.rockets_to_win - this.rockets_launched) }) + ScoreTracker.set_for_global(rocket_launches_name, (this.rockets_to_win - this.rockets_launched)) Main.compute_silo_coordinates(500) local ticks = 60