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

View File

@ -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) {
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) {

View File

@ -20,11 +20,13 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.buffs;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Elemental;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.food.FrozenCarpaccio;
import com.shatteredpixel.shatteredpixeldungeon.items.food.MysteryMeat;
import com.shatteredpixel.shatteredpixeldungeon.items.rings.RingOfElements.Resistance;
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
import com.watabou.utils.Random;
public class Frost extends FlavourBuff {
@ -36,7 +38,8 @@ public class Frost extends FlavourBuff {
target.paralysed = true;
Burning.detach( target, Burning.class );
if (target instanceof Elemental)
target.damage(Random.IntRange(0, 15), this);
if (target instanceof Hero) {
Hero hero = (Hero)target;
Item item = hero.belongings.randomUnequipped();

View File

@ -24,7 +24,7 @@ import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
public class GasesImmunity extends FlavourBuff {
public static final float DURATION = 5f;
public static final float DURATION = 15f;
@Override
public int icon() {

View File

@ -57,7 +57,8 @@ public class PotionOfFrost extends Potion {
public String desc() {
return
"Upon exposure to open air this chemical will evaporate into a freezing cloud, causing " +
"any creature that contacts it to be frozen in place unable to act and move.";
"any creature that contacts it to be frozen in place unable to act and move." +
"The freezing effect is enhanced if the creature is already wet.";
}
@Override