v0.8.1: fixed minor errors with Yog Fight:

- invulnerability warning message not showing up when it should
- fixed typos with the burning fist
This commit is contained in:
Evan Debenham 2020-05-09 19:36:34 -04:00
parent 740e4f64ae
commit 42f8aa77d2
2 changed files with 6 additions and 13 deletions

View File

@ -766,7 +766,7 @@ actors.mobs.yogfist.invuln_warn=The fist is invulnerable while near to the eye!
actors.mobs.yogfist.rankings_desc=Devoured by Yog-Dzewa
actors.mobs.yogfist.desc=This fist is an aspect of Yog-Dzewa's power. Fists are linked to the power of Yog-Dzewa, and will be protected from all damage when they are close to the eye.
actors.mobs.yogfist$burningfist.name=burning fist
actors.mobs.yogfist$burningfist.desc=This fist is formed out of chaotic fiery magic. As it moves it will constantly set terrain around it ablaze. It is also capable of shooting blasts of fiery power, which spread flames where the impact.\n\nThe fist's ability to spread flames is suppressed when near water, but it's heat is so great that any water around it will evaporate after a short while!
actors.mobs.yogfist$burningfist.desc=This fist is formed out of chaotic fiery magic. As it moves it will constantly set terrain around it ablaze. It is also capable of shooting blasts of fiery power, which spread flames where they impact.\n\nThe fist's ability to spread flames is suppressed when near water, but its heat is so great that any water around it will evaporate after a short while!
actors.mobs.yogfist$soiledfist.name=soiled fist
actors.mobs.yogfist$soiledfist.desc=This fist is formed out of chaotic earthen magic. As it moves it will constantly cause vegetation to sprout around it. It can also shoot concentrated earthen blasts that will ensnare its target in rapidly growing vines and roots!\n\nThe fist derives power from this plant life, and will resist damage based on the amount of tall or furrowed vegetation near it!
actors.mobs.yogfist$rottingfist.name=rotting fist

View File

@ -92,7 +92,7 @@ public abstract class YogFist extends Mob {
}
}
boolean invulnWarned = false;
private boolean invulnWarned = false;
protected boolean isNearYog(){
int yogPos = Dungeon.level.exit + 3*Dungeon.level.width();
@ -101,18 +101,11 @@ public abstract class YogFist extends Mob {
@Override
public boolean isInvulnerable(Class effect) {
return isNearYog();
}
@Override
public void damage(int dmg, Object src) {
if (isInvulnerable(src.getClass())){
if (!invulnWarned){
if (isNearYog() && !invulnWarned){
invulnWarned = true;
GLog.w(Messages.get(this, "invuln_warn"));
}
}
super.damage(dmg, src);
return isNearYog();
}
@Override