v2.5.0: weapons/armor setting enchants/glyphs as seen from rankings

This commit is contained in:
Evan Debenham
2024-08-22 13:07:05 -04:00
parent 992080252f
commit 364b2ee5bd
2 changed files with 2 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ public class Armor extends EquipableItem {
@Override
public boolean collect(Bag container) {
if(super.collect(container)){
if (isIdentified() && glyph != null){
if (Dungeon.hero != null && Dungeon.hero.isAlive() && isIdentified() && glyph != null){
Catalog.setSeen(glyph.getClass());
}
return true;

View File

@@ -182,7 +182,7 @@ abstract public class Weapon extends KindOfWeapon {
@Override
public boolean collect(Bag container) {
if(super.collect(container)){
if (isIdentified() && enchantment != null){
if (Dungeon.hero != null && Dungeon.hero.isAlive() && isIdentified() && enchantment != null){
Catalog.setSeen(enchantment.getClass());
}
return true;