Search in sources :

Example 1 with SkeletonKey

use of com.watabou.pixeldungeon.items.keys.SkeletonKey in project pixel-dungeon by watabou.

the class Yog method die.

@SuppressWarnings("unchecked")
@Override
public void die(Object cause) {
    for (Mob mob : (Iterable<Mob>) Dungeon.level.mobs.clone()) {
        if (mob instanceof BurningFist || mob instanceof RottingFist) {
            mob.die(cause);
        }
    }
    GameScene.bossSlain();
    Dungeon.level.drop(new SkeletonKey(), pos).sprite.drop();
    super.die(cause);
    yell("...");
}
Also used : SkeletonKey(com.watabou.pixeldungeon.items.keys.SkeletonKey)

Example 2 with SkeletonKey

use of com.watabou.pixeldungeon.items.keys.SkeletonKey in project pixel-dungeon by watabou.

the class Tengu method die.

@Override
public void die(Object cause) {
    Badges.Badge badgeToCheck = null;
    switch(Dungeon.hero.heroClass) {
        case WARRIOR:
            badgeToCheck = Badge.MASTERY_WARRIOR;
            break;
        case MAGE:
            badgeToCheck = Badge.MASTERY_MAGE;
            break;
        case ROGUE:
            badgeToCheck = Badge.MASTERY_ROGUE;
            break;
        case HUNTRESS:
            badgeToCheck = Badge.MASTERY_HUNTRESS;
            break;
    }
    if (!Badges.isUnlocked(badgeToCheck) || Dungeon.hero.subClass != HeroSubClass.NONE) {
        Dungeon.level.drop(new TomeOfMastery(), pos).sprite.drop();
    }
    GameScene.bossSlain();
    Dungeon.level.drop(new SkeletonKey(), pos).sprite.drop();
    super.die(cause);
    Badges.validateBossSlain();
    yell("Free at last...");
}
Also used : Badges(com.watabou.pixeldungeon.Badges) TomeOfMastery(com.watabou.pixeldungeon.items.TomeOfMastery) Badge(com.watabou.pixeldungeon.Badges.Badge) SkeletonKey(com.watabou.pixeldungeon.items.keys.SkeletonKey)

Example 3 with SkeletonKey

use of com.watabou.pixeldungeon.items.keys.SkeletonKey in project pixel-dungeon by watabou.

the class DM300 method die.

@Override
public void die(Object cause) {
    super.die(cause);
    GameScene.bossSlain();
    Dungeon.level.drop(new SkeletonKey(), pos).sprite.drop();
    Badges.validateBossSlain();
    yell("Mission failed. Shutting down.");
}
Also used : SkeletonKey(com.watabou.pixeldungeon.items.keys.SkeletonKey)

Example 4 with SkeletonKey

use of com.watabou.pixeldungeon.items.keys.SkeletonKey in project pixel-dungeon by watabou.

the class Goo method die.

@Override
public void die(Object cause) {
    super.die(cause);
    ((SewerBossLevel) Dungeon.level).unseal();
    GameScene.bossSlain();
    Dungeon.level.drop(new SkeletonKey(), pos).sprite.drop();
    Badges.validateBossSlain();
    yell("glurp... glurp...");
}
Also used : SewerBossLevel(com.watabou.pixeldungeon.levels.SewerBossLevel) SkeletonKey(com.watabou.pixeldungeon.items.keys.SkeletonKey)

Example 5 with SkeletonKey

use of com.watabou.pixeldungeon.items.keys.SkeletonKey in project pixel-dungeon by watabou.

the class King method die.

@Override
public void die(Object cause) {
    GameScene.bossSlain();
    Dungeon.level.drop(new ArmorKit(), pos).sprite.drop();
    Dungeon.level.drop(new SkeletonKey(), pos).sprite.drop();
    super.die(cause);
    Badges.validateBossSlain();
    yell("You cannot kill me, " + Dungeon.hero.heroClass.title() + "... I am... immortal...");
}
Also used : ArmorKit(com.watabou.pixeldungeon.items.ArmorKit) SkeletonKey(com.watabou.pixeldungeon.items.keys.SkeletonKey)

Aggregations

SkeletonKey (com.watabou.pixeldungeon.items.keys.SkeletonKey)5 Badges (com.watabou.pixeldungeon.Badges)1 Badge (com.watabou.pixeldungeon.Badges.Badge)1 ArmorKit (com.watabou.pixeldungeon.items.ArmorKit)1 TomeOfMastery (com.watabou.pixeldungeon.items.TomeOfMastery)1 SewerBossLevel (com.watabou.pixeldungeon.levels.SewerBossLevel)1