v0.3.0c: refactored staff visual effects to be contained in wands.
This commit is contained in:
committed by
Evan Debenham
parent
6efa4694b8
commit
c5e9ffa9fe
@@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
import com.watabou.utils.Callback;
|
||||
import com.watabou.utils.PointF;
|
||||
import com.watabou.utils.Random;
|
||||
|
||||
import java.util.Arrays;
|
||||
@@ -139,6 +140,16 @@ public class WandOfPrismaticLight extends Wand {
|
||||
new Paralysis().proc(staff, attacker, defender, damage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void staffFx(MagesStaff.StaffParticle particle) {
|
||||
particle.color( Random.Int( 0x1000000 ) );
|
||||
particle.am = 0.3f;
|
||||
particle.setLifespan(1f);
|
||||
particle.speed.polar(Random.Float(PointF.PI2), 2f);
|
||||
particle.setSize( 1f, 2.5f);
|
||||
particle.radiateXY(1f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String desc() {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user