use of com.shatteredpixel.shatteredpixeldungeon.items.TomeOfMastery in project shattered-pixel-dungeon-gdx by 00-Evan.
the class Tengu method die.
@Override
public void die(Object cause) {
if (Dungeon.hero.subClass == HeroSubClass.NONE) {
Dungeon.level.drop(new TomeOfMastery(), pos).sprite.drop();
}
GameScene.bossSlain();
super.die(cause);
Badges.validateBossSlain();
LloydsBeacon beacon = Dungeon.hero.belongings.getItem(LloydsBeacon.class);
if (beacon != null) {
beacon.upgrade();
}
yell(Messages.get(this, "defeated"));
}
Aggregations