v2.5.0: fixed catalog showing notes for unknown pots/scrolls/rings
This commit is contained in:
@@ -379,7 +379,7 @@ public class Potion extends Item {
|
||||
@Override
|
||||
public String info() {
|
||||
//skip custom notes if anonymized and un-Ided
|
||||
return (anonymous && !isIdentified()) ? super.desc() : super.info();
|
||||
return (anonymous && !handler.isKnown( this )) ? super.desc() : super.info();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -177,7 +177,7 @@ public class Ring extends KindofMisc {
|
||||
public String info(){
|
||||
|
||||
//skip custom notes if anonymized and un-Ided
|
||||
String desc = (anonymous && !isIdentified()) ? super.desc() : super.info();
|
||||
String desc = (anonymous && !handler.isKnown( this )) ? super.desc() : super.info();
|
||||
|
||||
if (cursed && isEquipped( Dungeon.hero )) {
|
||||
desc += "\n\n" + Messages.get(Ring.class, "cursed_worn");
|
||||
|
||||
@@ -242,7 +242,7 @@ public abstract class Scroll extends Item {
|
||||
@Override
|
||||
public String info() {
|
||||
//skip custom notes if anonymized and un-Ided
|
||||
return (anonymous && !isIdentified()) ? super.desc() : super.info();
|
||||
return (anonymous && !handler.isKnown( this )) ? super.desc() : super.info();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user