v2.5.0: fixed anon pot/scrl/rings calling super.desc instead of desc

This commit is contained in:
Evan Debenham
2024-09-05 11:45:05 -04:00
parent 15e16828a6
commit 2cb72f991a
3 changed files with 3 additions and 3 deletions

View File

@@ -379,7 +379,7 @@ public class Potion extends Item {
@Override
public String info() {
//skip custom notes if anonymized and un-Ided
return (anonymous && (handler == null || !handler.isKnown( this ))) ? super.desc() : super.info();
return (anonymous && (handler == null || !handler.isKnown( this ))) ? desc() : super.info();
}
@Override

View File

@@ -181,7 +181,7 @@ public class Ring extends KindofMisc {
//skip custom notes if anonymized and un-Ided
String desc;
if (anonymous && (handler == null || !handler.isKnown( this ))){
desc = super.desc();
desc = desc();
} else {
//otherwise, check for item type note too, rings can have either
Notes.CustomRecord note = Notes.findCustomRecord(getClass());

View File

@@ -242,7 +242,7 @@ public abstract class Scroll extends Item {
@Override
public String info() {
//skip custom notes if anonymized and un-Ided
return (anonymous && (handler == null || !handler.isKnown( this ))) ? super.desc() : super.info();
return (anonymous && (handler == null || !handler.isKnown( this ))) ? desc() : super.info();
}
@Override