v0.4.1: big armor redesign

This commit is contained in:
Evan Debenham
2016-07-01 06:03:34 -04:00
parent f93b2ac723
commit 2d088c8983
45 changed files with 153 additions and 129 deletions
@@ -29,7 +29,6 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Cripple;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Roots;
import com.shatteredpixel.shatteredpixeldungeon.effects.Wound;
import com.shatteredpixel.shatteredpixeldungeon.sprites.TrapSprite;
import com.watabou.utils.Random;
public class GrippingTrap extends Trap {
@@ -44,7 +43,7 @@ public class GrippingTrap extends Trap {
Char c = Actor.findChar( pos );
if (c != null) {
int damage = Math.max( 0, (Dungeon.depth) - Random.IntRange( 0, c.dr() / 2 ) );
int damage = Math.max( 0, (Dungeon.depth) - ( c.drRoll() / 2 ) );
Buff.affect( c, Bleeding.class ).set( damage );
Buff.prolong( c, Cripple.class, 15f);
Buff.prolong( c, Roots.class, 5f);