v0.3.2: fixed some bugs with tengu boss fight
This commit is contained in:
parent
b04cadcbf4
commit
c9d196622b
|
@ -86,7 +86,8 @@ public class Tengu extends Mob {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void damage(int dmg, Object src) {
|
public void damage(int dmg, Object src) {
|
||||||
if (dmg > HP) {
|
//phase 2 of the fight is over
|
||||||
|
if (dmg >= HP) {
|
||||||
((PrisonBossLevel)Dungeon.level).progress();
|
((PrisonBossLevel)Dungeon.level).progress();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -303,11 +303,11 @@ public class PrisonBossLevel extends Level {
|
||||||
Dungeon.hero.sprite.interruptMotion();
|
Dungeon.hero.sprite.interruptMotion();
|
||||||
Dungeon.hero.sprite.place(Dungeon.hero.pos);
|
Dungeon.hero.sprite.place(Dungeon.hero.pos);
|
||||||
|
|
||||||
|
tengu.pos = 5+28*32;
|
||||||
|
tengu.sprite.place(5 + 28 * 32);
|
||||||
|
|
||||||
changeMap(MAP_END);
|
changeMap(MAP_END);
|
||||||
|
|
||||||
tengu.pos = 5+28*32;
|
|
||||||
tengu.sprite.interruptMotion();
|
|
||||||
tengu.sprite.place(5 + 28 * 32);
|
|
||||||
tengu.die(Dungeon.hero);
|
tengu.die(Dungeon.hero);
|
||||||
|
|
||||||
state = State.WON;
|
state = State.WON;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user