v1.3.2: Yog's lasers can now be evaded with guaranteed dodges

This commit is contained in:
Evan Debenham
2022-07-19 17:44:27 -04:00
parent 9403398941
commit 56d4a551bf
@@ -156,6 +156,11 @@ public class YogDzewa extends Mob {
private ArrayList<Integer> targetedCells = new ArrayList<>(); private ArrayList<Integer> targetedCells = new ArrayList<>();
@Override
public int attackSkill(Char target) {
return INFINITE_ACCURACY;
}
@Override @Override
protected boolean act() { protected boolean act() {
//char logic //char logic
@@ -216,15 +221,16 @@ public class YogDzewa extends Mob {
Dungeon.observe(); Dungeon.observe();
} }
for (Char ch : affected) { for (Char ch : affected) {
if (Dungeon.isChallenged(Challenges.STRONGER_BOSSES)){
if (hit( this, ch, true )) {
if (Dungeon.isChallenged(Challenges.STRONGER_BOSSES)) {
ch.damage(Random.NormalIntRange(30, 50), new Eye.DeathGaze()); ch.damage(Random.NormalIntRange(30, 50), new Eye.DeathGaze());
} else { } else {
ch.damage(Random.NormalIntRange(20, 30), new Eye.DeathGaze()); ch.damage(Random.NormalIntRange(20, 30), new Eye.DeathGaze());
} }
if (ch == Dungeon.hero){ if (ch == Dungeon.hero) {
Statistics.bossScores[4] -= 500; Statistics.bossScores[4] -= 500;
} }
if (Dungeon.level.heroFOV[pos]) { if (Dungeon.level.heroFOV[pos]) {
ch.sprite.flash(); ch.sprite.flash();
CellEmitter.center(pos).burst(PurpleParticle.BURST, Random.IntRange(1, 2)); CellEmitter.center(pos).burst(PurpleParticle.BURST, Random.IntRange(1, 2));
@@ -234,6 +240,9 @@ public class YogDzewa extends Mob {
Dungeon.fail(getClass()); Dungeon.fail(getClass());
GLog.n(Messages.get(Char.class, "kill", name())); GLog.n(Messages.get(Char.class, "kill", name()));
} }
} else {
ch.sprite.showStatus( CharSprite.NEUTRAL, ch.defenseVerb() );
}
} }
targetedCells.clear(); targetedCells.clear();
} }