Search in sources :

Example 1 with LloydsBeacon

use of com.shatteredpixel.shatteredpixeldungeon.items.artifacts.LloydsBeacon 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)

Example 2 with LloydsBeacon

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

the class Tengu method die.

@Override
public void die(Object cause) {
    if (Dungeon.hero.subClass == HeroSubClass.NONE) {
        Dungeon.level.drop(new TomeOfMastery(), pos).sprite.drop();
    }
    GameScene.bossSlain();
    super.die(cause);
    Badges.validateBossSlain();
    LloydsBeacon beacon = Dungeon.hero.belongings.getItem(LloydsBeacon.class);
    if (beacon != null) {
        beacon.upgrade();
    }
    yell(Messages.get(this, "defeated"));
}
Also used : TomeOfMastery(com.shatteredpixel.shatteredpixeldungeon.items.TomeOfMastery) LloydsBeacon(com.shatteredpixel.shatteredpixeldungeon.items.artifacts.LloydsBeacon)

Example 3 with LloydsBeacon

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

the class DistortionTrap method activate.

@Override
public void activate() {
    InterlevelScene.returnDepth = Dungeon.depth;
    Belongings belongings = Dungeon.hero.belongings;
    for (Notes.Record rec : Notes.getRecords()) {
        if (rec.depth() == Dungeon.depth) {
            Notes.remove(rec);
        }
    }
    for (Item i : belongings) {
        if (i instanceof LloydsBeacon && ((LloydsBeacon) i).returnDepth == Dungeon.depth)
            ((LloydsBeacon) i).returnDepth = -1;
    }
    InterlevelScene.mode = InterlevelScene.Mode.RESET;
    Game.switchScene(InterlevelScene.class);
}
Also used : Item(com.shatteredpixel.shatteredpixeldungeon.items.Item) Belongings(com.shatteredpixel.shatteredpixeldungeon.actors.hero.Belongings) LloydsBeacon(com.shatteredpixel.shatteredpixeldungeon.items.artifacts.LloydsBeacon) Notes(com.shatteredpixel.shatteredpixeldungeon.journal.Notes)

Example 4 with LloydsBeacon

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

the class DM300 method die.

@Override
public void die(Object cause) {
    super.die(cause);
    GameScene.bossSlain();
    Dungeon.level.drop(new SkeletonKey(Dungeon.depth), pos).sprite.drop();
    Badges.validateBossSlain();
    LloydsBeacon beacon = Dungeon.hero.belongings.getItem(LloydsBeacon.class);
    if (beacon != null) {
        beacon.upgrade();
    }
    yell(Messages.get(this, "defeated"));
}
Also used : LloydsBeacon(com.shatteredpixel.shatteredpixeldungeon.items.artifacts.LloydsBeacon) SkeletonKey(com.shatteredpixel.shatteredpixeldungeon.items.keys.SkeletonKey)

Aggregations

LloydsBeacon (com.shatteredpixel.shatteredpixeldungeon.items.artifacts.LloydsBeacon)4 SkeletonKey (com.shatteredpixel.shatteredpixeldungeon.items.keys.SkeletonKey)2 Belongings (com.shatteredpixel.shatteredpixeldungeon.actors.hero.Belongings)1 ArmorKit (com.shatteredpixel.shatteredpixeldungeon.items.ArmorKit)1 Item (com.shatteredpixel.shatteredpixeldungeon.items.Item)1 TomeOfMastery (com.shatteredpixel.shatteredpixeldungeon.items.TomeOfMastery)1 Notes (com.shatteredpixel.shatteredpixeldungeon.journal.Notes)1