v0.4.0: added vfx to some enchants

This commit is contained in:
Evan Debenham 2016-06-06 03:02:54 -04:00
parent 33fef18f96
commit 26337d4dae
3 changed files with 10 additions and 2 deletions

View File

@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Chill;
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite.Glowing;
@ -41,8 +42,8 @@ public class Chilling extends Weapon.Enchantment {
if (Random.Int( level + 5 ) >= 4) {
Buff.prolong( defender, Chill.class,
Random.Float( 2f, 3f ) );
Buff.prolong( defender, Chill.class, Random.Float( 2f, 3f ) );
Splash.at( defender.sprite.center(), 0xFFB2D6FF, 5);
}

View File

@ -23,6 +23,8 @@ package com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Poison;
import com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter;
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.PoisonParticle;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite.Glowing;
@ -42,6 +44,7 @@ public class Venomous extends Weapon.Enchantment {
if (Random.Int( level + 3 ) >= 2) {
Buff.affect( defender, Poison.class ).extend( Poison.durationFactor( defender ) * ((level/2) + 1) );
CellEmitter.center(defender.pos).burst( PoisonParticle.SPLASH, 5 );
}

View File

@ -23,8 +23,10 @@ package com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Bleeding;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.effects.Splash;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.Weapon;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSprite;
import com.watabou.utils.PointF;
import com.watabou.utils.Random;
public class Vorpal extends Weapon.Enchantment {
@ -41,6 +43,8 @@ public class Vorpal extends Weapon.Enchantment {
if (Random.Int( level + 3 ) >= 2) {
Buff.affect(defender, Bleeding.class).set(damage/4);
Splash.at( defender.sprite.center(), -PointF.PI / 2, PointF.PI / 6,
defender.sprite.blood(), 10 );
}