Search in sources :

Example 1 with BlackSkullOfMastery

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);
}
Also used : Mob(com.watabou.pixeldungeon.actors.mobs.Mob) BlackSkullOfMastery(com.nyrds.pixeldungeon.items.necropolis.BlackSkullOfMastery) BlackSkull(com.nyrds.pixeldungeon.items.necropolis.BlackSkull) SkeletonKey(com.watabou.pixeldungeon.items.keys.SkeletonKey)

Aggregations

BlackSkull (com.nyrds.pixeldungeon.items.necropolis.BlackSkull)1 BlackSkullOfMastery (com.nyrds.pixeldungeon.items.necropolis.BlackSkullOfMastery)1 Mob (com.watabou.pixeldungeon.actors.mobs.Mob)1 SkeletonKey (com.watabou.pixeldungeon.items.keys.SkeletonKey)1