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
@@ -40,6 +40,7 @@ import com.shatteredpixel.shatteredpixeldungeon.ui.QuickSlotButton;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
import com.watabou.utils.Bundle;
|
||||
import com.watabou.utils.Callback;
|
||||
import com.watabou.utils.PointF;
|
||||
import com.watabou.utils.Random;
|
||||
|
||||
public abstract class Wand extends Item {
|
||||
@@ -233,6 +234,14 @@ public abstract class Wand extends Item {
|
||||
Sample.INSTANCE.play( Assets.SND_ZAP );
|
||||
}
|
||||
|
||||
public void staffFx( MagesStaff.StaffParticle particle ){
|
||||
particle.color(0xFFFFFF); particle.am = 0.3f;
|
||||
particle.setLifespan( 1f);
|
||||
particle.speed.polar( Random.Float(PointF.PI2), 2f );
|
||||
particle.setSize( 1f, 2.5f );
|
||||
particle.radiateXY(1f);
|
||||
}
|
||||
|
||||
protected void wandUsed() {
|
||||
usagesToKnow -= cursed ? 1 : chargesPerCast();
|
||||
curCharges -= cursed ? 1 : chargesPerCast();
|
||||
|
||||
Reference in New Issue
Block a user