v2.0.0: improved logic for correcting Tengu's time when re-added

This commit is contained in:
Evan Debenham
2022-11-02 21:40:25 -04:00
parent 9f523e35d0
commit 779905baf4
2 changed files with 1 additions and 10 deletions

View File

@@ -98,16 +98,6 @@ public class Tengu extends Mob {
viewDistance = 12;
}
@Override
protected void onAdd() {
//when he's removed and re-added to the fight, his time is always set to now.
if (cooldown() > TICK) {
timeToNow();
spendToWhole();
}
super.onAdd();
}
@Override
public int damageRoll() {
return Random.NormalIntRange( 6, 12 );

View File

@@ -476,6 +476,7 @@ public class PrisonBossLevel extends Level {
tengu.state = tengu.HUNTING;
tengu.pos = (arena.left + arena.width()/2) + width()*(arena.top+2);
GameScene.add(tengu);
tengu.timeToNow();
tengu.notice();
GameScene.flash(0x80FFFFFF);