v1.3.0: fixed explosive not working with proc chance boosters

This commit is contained in:
Evan Debenham
2022-06-13 11:49:16 -04:00
parent 494f4c7ef2
commit 27bec7f377

View File

@@ -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;