v0.4.0: added descriptions to glyphs
This commit is contained in:
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user