v2.5.0: fixed anon pot/scrl/rings calling super.desc instead of desc
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 && (handler == null || !handler.isKnown( this ))) ? super.desc() : super.info();
|
||||
return (anonymous && (handler == null || !handler.isKnown( this ))) ? desc() : super.info();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user