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() {
@@ -23,6 +23,7 @@ public class PotionOfExperience extends Potion {
{
name = "Potion of Experience";
initials = "Ex";
bones = true;
}
@@ -32,6 +32,7 @@ public class PotionOfFrost extends Potion {
{
name = "Potion of Frost";
initials = "Fr";
}
@Override
@@ -31,6 +31,7 @@ public class PotionOfHealing extends Potion {
{
name = "Potion of Healing";
initials = "He";
bones = true;
}
@@ -32,6 +32,7 @@ public class PotionOfInvisibility extends Potion {
{
name = "Potion of Invisibility";
initials = "In";
}
@Override
@@ -32,6 +32,7 @@ public class PotionOfLevitation extends Potion {
{
name = "Potion of Levitation";
initials = "Le";
}
@Override
@@ -32,6 +32,7 @@ public class PotionOfLiquidFlame extends Potion {
{
name = "Potion of Liquid Flame";
initials = "LF";
}
@Override
@@ -26,6 +26,7 @@ public class PotionOfMight extends PotionOfStrength {
{
name = "Potion of Might";
initials = "Mi";
bones = true;
}
@@ -27,6 +27,7 @@ public class PotionOfMindVision extends Potion {
{
name = "Potion of Mind Vision";
initials = "MV";
}
@Override
@@ -28,6 +28,7 @@ public class PotionOfParalyticGas extends Potion {
{
name = "Potion of Paralytic Gas";
initials = "PG";
}
@Override
@@ -44,6 +44,7 @@ public class PotionOfPurity extends Potion {
{
name = "Potion of Purification";
initials = "Pu";
}
@Override
@@ -26,6 +26,7 @@ public class PotionOfStrength extends Potion {
{
name = "Potion of Strength";
initials = "St";
bones = true;
}
@@ -20,7 +20,6 @@ package com.shatteredpixel.shatteredpixeldungeon.items.potions;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.watabou.noosa.audio.Sample;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ToxicGas;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
@@ -29,6 +28,7 @@ public class PotionOfToxicGas extends Potion {
{
name = "Potion of Toxic Gas";
initials = "TG";
}
@Override