lib/wizrb/lighting/scenes/spooky_scene.rb in wizrb-1.1.2 vs lib/wizrb/lighting/scenes/spooky_scene.rb in wizrb-1.2.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-require_relative 'scene'
+require_relative "scene"
module Wizrb
module Lighting
module Scenes
class SpookyScene < Wizrb::Lighting::Scenes::Scene
@@ -32,10 +32,10 @@
if Random.rand > 0.5
Random.rand(1..10).times do
next if Random.rand > 0.25
dispatch(BLACKOUT_EVENTS, sync: @sync)
- sleep(Random.rand > 0.98 ? 3 : 0.125)
+ sleep((Random.rand > 0.98) ? 3 : 0.125)
dispatch(DEFAULT_STATE_EVENTS, sync: true)
end
end
sleep(Random.rand(0.125..5.0))