v1.3.2: Yog's lasers can now be evaded with guaranteed dodges
This commit is contained in:
+25
-16
@@ -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,23 +221,27 @@ public class YogDzewa extends Mob {
|
|||||||
Dungeon.observe();
|
Dungeon.observe();
|
||||||
}
|
}
|
||||||
for (Char ch : affected) {
|
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]) {
|
if (hit( this, ch, true )) {
|
||||||
ch.sprite.flash();
|
if (Dungeon.isChallenged(Challenges.STRONGER_BOSSES)) {
|
||||||
CellEmitter.center(pos).burst(PurpleParticle.BURST, Random.IntRange(1, 2));
|
ch.damage(Random.NormalIntRange(30, 50), new Eye.DeathGaze());
|
||||||
}
|
} else {
|
||||||
if (!ch.isAlive() && ch == Dungeon.hero) {
|
ch.damage(Random.NormalIntRange(20, 30), new Eye.DeathGaze());
|
||||||
Badges.validateDeathFromEnemyMagic();
|
}
|
||||||
Dungeon.fail(getClass());
|
if (ch == Dungeon.hero) {
|
||||||
GLog.n(Messages.get(Char.class, "kill", name()));
|
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();
|
targetedCells.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user