Search in sources :

Example 1 with IceKey

use of com.nyrds.pixeldungeon.items.icecaves.IceKey in project pixel-dungeon-remix by NYRDS.

the class IceGuardianCore method die.

@Override
public void die(Object cause) {
    super.die(cause);
    Level level = Dungeon.level;
    for (Mob mob : level.getCopyOfMobsArray()) {
        if (mob instanceof IceGuardian) {
            mob.die(cause);
        }
    }
    level.unseal();
    GameScene.bossSlain();
    level.drop(new SkeletonKey(), getPos()).sprite.drop();
    level.drop(new IceKey(), getPos()).sprite.drop();
    Badges.validateBossSlain(Badges.Badge.ICE_GUARDIAN_SLAIN);
}
Also used : Mob(com.watabou.pixeldungeon.actors.mobs.Mob) IceKey(com.nyrds.pixeldungeon.items.icecaves.IceKey) Level(com.watabou.pixeldungeon.levels.Level) SkeletonKey(com.watabou.pixeldungeon.items.keys.SkeletonKey)

Aggregations

IceKey (com.nyrds.pixeldungeon.items.icecaves.IceKey)1 Mob (com.watabou.pixeldungeon.actors.mobs.Mob)1 SkeletonKey (com.watabou.pixeldungeon.items.keys.SkeletonKey)1 Level (com.watabou.pixeldungeon.levels.Level)1