v0.2.4: corrected enchamtent/glyph logic, renamed scroll of Weapon Upgrade to Scroll of Magical Infusion

This commit is contained in:
Evan Debenham
2015-02-06 15:11:17 -05:00
parent 92afe5977e
commit b2e29708a0
10 changed files with 33 additions and 39 deletions
@@ -56,7 +56,7 @@ public class Weapon extends KindOfWeapon {
private int hitsToKnow = HITS_TO_KNOW;
protected Enchantment enchantment;
public Enchantment enchantment;
@Override
public void proc( Char attacker, Char defender, int damage ) {
@@ -223,7 +223,7 @@ public class Weapon extends KindOfWeapon {
public boolean isEnchanted() {
return enchantment != null;
}
@Override
public ItemSprite.Glowing glowing() {
return enchantment != null ? enchantment.glowing() : null;