v0.3.4: changed potion/scroll initials into icons
This commit is contained in:
committed by
Evan Debenham
parent
ff31a1f303
commit
b29d71d2d8
@@ -52,7 +52,7 @@ public class Potion extends Item {
|
||||
|
||||
private static final float TIME_TO_DRINK = 1f;
|
||||
|
||||
protected String initials = Messages.get(this, "initials");
|
||||
protected Integer initials;
|
||||
|
||||
private static final Class<?>[] potions = {
|
||||
PotionOfHealing.class,
|
||||
@@ -270,7 +270,7 @@ public class Potion extends Item {
|
||||
Messages.get(Potion.class, "unknown_desc", color());
|
||||
}
|
||||
|
||||
public String initials(){
|
||||
public Integer initials(){
|
||||
return isKnown() ? initials : null;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
public class PotionOfExperience extends Potion {
|
||||
|
||||
{
|
||||
initials = 0;
|
||||
|
||||
bones = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,10 @@ import com.watabou.utils.PathFinder;
|
||||
public class PotionOfFrost extends Potion {
|
||||
|
||||
private static final int DISTANCE = 2;
|
||||
|
||||
{
|
||||
initials = 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shatter( int cell ) {
|
||||
|
||||
@@ -34,6 +34,8 @@ import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
public class PotionOfHealing extends Potion {
|
||||
|
||||
{
|
||||
initials = 2;
|
||||
|
||||
bones = true;
|
||||
}
|
||||
|
||||
|
||||
+5
-1
@@ -33,7 +33,11 @@ import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
public class PotionOfInvisibility extends Potion {
|
||||
|
||||
private static final float ALPHA = 0.4f;
|
||||
|
||||
|
||||
{
|
||||
initials = 3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply( Hero hero ) {
|
||||
setKnown();
|
||||
|
||||
@@ -34,6 +34,10 @@ import com.watabou.noosa.audio.Sample;
|
||||
|
||||
public class PotionOfLevitation extends Potion {
|
||||
|
||||
{
|
||||
initials = 4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shatter( int cell ) {
|
||||
|
||||
|
||||
@@ -32,7 +32,11 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Fire;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||
|
||||
public class PotionOfLiquidFlame extends Potion {
|
||||
|
||||
|
||||
{
|
||||
initials = 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shatter( int cell ) {
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@ import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
public class PotionOfMight extends Potion {
|
||||
|
||||
{
|
||||
initials = 6;
|
||||
|
||||
bones = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,11 @@ import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
|
||||
public class PotionOfMindVision extends Potion {
|
||||
|
||||
|
||||
{
|
||||
initials = 7;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply( Hero hero ) {
|
||||
setKnown();
|
||||
|
||||
+5
-1
@@ -28,7 +28,11 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.ParalyticGas;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||
|
||||
public class PotionOfParalyticGas extends Potion {
|
||||
|
||||
|
||||
{
|
||||
initials = 8;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shatter( int cell ) {
|
||||
|
||||
|
||||
@@ -43,7 +43,11 @@ import com.watabou.utils.PathFinder;
|
||||
public class PotionOfPurity extends Potion {
|
||||
|
||||
private static final int DISTANCE = 5;
|
||||
|
||||
|
||||
{
|
||||
initials = 9;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shatter( int cell ) {
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@ import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
public class PotionOfStrength extends Potion {
|
||||
|
||||
{
|
||||
initials = 10;
|
||||
|
||||
bones = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,10 @@ import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||
|
||||
public class PotionOfToxicGas extends Potion {
|
||||
|
||||
{
|
||||
initials = 11;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shatter( int cell ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user