v0.3.0: added chilled debuff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user