v0.7.4: adjusted the great crab to be unable to block multiple enemies

This commit is contained in:
Evan Debenham 2019-07-11 21:51:35 -04:00
parent 71db3ba1d1
commit 9f73defba2
2 changed files with 6 additions and 5 deletions

View File

@ -64,10 +64,11 @@ public class GreatCrab extends Crab {
@Override
public void damage( int dmg, Object src ){
//crab blocks all attacks originating from the hero or enemy characters or traps if it is alerted.
//All direct damage from these sources is negated, no exceptions. blob/debuff effects go through as normal.
//crab blocks all attacks originating from its current enemy if it sees them.
//All direct damage is negated, no exceptions. environmental effects go through as normal.
if ((enemySeen && state != SLEEPING && paralysed == 0)
&& (src instanceof Wand || src instanceof Char)){
&& ((src instanceof Wand && enemy == Dungeon.hero)
|| (src instanceof Char && enemy == src))){
GLog.n( Messages.get(this, "noticed") );
sprite.showStatus( CharSprite.NEUTRAL, Messages.get(this, "blocked") );
} else {

View File

@ -490,9 +490,9 @@ actors.mobs.goo.rankings_desc=Absorbed by the Goo
actors.mobs.goo.desc=Little is known about The Goo. It's quite possible that it is not even a creature, but rather a conglomerate of vile substances from the sewers that somehow gained basic intelligence. Regardless, dark magic is certainly what has allowed Goo to exist.\n\nIts gelatinous nature has let it absorb lots of dark energy, you feel a chill just from being near. If Goo is able to attack with this energy you won't live for long.
actors.mobs.greatcrab.name=great crab
actors.mobs.greatcrab.noticed=The crab notices the attack and blocks with its massive claw.
actors.mobs.greatcrab.noticed=The crab blocks with its massive claw.
actors.mobs.greatcrab.blocked=blocked
actors.mobs.greatcrab.desc=This crab is gigantic, even compared to other sewer crabs. Its blue shell is covered in cracks and barnacles, showing great age. It lumbers around slowly, barely keeping balance with its massive claw.\n\nWhile the crab only has one claw, its size easily compensates. The crab holds the claw infront of itself whenever it sees a threat, shielding itself behind an impenetrable wall of carapace.
actors.mobs.greatcrab.desc=This crab is gigantic, even compared to other sewer crabs. Its blue shell is covered in cracks and barnacles, showing great age. It lumbers around slowly, barely keeping balance with its massive claw.\n\nWhile the crab only has one claw, its size easily compensates. The crab holds the claw in front of any threat, shielding itself behind an impenetrable wall of carapace. However, the crab cannot block attacks it doesn't see coming, or attacks from multiple enemies at once.
actors.mobs.guard.name=prison guard
actors.mobs.guard.scorpion=Get over here!