v2.5.0: weapons/armor setting enchants/glyphs as seen from rankings
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user