v0.4.0: added descriptions to glyphs

This commit is contained in:
Evan Debenham
2016-06-05 14:42:41 -04:00
parent 7d97caa406
commit f3b891b5b4
4 changed files with 25 additions and 3 deletions
@@ -281,6 +281,7 @@ public class Armor extends EquipableItem {
if (glyph != null) {
info += "\n\n" + Messages.get(Armor.class, "inscribed", glyph.name());
info += " " + glyph.desc();
}
if (cursed && isEquipped( Dungeon.hero )) {
@@ -404,7 +405,7 @@ public class Armor extends EquipableItem {
private static final float[] chances= new float[]{
10, 10, 10, 10,
5, 5, 5, 500, 5, 5,
5, 5, 5, 5, 5, 5,
2, 2, 2 };
public abstract int proc( Armor armor, Char attacker, Char defender, int damage );
@@ -416,6 +417,10 @@ public class Armor extends EquipableItem {
public String name( String armorName ) {
return Messages.get(this, "name", armorName);
}
public String desc() {
return Messages.get(this, "desc");
}
@Override
public void restoreFromBundle( Bundle bundle ) {
@@ -33,7 +33,7 @@ import com.watabou.utils.Random;
public class Potential extends Glyph {
private static ItemSprite.Glowing WHITE = new ItemSprite.Glowing( 0xFFFFFF, 0.5f );
private static ItemSprite.Glowing WHITE = new ItemSprite.Glowing( 0xFFFFFF, 0.6f );
@Override
public int proc( Armor armor, Char attacker, Char defender, int damage) {
@@ -35,7 +35,7 @@ import java.util.HashSet;
public class Shocking extends Weapon.Enchantment {
private static ItemSprite.Glowing WHITE = new ItemSprite.Glowing( 0xFFFFFF, 0.5f );
private static ItemSprite.Glowing WHITE = new ItemSprite.Glowing( 0xFFFFFF, 0.6f );
@Override
public int proc( Weapon weapon, Char attacker, Char defender, int damage ) {