From bdecd160dba73a8fe090a759ffec6837f3563b9f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 21 Aug 2020 17:11:16 -0400 Subject: [PATCH] v0.8.2c: Reduced damage and armor blocking for gripping/flashing traps --- .../shatteredpixeldungeon/levels/traps/FlashingTrap.java | 2 +- .../shatteredpixeldungeon/levels/traps/GrippingTrap.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/FlashingTrap.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/FlashingTrap.java index 752409eda..34a6ddee7 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/FlashingTrap.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/FlashingTrap.java @@ -59,7 +59,7 @@ public class FlashingTrap extends Trap { Char c = Actor.findChar( pos ); if (c != null) { - int damage = Math.max( 0, (4 + Dungeon.depth) - c.drRoll() ); + int damage = Math.max( 0, (4 + Dungeon.depth/2) - c.drRoll()/2 ); Buff.affect( c, Bleeding.class ).set( damage ); Buff.prolong( c, Blindness.class, Blindness.DURATION ); Buff.prolong( c, Cripple.class, Cripple.DURATION*2f ); diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GrippingTrap.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GrippingTrap.java index a3a4f993e..1db7f077b 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GrippingTrap.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/traps/GrippingTrap.java @@ -57,7 +57,7 @@ public class GrippingTrap extends Trap { Char c = Actor.findChar( pos ); if (c != null && !c.flying) { - int damage = Math.max( 0, (2 + Dungeon.depth) - c.drRoll() ); + int damage = Math.max( 0, (2 + Dungeon.depth/2) - c.drRoll()/2 ); Buff.affect( c, Bleeding.class ).set( damage ); Buff.prolong( c, Cripple.class, Cripple.DURATION); Wound.hit( c );