1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-17 21:08:08 +02:00

Fix incorrect rocket score displayed (#1422)

This commit is contained in:
RedRafe 2024-08-12 17:37:12 +02:00 committed by GitHub
parent a1f1b81ca4
commit 963dc1048d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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