Merge pull request #60 from FreezePhoenix/patch-6

Make Sugar Rush more consistent with the other abilities
This commit is contained in:
Kaan Soral
2023-11-15 18:17:03 +03:00
committed by GitHub
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -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,
},
+1 -1
View File
@@ -3190,7 +3190,7 @@ function render_item(selector,args)
else if(item.ability=="sugarrush")
{
html+=bold_prop_line("Ability","Sugar Rush","#D64770");
html+="<div style='color: #C3C3C3'>"+"Trigger a Sugar Rush on attack with 0.25% chance. Gain 240 Attack Speed for 10 seconds!</div>";
html+="<div style='color: #C3C3C3'>"+"Trigger a Sugar Rush on attack with "+prop.attr0+"% chance. Gain 240 Attack Speed for 10 seconds!</div>";
}
else if(item.ability=="restore_mp")
{
+1 -1
View File
@@ -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