v0.6.3: gave the wand of corrosion a new battlemage effect

This commit is contained in:
Evan Debenham 2018-02-01 21:33:28 -05:00 committed by Evan Debenham
parent 0fb0f9ce2a
commit fc5be115aa
2 changed files with 12 additions and 5 deletions

View File

@ -21,7 +21,6 @@
package com.shatteredpixel.shatteredpixeldungeon.actors.buffs;
import com.shatteredpixel.shatteredpixeldungeon.Badges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
@ -30,7 +29,6 @@ import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
import com.watabou.noosa.Image;
import com.watabou.utils.Bundle;
//FIXME do proper translation stuff for new text here in 0.6.3 (heromsg, ondeath, rankings_desc)
public class Corrosion extends Buff implements Hero.Doom {
private float damage = 1;

View File

@ -27,10 +27,11 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.CorrosiveGas;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Ooze;
import com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter;
import com.shatteredpixel.shatteredpixeldungeon.effects.MagicMissile;
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.CorrosionParticle;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments.Venomous;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.MagesStaff;
import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
@ -39,6 +40,7 @@ import com.watabou.noosa.audio.Sample;
import com.watabou.utils.Callback;
import com.watabou.utils.ColorMath;
import com.watabou.utils.PathFinder;
import com.watabou.utils.Random;
public class WandOfCorrosion extends Wand {
@ -80,8 +82,15 @@ public class WandOfCorrosion extends Wand {
@Override
public void onHit(MagesStaff staff, Char attacker, Char defender, int damage) {
//TODO
new Venomous().proc(staff, attacker, defender, damage);
// lvl 0 - 33%
// lvl 1 - 50%
// lvl 2 - 60%
if (Random.Int( level() + 3 ) >= 2) {
Buff.affect( defender, Ooze.class );
CellEmitter.center(defender.pos).burst( CorrosionParticle.SPLASH, 5 );
}
}
@Override