v0.2.4d: added name initials for identified potions and scrolls

This commit is contained in:
Evan Debenham
2015-03-21 15:37:33 -04:00
parent b6a1e3ec9e
commit 394d7a0a73
27 changed files with 59 additions and 3 deletions
@@ -40,7 +40,9 @@ public abstract class Scroll extends Item {
public static final String AC_READ = "READ";
protected static final float TIME_TO_READ = 1f;
protected String initials;
private static final Class<?>[] scrolls = {
ScrollOfIdentify.class,
ScrollOfMagicMapping.class,
@@ -169,6 +171,10 @@ public abstract class Scroll extends Item {
"This parchment is covered with indecipherable writing, and bears a title " +
"of rune " + rune + ". Who knows what it will do when read aloud?";
}
public String initials(){
return isKnown() ? initials : null;
}
@Override
public boolean isUpgradable() {