Tweak sound
This commit is contained in:
@@ -8,11 +8,11 @@ import System.Random
|
||||
import Control.Lens
|
||||
|
||||
mkSoundBreakGlass :: World -> World
|
||||
mkSoundBreakGlass w = soundOnce soundid $ set randGen g w
|
||||
mkSoundBreakGlass w = soundOnceOrigin soundid (GlassBreakSound 0) $ set randGen g w
|
||||
where
|
||||
(soundid,g) = _randGen w & randomR (37,40)
|
||||
|
||||
mkSoundSplinterGlass :: World -> World
|
||||
mkSoundSplinterGlass w = soundOnce soundid $ set randGen g w
|
||||
mkSoundSplinterGlass w = soundOnceOrigin soundid (GlassBreakSound 1) $ set randGen g w
|
||||
where
|
||||
(soundid,g) = _randGen w & randomR (33,36)
|
||||
|
||||
Reference in New Issue
Block a user