Skip to content

Commit

Permalink
Fix incorrect rocket score displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
RedRafe committed Aug 12, 2024
1 parent a1f1b81 commit 67dd0f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions map_gen/maps/frontier.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 67dd0f7

Please sign in to comment.