v0.9.3: fixed incorrect spawn timers in DK's challenge boss fight

This commit is contained in:
Evan Debenham 2021-05-21 14:21:12 -04:00
parent a6b5490050
commit 6595bfe968

View File

@ -215,10 +215,10 @@ public class DwarfKing extends Mob {
sprite.centerEmitter().start(Speck.factory(Speck.SCREAM), 0.4f, 2); sprite.centerEmitter().start(Speck.factory(Speck.SCREAM), 0.4f, 2);
Sample.INSTANCE.play(Assets.Sounds.CHALLENGE); Sample.INSTANCE.play(Assets.Sounds.CHALLENGE);
yell(Messages.get(this, "wave_3")); yell(Messages.get(this, "wave_3"));
summonSubject(4, DKWarlock.class); summonSubject(3, DKWarlock.class);
summonSubject(4, DKMonk.class); summonSubject(3, DKMonk.class);
summonSubject(4, DKGhoul.class); summonSubject(3, DKGhoul.class);
summonSubject(4, DKGhoul.class); summonSubject(3, DKGhoul.class);
summonsMade += 4; summonsMade += 4;
spend(3*TICK); spend(3*TICK);
} else { } else {
@ -621,9 +621,13 @@ public class DwarfKing extends Mob {
Char ch = Actor.findChar(pos); Char ch = Actor.findChar(pos);
ch.damage(Random.NormalIntRange(20, 40), target); ch.damage(Random.NormalIntRange(20, 40), target);
if (((DwarfKing)target).phase == 2){ if (((DwarfKing)target).phase == 2){
if (Dungeon.isChallenged(Challenges.STRONGER_BOSSES)){
target.damage(target.HT/18, new KingDamager());
} else {
target.damage(target.HT/12, new KingDamager()); target.damage(target.HT/12, new KingDamager());
} }
} }
}
detach(); detach();
} }