v0.4.0: refactoring for enchant/glyph referencing

This commit is contained in:
Evan Debenham
2016-06-15 03:03:27 -04:00
committed by Evan Debenham
parent 4c8bcade38
commit 912fd447d0
11 changed files with 24 additions and 28 deletions
@@ -96,8 +96,7 @@ public class HighGrass {
}
//Camouflage
if (hero.belongings.armor != null && hero.belongings.armor.glyph != null
&& hero.belongings.armor.glyph instanceof Camouflage){
if (hero.belongings.armor != null && hero.belongings.armor.hasGlyph(Camouflage.class)){
Buff.affect(hero, Camouflage.Camo.class).set(3 + hero.belongings.armor.level());
leaves += 4;
}