use of com.nyrds.pixeldungeon.items.necropolis.BlackSkullOfMastery in project pixel-dungeon-remix by NYRDS.
the class Lich method die.
@Override
public void die(Object cause) {
GameScene.bossSlain();
if (Dungeon.hero.heroClass == HeroClass.NECROMANCER) {
Dungeon.level.drop(new BlackSkullOfMastery(), getPos()).sprite.drop();
} else {
Dungeon.level.drop(new BlackSkull(), getPos()).sprite.drop();
}
super.die(cause);
Dungeon.level.drop(new SkeletonKey(), getPos()).sprite.drop();
// Kill everything
skulls.clear();
Mob mob = Dungeon.level.getRandomMob();
while (mob != null) {
mob.remove();
mob = Dungeon.level.getRandomMob();
}
Badges.validateBossSlain(Badges.Badge.LICH_SLAIN);
}
Aggregations