Code tidying with Rubocop

This commit is contained in:
Maruno17
2023-07-18 22:42:10 +01:00
parent 6053363715
commit a5734eaf46
68 changed files with 276 additions and 232 deletions

View File

@@ -302,7 +302,7 @@ class Window
mustchange = false
if @active
cursor_time = System.uptime / 0.4
if cursor_time.to_i % 2 == 0
if cursor_time.to_i.even?
@cursoropacity = lerp(255, 128, 0.4, cursor_time % 2)
else
@cursoropacity = lerp(128, 255, 0.4, (cursor_time - 1) % 2)