diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java index 3dfb354d7..08f20f22c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/armor/Armor.java @@ -635,7 +635,7 @@ public class Armor extends EquipableItem { if (seal != null){ seal.setGlyph(glyph); } - if (isIdentified() && Dungeon.hero != null + if (glyph != null && isIdentified() && Dungeon.hero != null && Dungeon.hero.isAlive() && Dungeon.hero.belongings.contains(this)){ Catalog.setSeen(glyph.getClass()); } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/Weapon.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/Weapon.java index 1726836a0..4f9a18ff8 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/Weapon.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/Weapon.java @@ -353,7 +353,7 @@ abstract public class Weapon extends KindOfWeapon { if (ench == null || !ench.curse()) curseInfusionBonus = false; enchantment = ench; updateQuickslot(); - if (isIdentified() && Dungeon.hero != null + if (ench != null && isIdentified() && Dungeon.hero != null && Dungeon.hero.isAlive() && Dungeon.hero.belongings.contains(this)){ Catalog.setSeen(ench.getClass()); }