v1.2.0: slight balance tweaks to burning and soiled fists

This commit is contained in:
Evan Debenham 2022-03-14 19:45:05 -04:00
parent b9db0ce99d
commit 6b7a012414
2 changed files with 16 additions and 7 deletions

View File

@ -70,9 +70,13 @@ public class Freezing extends Blob {
if (ch.buff(Frost.class) != null){
Buff.affect(ch, Frost.class, 2f);
} else {
Buff.affect(ch, Chill.class, Dungeon.level.water[cell] ? 5f : 3f);
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);
}
}

View File

@ -32,6 +32,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Blindness;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Burning;
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.Ooze;
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 {
@ -294,6 +299,11 @@ public abstract class YogFist extends Mob {
}
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);
}
@ -333,11 +343,6 @@ public abstract class YogFist extends Mob {
&& !(Dungeon.level.map[cell] == Terrain.FURROWED_GRASS || Dungeon.level.map[cell] == Terrain.HIGH_GRASS);
}
{
resistances.add(Burning.class);
}
}
public static class RottingFist extends YogFist {