v0.4.1a: evil eyes deal more damage and resist damage while charging

This commit is contained in:
Evan Debenham 2016-08-09 20:36:43 -04:00
parent e83cadae45
commit 1cdba23d84

View File

@ -138,6 +138,12 @@ public class Eye extends Mob {
}
@Override
public void damage(int dmg, Object src) {
if (beamCharged) dmg /= 4;
super.damage(dmg, src);
}
public void deathGaze(){
if (!beamCharged || beamCooldown > 0 || beam == null)
return;
@ -163,7 +169,7 @@ public class Eye extends Mob {
}
if (hit( this, ch, true )) {
ch.damage( Random.NormalIntRange( 30, 40 ), this );
ch.damage( Random.NormalIntRange( 30, 50 ), this );
if (Dungeon.visible[pos]) {
ch.sprite.flash();