From cfde64b218ed9eb7f8073c4e64c542fc7acb6f5a Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 16 Mar 2015 16:33:52 -0400 Subject: [PATCH] v0.2.4d: mimics no longer make the player drop gold, this fixes some bugs --- .../shatteredpixeldungeon/actors/mobs/Mimic.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mimic.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mimic.java index 098d4968c..5610945ca 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mimic.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mimic.java @@ -78,18 +78,6 @@ public class Mimic extends Mob { return 9 + level; } - @Override - public int attackProc( Char enemy, int damage ) { - if (enemy == Dungeon.hero && Random.Int( 3 ) == 0) { - Gold gold = new Gold( Random.Int( Dungeon.gold / 10, Dungeon.gold / 2 ) ); - if (gold.quantity() > 0) { - Dungeon.gold -= gold.quantity(); - Dungeon.level.drop( gold, Dungeon.hero.pos ).sprite.drop(); - } - } - return super.attackProc( enemy, damage ); - } - public void adjustStats( int level ) { this.level = level;