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

@@ -46,10 +46,11 @@ class SlotMachineReel < BitmapSprite
def stopSpinning(noslipping = false)
@stopping = true
@slipping = SLIPPING.sample
if @difficulty == 0 # Easy
case @difficulty
when 0 # Easy
second_slipping = SLIPPING.sample
@slipping = [@slipping, second_slipping].min
elsif @difficulty == 2 # Hard
when 2 # Hard
second_slipping = SLIPPING.sample
@slipping = [@slipping, second_slipping].max
end