From ff9a95f4f768cf1b64ad2f8702e62840bd727041 Mon Sep 17 00:00:00 2001 From: FreezePhoenix <24441367+FreezePhoenix@users.noreply.github.com> Date: Sun, 12 Nov 2023 23:23:26 -0500 Subject: [PATCH] Add proc chance capabilities to Sugarrush --- node/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/server.js b/node/server.js index cb7cc21..b56a518 100644 --- a/node/server.js +++ b/node/server.js @@ -3476,7 +3476,7 @@ function complete_attack(attacker, target, info) { add_condition(target, c); } }); - if (info.procs && attacker.a.sugarrush && Math.random() < 0.0025) { + if (info.procs && attacker.a.sugarrush && Math.random() < (attacker.a.sugarrush.attr0 / 100)) { def.trigger = "sugarrush"; add_condition(attacker, "sugarrush"); disappearing_text(attacker.socket, attacker, "SUGAR RUSH!", { xy: 1, size: "huge", color: "sugar", nv: 1 }); //target.is_player&&"huge"||undefined