v0.3.0: reworked lightning effect and wand of lightning

This commit is contained in:
Evan Debenham
2015-05-01 07:46:14 -04:00
parent a46cfbac80
commit 4b680c93ad
6 changed files with 149 additions and 150 deletions
@@ -24,8 +24,6 @@ import com.shatteredpixel.shatteredpixeldungeon.effects.Lightning;
public class ShamanSprite extends MobSprite {
private int[] points = new int[2];
public ShamanSprite() {
super();
@@ -51,10 +49,8 @@ public class ShamanSprite extends MobSprite {
}
public void zap( int pos ) {
points[0] = ch.pos;
points[1] = pos;
parent.add( new Lightning( points, 2, (Shaman)ch ) );
parent.add( new Lightning( ch.pos, pos, (Shaman)ch ) );
turnTo( ch.pos, pos );
play( zap );