v0.6.1: prevented the troll blacksmith from destroying the broken seal

This commit is contained in:
Evan Debenham 2017-08-06 20:36:55 -04:00
parent dcf59af491
commit 91e457c2eb

View File

@ -26,8 +26,10 @@ import com.shatteredpixel.shatteredpixeldungeon.Badges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.items.BrokenSeal;
import com.shatteredpixel.shatteredpixeldungeon.items.EquipableItem;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.armor.Armor;
import com.shatteredpixel.shatteredpixeldungeon.items.quest.DarkGold;
import com.shatteredpixel.shatteredpixeldungeon.items.quest.Pickaxe;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfUpgrade;
@ -201,6 +203,13 @@ public class Blacksmith extends NPC {
}
second.detachAll( Dungeon.hero.belongings.backpack );
if (second instanceof Armor){
BrokenSeal seal = ((Armor) second).checkSeal();
if (seal != null){
Dungeon.level.drop( seal, Dungeon.hero.pos );
}
}
Quest.reforged = true;
Notes.remove( Notes.Landmark.TROLL );