V0.2.1 : Initial Improvements to Goo's sprite

This commit is contained in:
Evan Debenham
2014-09-29 01:16:40 -04:00
parent 91a06bac4b
commit 1c48866338
3 changed files with 38 additions and 8 deletions
@@ -108,8 +108,21 @@ public class Goo extends Mob {
@Override
protected boolean doAttack( Char enemy ) {
if (pumpedUp || Random.Int( 3 ) > 0) {
return super.doAttack( enemy );
boolean visible = Dungeon.visible[pos];
if (visible) {
if (pumpedUp)
((GooSprite)sprite).pumpAttack();
else
sprite.attack( enemy.pos );
} else {
attack( enemy );
}
spend( attackDelay() );
return !visible;
} else {