v0.3.2: fixed some bugs with tengu boss fight

This commit is contained in:
Evan Debenham 2015-11-02 13:02:29 -05:00 committed by Evan Debenham
parent b04cadcbf4
commit c9d196622b
2 changed files with 5 additions and 4 deletions

View File

@ -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;
} }

View File

@ -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;