v1.2.0: slight balance tweaks to burning and soiled fists
This commit is contained in:
parent
b9db0ce99d
commit
6b7a012414
|
@ -70,9 +70,13 @@ public class Freezing extends Blob {
|
||||||
if (ch.buff(Frost.class) != null){
|
if (ch.buff(Frost.class) != null){
|
||||||
Buff.affect(ch, Frost.class, 2f);
|
Buff.affect(ch, Frost.class, 2f);
|
||||||
} else {
|
} else {
|
||||||
Buff.affect(ch, Chill.class, Dungeon.level.water[cell] ? 5f : 3f);
|
|
||||||
Chill chill = ch.buff(Chill.class);
|
Chill chill = ch.buff(Chill.class);
|
||||||
if (chill != null && chill.cooldown() >= Chill.DURATION){
|
if (chill == null || chill.cooldown() <= Chill.DURATION - 3f) {
|
||||||
|
Buff.affect(ch, Chill.class, Dungeon.level.water[cell] ? 5f : 3f);
|
||||||
|
}
|
||||||
|
if (chill != null
|
||||||
|
&& chill.cooldown() >= Chill.DURATION &&
|
||||||
|
!ch.isImmune(Frost.class)){
|
||||||
Buff.affect(ch, Frost.class, Frost.DURATION);
|
Buff.affect(ch, Frost.class, Frost.DURATION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Blindness;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Cripple;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Cripple;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Frost;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Light;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Light;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Ooze;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Ooze;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Roots;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Roots;
|
||||||
|
@ -245,6 +246,10 @@ public abstract class YogFist extends Mob {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
immunities.add(Frost.class);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class SoiledFist extends YogFist {
|
public static class SoiledFist extends YogFist {
|
||||||
|
@ -294,6 +299,11 @@ public abstract class YogFist extends Mob {
|
||||||
}
|
}
|
||||||
if (grassCells > 0) dmg = Math.round(dmg * (6-grassCells)/6f);
|
if (grassCells > 0) dmg = Math.round(dmg * (6-grassCells)/6f);
|
||||||
|
|
||||||
|
//can be ignited, but takes no damage from burning
|
||||||
|
if (src.getClass() == Burning.class){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
super.damage(dmg, src);
|
super.damage(dmg, src);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -333,11 +343,6 @@ public abstract class YogFist extends Mob {
|
||||||
&& !(Dungeon.level.map[cell] == Terrain.FURROWED_GRASS || Dungeon.level.map[cell] == Terrain.HIGH_GRASS);
|
&& !(Dungeon.level.map[cell] == Terrain.FURROWED_GRASS || Dungeon.level.map[cell] == Terrain.HIGH_GRASS);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
|
||||||
resistances.add(Burning.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class RottingFist extends YogFist {
|
public static class RottingFist extends YogFist {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user