use of com.watabou.pixeldungeon.items.TomeOfMastery 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...");
}
Aggregations