V0.1.0 updated potions

potion of frost buffed, now stronger in water & hurts fire elementals
potion of purity buffed, gas immunity significantly longer
This commit is contained in:
Evan Debenham
2014-08-03 17:42:12 -04:00
parent bfe4a59e08
commit 36b4b82454
4 changed files with 13 additions and 4 deletions
@@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Frost;
import com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter;
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.SnowParticle;
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.watabou.utils.Random;
public class Freezing {
@@ -35,7 +36,11 @@ public class Freezing {
Char ch = Actor.findChar( cell );
if (ch != null) {
Buff.prolong( ch, Frost.class, Frost.duration( ch ) * Random.Float( 1.0f, 1.5f ) );
if (Level.water[ch.pos] && !ch.flying){
Buff.prolong(ch, Frost.class, Frost.duration(ch) * Random.Float(3.0f, 4.5f));
} else {
Buff.prolong(ch, Frost.class, Frost.duration(ch) * Random.Float(1.0f, 1.5f));
}
}
if (fire != null) {