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