v0.3.0: added chilled debuff

This commit is contained in:
Evan Debenham
2015-04-25 01:33:50 -04:00
parent 6507df2824
commit 3f1043e4b9
9 changed files with 121 additions and 14 deletions
@@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.food.FrozenCarpaccio;
import com.shatteredpixel.shatteredpixeldungeon.items.food.MysteryMeat;
import com.shatteredpixel.shatteredpixeldungeon.items.potions.Potion;
import com.shatteredpixel.shatteredpixeldungeon.items.rings.RingOfElements.Resistance;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
@@ -40,7 +41,8 @@ public class Frost extends FlavourBuff {
if (super.attachTo( target )) {
target.paralysed = true;
Burning.detach( target, Burning.class );
Buff.detach( target, Burning.class );
Buff.detach( target, Chill.class );
if (target instanceof Hero) {
@@ -80,6 +82,9 @@ public class Frost extends FlavourBuff {
public void detach() {
super.detach();
Paralysis.unfreeze( target );
if (Level.water[target.pos]){
Buff.prolong(target, Chill.class, 6f);
}
}
@Override