v0.8.0: bugfixes:

- Hero FOV not being updated after they are pulled by golems
- Necromancer skeletons counting towards mob spawn limits
- New Tengu taking damage during phase 2 in rare cases
- Keybindings window not accepting unbound keys.
This commit is contained in:
Evan Debenham 2020-01-30 19:49:09 -05:00
parent 48471bbfef
commit 4e3424f2cb
4 changed files with 23 additions and 4 deletions

View File

@ -78,7 +78,7 @@ public class Button extends Component {
private Signal.Listener<KeyEvent> keyListener;
public GameAction keyAction(){
return GameAction.NONE;
return null;
}
@Override

View File

@ -139,6 +139,7 @@ public class Golem extends Mob {
ScrollOfTeleportation.appear(enemy, bestPos);
if (enemy instanceof Hero){
((Hero) enemy).interrupt();
Dungeon.observe();
}
}

View File

@ -345,6 +345,11 @@ public class Necromancer extends Mob {
HP = 20;
}
@Override
public float spawningWeight() {
return 0;
}
private void teleportSpend(){
spend(TICK);
}

View File

@ -114,8 +114,21 @@ public class NewTengu extends Mob {
return Random.NormalIntRange(0, 5);
}
//Tengu is immune to debuffs and damage when removed from the level
@Override
public void add(Buff buff) {
if (!Dungeon.level.mobs.contains(this)){
return;
}
super.add(buff);
}
@Override
public void damage(int dmg, Object src) {
if (!Dungeon.level.mobs.contains(this)){
return;
}
NewPrisonBossLevel.State state = ((NewPrisonBossLevel)Dungeon.level).state();
int hpBracket = 20;