mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 13:52:34 +00:00
Updated practice clock to use a zero exclusive display (matches offical clock better), tweaked sound timings a bit to match, disabled color changing on clock to match offical clock, misc. tweaks.
This commit is contained in:
@@ -57,10 +57,9 @@ module TAC
|
||||
end
|
||||
|
||||
def clock_time(time_left)
|
||||
minutes = ((time_left + 0.5) / 60.0).floor
|
||||
minutes = ((time_left + 1.0) / 60.0).floor
|
||||
|
||||
seconds = time_left.round % 60
|
||||
seconds = "0#{seconds}" if seconds < 10
|
||||
seconds = format("%02d", time_left.ceil % 60)
|
||||
|
||||
return "#{minutes}:#{seconds}" if time_left.round.even?
|
||||
return "#{minutes}<c=999999>:</c>#{seconds}" if time_left.round.odd?
|
||||
|
||||
Reference in New Issue
Block a user