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
@@ -56,6 +56,8 @@ public class Potion extends Item {
"Are you sure you want to throw it? In most cases it makes sense to drink it.";
private static final float TIME_TO_DRINK = 1f;
protected String initials;
private static final Class<?>[] potions = {
PotionOfHealing.class,
@@ -269,6 +271,10 @@ public class Potion extends Item {
"This flask contains a swirling " + color + " liquid. " +
"Who knows what it will do when drunk or thrown?";
}
public String initials(){
return isKnown() ? initials : null;
}
@Override
public boolean isIdentified() {