v1.3.0: fixed explosive not working with proc chance boosters
This commit is contained in:
@@ -47,7 +47,7 @@ public class Explosive extends Weapon.Enchantment {
|
|||||||
public int proc( Weapon weapon, Char attacker, Char defender, int damage ) {
|
public int proc( Weapon weapon, Char attacker, Char defender, int damage ) {
|
||||||
|
|
||||||
//average value of 5, or 20 hits to an explosion
|
//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;
|
int currentDurability = durability;
|
||||||
durability -= durToReduce;
|
durability -= durToReduce;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user