From 2dc9150f669926c697f492dc4bcda27ef6da27ed Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 16 May 2020 17:22:52 -0400 Subject: [PATCH] v0.8.1: dwarven ghouls now drop gold --- .../shatteredpixeldungeon/actors/mobs/Ghoul.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java index 0539f498d..e26279315 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Ghoul.java @@ -27,6 +27,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Corruption; import com.shatteredpixel.shatteredpixeldungeon.effects.Pushing; +import com.shatteredpixel.shatteredpixeldungeon.items.Gold; import com.shatteredpixel.shatteredpixeldungeon.levels.features.Chasm; import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene; import com.shatteredpixel.shatteredpixeldungeon.sprites.GhoulSprite; @@ -50,6 +51,9 @@ public class Ghoul extends Mob { SLEEPING = new Sleeping(); WANDERING = new Wandering(); state = SLEEPING; + + loot = Gold.class; + lootChance = 0.2f; properties.add(Property.UNDEAD); }