v2.0.0: improved logic for correcting Tengu's time when re-added
This commit is contained in:
@@ -98,16 +98,6 @@ public class Tengu extends Mob {
|
|||||||
viewDistance = 12;
|
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
|
@Override
|
||||||
public int damageRoll() {
|
public int damageRoll() {
|
||||||
return Random.NormalIntRange( 6, 12 );
|
return Random.NormalIntRange( 6, 12 );
|
||||||
|
|||||||
+1
@@ -476,6 +476,7 @@ public class PrisonBossLevel extends Level {
|
|||||||
tengu.state = tengu.HUNTING;
|
tengu.state = tengu.HUNTING;
|
||||||
tengu.pos = (arena.left + arena.width()/2) + width()*(arena.top+2);
|
tengu.pos = (arena.left + arena.width()/2) + width()*(arena.top+2);
|
||||||
GameScene.add(tengu);
|
GameScene.add(tengu);
|
||||||
|
tengu.timeToNow();
|
||||||
tengu.notice();
|
tengu.notice();
|
||||||
|
|
||||||
GameScene.flash(0x80FFFFFF);
|
GameScene.flash(0x80FFFFFF);
|
||||||
|
|||||||
Reference in New Issue
Block a user