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
@@ -32,6 +32,7 @@ import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
|
||||
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;
|
||||
@@ -207,6 +208,16 @@ public class WandOfTransfusion extends Wand {
|
||||
callback.call();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void staffFx(MagesStaff.StaffParticle particle) {
|
||||
particle.color( 0xCC0000 );
|
||||
particle.am = 0.6f;
|
||||
particle.setLifespan(0.8f);
|
||||
particle.speed.polar( Random.Float(PointF.PI2), 2f );
|
||||
particle.setSize( 1f, 2.5f);
|
||||
particle.radiateXY(1f);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String desc() {
|
||||
return "A fairly plainly shaped wand, it stands out due to its magenta hue and pitch black gem at the tip.\n" +
|
||||
|
||||
Reference in New Issue
Block a user