This commit is contained in:
Nick Winter 2014-02-11 09:33:35 -08:00
parent c61e2496d8
commit f9bb6de3ff

View file

@ -432,7 +432,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
playSounds: (withDelay=true, volume=1.0) ->
for event in @thang.currentEvents ? []
@playSound event, withDelay, volume
if event is 'pay-bounty-gold' and thang.bountyGold > 25
if event is 'pay-bounty-gold' and @thang.bountyGold > 25
AudioPlayer.playInterfaceSound 'coin_1', 0.25
if @thang.actionActivated and (action = @thang.getActionName()) isnt 'say'
@playSound action, withDelay, volume