v0.7.4: fixed further bugs with wand of warding
This commit is contained in:
parent
cf86e16f89
commit
23048dc4d8
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user