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()));
}
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"));
}
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);
}
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"));
}
Aggregations