From 8e5648bbe42a8c877f3080d249dd276b8d455839 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 26 Aug 2020 16:48:23 -0400 Subject: [PATCH] v0.8.2c: torches now play a burning sound when ignited --- .../com/shatteredpixel/shatteredpixeldungeon/items/Torch.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Torch.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Torch.java index d25381c65..0e0763d66 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Torch.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/Torch.java @@ -21,11 +21,13 @@ package com.shatteredpixel.shatteredpixeldungeon.items; +import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Light; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; import com.shatteredpixel.shatteredpixeldungeon.effects.particles.FlameParticle; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; +import com.watabou.noosa.audio.Sample; import com.watabou.noosa.particles.Emitter; import java.util.ArrayList; @@ -66,6 +68,7 @@ public class Torch extends Item { detach( hero.belongings.backpack ); Buff.affect(hero, Light.class, Light.DURATION); + Sample.INSTANCE.play(Assets.Sounds.BURNING); Emitter emitter = hero.sprite.centerEmitter(); emitter.start( FlameParticle.FACTORY, 0.2f, 3 );