mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-24 22:20:14 -05:00
Merge pull request #60 from FreezePhoenix/patch-6
Make Sugar Rush more consistent with the other abilities
This commit is contained in:
@@ -3300,6 +3300,7 @@ weapons={
|
|||||||
"explosion":20,
|
"explosion":20,
|
||||||
"skin":"glolipop",
|
"skin":"glolipop",
|
||||||
"ability":"sugarrush",
|
"ability":"sugarrush",
|
||||||
|
"attr0": 0.25,
|
||||||
"damage_type":"physical",
|
"damage_type":"physical",
|
||||||
"upgrade":{
|
"upgrade":{
|
||||||
"explosion":2,
|
"explosion":2,
|
||||||
@@ -3317,6 +3318,7 @@ weapons={
|
|||||||
"skin":"ololipop",
|
"skin":"ololipop",
|
||||||
"damage_type":"physical",
|
"damage_type":"physical",
|
||||||
"ability":"sugarrush",
|
"ability":"sugarrush",
|
||||||
|
"attr0": 0.25,
|
||||||
"upgrade":{
|
"upgrade":{
|
||||||
"explosion":2,
|
"explosion":2,
|
||||||
},
|
},
|
||||||
@@ -3497,6 +3499,7 @@ weapons={
|
|||||||
"skin":"candycanesword",
|
"skin":"candycanesword",
|
||||||
"damage_type":"physical",
|
"damage_type":"physical",
|
||||||
"ability":"sugarrush",
|
"ability":"sugarrush",
|
||||||
|
"attr0": 0.25,
|
||||||
"upgrade":{
|
"upgrade":{
|
||||||
"range":-0.5,
|
"range":-0.5,
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -3190,7 +3190,7 @@ function render_item(selector,args)
|
|||||||
else if(item.ability=="sugarrush")
|
else if(item.ability=="sugarrush")
|
||||||
{
|
{
|
||||||
html+=bold_prop_line("Ability","Sugar Rush","#D64770");
|
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")
|
else if(item.ability=="restore_mp")
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -3476,7 +3476,7 @@ function complete_attack(attacker, target, info) {
|
|||||||
add_condition(target, c);
|
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";
|
def.trigger = "sugarrush";
|
||||||
add_condition(attacker, "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
|
disappearing_text(attacker.socket, attacker, "SUGAR RUSH!", { xy: 1, size: "huge", color: "sugar", nv: 1 }); //target.is_player&&"huge"||undefined
|
||||||
|
|||||||
Reference in New Issue
Block a user