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

View File

@@ -156,6 +156,11 @@ public class YogDzewa extends Mob {
private ArrayList<Integer> targetedCells = new ArrayList<>();
@Override
public int attackSkill(Char target) {
return INFINITE_ACCURACY;
}
@Override
protected boolean act() {
//char logic
@@ -216,23 +221,27 @@ public class YogDzewa extends Mob {
Dungeon.observe();
}
for (Char ch : affected) {
if (Dungeon.isChallenged(Challenges.STRONGER_BOSSES)){
ch.damage(Random.NormalIntRange(30, 50), new Eye.DeathGaze());
} else {
ch.damage(Random.NormalIntRange(20, 30), new Eye.DeathGaze());
}
if (ch == Dungeon.hero){
Statistics.bossScores[4] -= 500;
}
if (Dungeon.level.heroFOV[pos]) {
ch.sprite.flash();
CellEmitter.center(pos).burst(PurpleParticle.BURST, Random.IntRange(1, 2));
}
if (!ch.isAlive() && ch == Dungeon.hero) {
Badges.validateDeathFromEnemyMagic();
Dungeon.fail(getClass());
GLog.n(Messages.get(Char.class, "kill", name()));
if (hit( this, ch, true )) {
if (Dungeon.isChallenged(Challenges.STRONGER_BOSSES)) {
ch.damage(Random.NormalIntRange(30, 50), new Eye.DeathGaze());
} else {
ch.damage(Random.NormalIntRange(20, 30), new Eye.DeathGaze());
}
if (ch == Dungeon.hero) {
Statistics.bossScores[4] -= 500;
}
if (Dungeon.level.heroFOV[pos]) {
ch.sprite.flash();
CellEmitter.center(pos).burst(PurpleParticle.BURST, Random.IntRange(1, 2));
}
if (!ch.isAlive() && ch == Dungeon.hero) {
Badges.validateDeathFromEnemyMagic();
Dungeon.fail(getClass());
GLog.n(Messages.get(Char.class, "kill", name()));
}
} else {
ch.sprite.showStatus( CharSprite.NEUTRAL, ch.defenseVerb() );
}
}
targetedCells.clear();