From 27bec7f3779a85ee539e5a3fadbbbc93191b7a68 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 13 Jun 2022 11:49:16 -0400 Subject: [PATCH] v1.3.0: fixed explosive not working with proc chance boosters --- .../shatteredpixeldungeon/items/weapon/curses/Explosive.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/curses/Explosive.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/curses/Explosive.java index 1d8199762..48d75ddab 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/curses/Explosive.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/curses/Explosive.java @@ -47,7 +47,7 @@ public class Explosive extends Weapon.Enchantment { public int proc( Weapon weapon, Char attacker, Char defender, int damage ) { //average value of 5, or 20 hits to an explosion - int durToReduce = Random.IntRange(0, 10); + int durToReduce = Math.round(Random.IntRange(0, 10) * procChanceMultiplier(attacker)); int currentDurability = durability; durability -= durToReduce;