From af4380eaa19c01215bb930ca6904d4e77587af8d Mon Sep 17 00:00:00 2001 From: FreezePhoenix <24441367+FreezePhoenix@users.noreply.github.com> Date: Sun, 12 Nov 2023 23:19:57 -0500 Subject: [PATCH 1/4] Add Attr0 (proc chance) to sugarrush --- design/items.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/design/items.py b/design/items.py index 9726704..068351d 100644 --- a/design/items.py +++ b/design/items.py @@ -3300,6 +3300,7 @@ weapons={ "explosion":20, "skin":"glolipop", "ability":"sugarrush", + "attr0": 0.25, "damage_type":"physical", "upgrade":{ "explosion":2, @@ -3317,6 +3318,7 @@ weapons={ "skin":"ololipop", "damage_type":"physical", "ability":"sugarrush", + "attr0": 0.25, "upgrade":{ "explosion":2, }, @@ -3497,6 +3499,7 @@ weapons={ "skin":"candycanesword", "damage_type":"physical", "ability":"sugarrush", + "attr0": 0.25, "upgrade":{ "range":-0.5, }, 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 2/4] 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 From 90c3e1c91b976974095b4ff6b53a0bacae720ac5 Mon Sep 17 00:00:00 2001 From: FreezePhoenix <24441367+FreezePhoenix@users.noreply.github.com> Date: Sun, 12 Nov 2023 23:24:40 -0500 Subject: [PATCH 3/4] Satisfy Prettier --- node/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/server.js b/node/server.js index b56a518..1b17df9 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() < (attacker.a.sugarrush.attr0 / 100)) { + 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 From d0bd4240e97e59c13ef6108bd96dbf81715cd729 Mon Sep 17 00:00:00 2001 From: FreezePhoenix <24441367+FreezePhoenix@users.noreply.github.com> Date: Sun, 12 Nov 2023 23:33:02 -0500 Subject: [PATCH 4/4] Update Sugar Rush tooltip --- js/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/html.js b/js/html.js index 32cd3f0..155bbc4 100644 --- a/js/html.js +++ b/js/html.js @@ -3190,7 +3190,7 @@ function render_item(selector,args) else if(item.ability=="sugarrush") { html+=bold_prop_line("Ability","Sugar Rush","#D64770"); - html+="