v0.7.4: fixed further bugs with wand of warding

This commit is contained in:
Evan Debenham 2019-07-08 22:51:11 -04:00
parent cf86e16f89
commit 23048dc4d8

View File

@ -270,7 +270,7 @@ public class WandOfWarding extends Wand {
spend( 1f ); spend( 1f );
//always hits //always hits
int dmg = Random.Int( 2 + wandLevel, 8 + 4*wandLevel ); int dmg = Random.NormalIntRange( 2 + wandLevel, 8 + 4*wandLevel );
enemy.damage( dmg, WandOfWarding.class ); enemy.damage( dmg, WandOfWarding.class );
if (enemy.isAlive()){ if (enemy.isAlive()){
Wand.processSoulMark(enemy, wandLevel, 1); Wand.processSoulMark(enemy, wandLevel, 1);
@ -375,6 +375,7 @@ public class WandOfWarding extends Wand {
public void restoreFromBundle(Bundle bundle) { public void restoreFromBundle(Bundle bundle) {
super.restoreFromBundle(bundle); super.restoreFromBundle(bundle);
tier = bundle.getInt(TIER); tier = bundle.getInt(TIER);
viewDistance = 2 + tier;
name = Messages.get(this, "name_" + tier ); name = Messages.get(this, "name_" + tier );
wandLevel = bundle.getInt(WAND_LEVEL); wandLevel = bundle.getInt(WAND_LEVEL);
totalZaps = bundle.getInt(TOTAL_ZAPS); totalZaps = bundle.getInt(TOTAL_ZAPS);