Search in sources :

Example 1 with ArmorKit

use of com.shatteredpixel.shatteredpixeldungeon.items.ArmorKit in project shattered-pixel-dungeon-gdx by 00-Evan.

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(Dungeon.depth), pos).sprite.drop();
    super.die(cause);
    Badges.validateBossSlain();
    LloydsBeacon beacon = Dungeon.hero.belongings.getItem(LloydsBeacon.class);
    if (beacon != null) {
        beacon.upgrade();
    }
    yell(Messages.get(this, "defeated", Dungeon.hero.givenName()));
}
Also used : ArmorKit(com.shatteredpixel.shatteredpixeldungeon.items.ArmorKit) LloydsBeacon(com.shatteredpixel.shatteredpixeldungeon.items.artifacts.LloydsBeacon) SkeletonKey(com.shatteredpixel.shatteredpixeldungeon.items.keys.SkeletonKey)

Aggregations

ArmorKit (com.shatteredpixel.shatteredpixeldungeon.items.ArmorKit)1 LloydsBeacon (com.shatteredpixel.shatteredpixeldungeon.items.artifacts.LloydsBeacon)1 SkeletonKey (com.shatteredpixel.shatteredpixeldungeon.items.keys.SkeletonKey)1