From e4c6c2edfb20e09286af6341c9d26a9255166834 Mon Sep 17 00:00:00 2001 From: hppeng Date: Sun, 4 Sep 2022 12:41:42 -0700 Subject: [PATCH] Implement wynn2 powder specials --- builder/index.html | 2 +- builder/index_full.html | 50 ++++++++++++++++++------------------- js/builder/builder_graph.js | 8 +++--- js/powders.js | 10 ++++---- 4 files changed, 34 insertions(+), 36 deletions(-) diff --git a/builder/index.html b/builder/index.html index e7ce36c..646a0bd 100644 --- a/builder/index.html +++ b/builder/index.html @@ -1,2 +1,2 @@ - WynnBuilder
Join the discord today to suggest new features, submit bug reports, and hangout/talk to devs!

Equipments

Ability Tree

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Level:
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Active boosts
Earth
Thunder
Water
Fire
Air
Curse (Active)
Concentration (Passive)
Detailed
Summary
Input a weapon to see abilities!

Made by hppeng, ferricles, and reschan with Atlas Inc (JavaScript required to function, nothing works without js)

Hard refresh the page (Ctrl+Shift+R on windows/chrome) if it isn't updating correctly.

+ WynnBuilder
Join the discord today to suggest new features, submit bug reports, and hangout/talk to devs!

Equipments

Ability Tree

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Level:
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Assign: 0
Original: 0
Active boosts
Earth
Thunder
Water
Fire
Air
Curse (Active)
Concentration (Passive)
Detailed
Summary
Input a weapon to see abilities!

Made by hppeng, ferricles, and reschan with Atlas Inc (JavaScript required to function, nothing works without js)

Hard refresh the page (Ctrl+Shift+R on windows/chrome) if it isn't updating correctly.

diff --git a/builder/index_full.html b/builder/index_full.html index 4a3cef7..f9dd45d 100644 --- a/builder/index_full.html +++ b/builder/index_full.html @@ -503,19 +503,19 @@
@@ -528,19 +528,19 @@
@@ -553,19 +553,19 @@
@@ -578,19 +578,19 @@
@@ -603,19 +603,19 @@
diff --git a/js/builder/builder_graph.js b/js/builder/builder_graph.js index 377876b..a9fa225 100644 --- a/js/builder/builder_graph.js +++ b/js/builder/builder_graph.js @@ -96,12 +96,10 @@ class PowderSpecialCalcNode extends ComputeNode { for (const [special, power] of powder_specials) { if (special["weaponSpecialEffects"].has("Damage Boost")) { let name = special["weaponSpecialName"]; - if (name === "Courage" || name === "Curse") { //courage and curse are is universal damage boost - stats.set("sdPct", special.weaponSpecialEffects.get("Damage Boost")[power-1]); - stats.set("mdPct", special.weaponSpecialEffects.get("Damage Boost")[power-1]); + if (name === "Courage" || name === "Curse" || name == "Wind Prison") { // Master mod all the way + stats.set("damMult."+name, special.weaponSpecialEffects.get("Damage Boost")[power-1]); + // legacy stats.set("poisonPct", special.weaponSpecialEffects.get("Damage Boost")[power-1]); - } else if (name === "Wind Prison") { - stats.set("aDamPct", special.weaponSpecialEffects.get("Damage Boost")[power-1]); } } } diff --git a/js/powders.js b/js/powders.js index a75cf9a..c48344f 100644 --- a/js/powders.js +++ b/js/powders.js @@ -55,11 +55,11 @@ class PowderSpecial{ function _ps(a,b,c,d,e) { return new PowderSpecial(a,b,c,d,e); } //bruh moment let powderSpecialStats = [ - _ps("Quake",new Map([["Radius",[4.4,4.9,5.4,5.9,6.4]], ["Damage",[155,220,285,350,415]] ]),"Rage",new Map([ ["Damage", [0.3,0.4,0.5,0.7,1.0]],["Description", "% " + "\u2764" + " Missing"] ]), 396), //e - _ps("Chain Lightning",new Map([ ["Chains", [5,6,7,8,9]], ["Damage", [200,225,250,275,300]] ]),"Kill Streak",new Map([ ["Damage", [3,4.5,6,7.5,9]],["Duration", [5,5,5,5,5]],["Description", "Mob Killed"] ]),200), //t - _ps("Curse",new Map([ ["Duration", [7,7.5,8,8.5,9]],["Damage Boost", [90,120,150,180,210]] ]),"Concentration",new Map([ ["Damage", [1,2,3,4,5]],["Duration",[1,1,1,1,1]],["Description", "Mana Used"] ]),150), //w - _ps("Courage",new Map([ ["Duration", [6,6.5,7,7.5,8]],["Damage", [75,87.5,100,112.5,125]],["Damage Boost", [70,90,110,130,150]] ]),"Endurance",new Map([ ["Damage", [2,3,4,5,6]],["Duration", [8,8,8,8,8]],["Description", "Hit Taken"] ]),200), //f - _ps("Wind Prison",new Map([ ["Duration", [3,3.5,4,4.5,5]],["Damage Boost", [400,450,500,550,600]],["Knockback", [8,12,16,20,24]] ]),"Dodge",new Map([ ["Damage",[2,3,4,5,6]],["Duration",[2,3,4,5,6]],["Description","Near Mobs"] ]),150) //a + _ps("Quake",new Map([["Radius",[4.5,5,5.5,6,6.5]], ["Damage",[240,280,320,360,400]] ]),"Rage",new Map([ ["Damage", [0.2,0.4,0.6,0.8,1.0]],["Description", "% " + "\u2764" + " Missing below 75%"] ]),300), //e + _ps("Chain Lightning",new Map([ ["Chains", [5,6,7,8,9]], ["Damage", [200,225,250,275,300]] ]),"Kill Streak",new Map([ ["Damage", [3,4.5,6,7.5,9]],["Duration", [5,5,5,5,5]],["Description", "Mob Killed"] ]),150), //t + _ps("Curse",new Map([ ["Duration", [4,4,4,4,4]],["Damage Boost", [10,15,20,25,30]] ]),"Concentration",new Map([ ["Damage", [0.05,0.1,0.15,0.2,0.25]],["Duration",[1,1,1,1,1]],["Description", "Mana Used"] ]),100), //w + _ps("Courage",new Map([ ["Duration", [4,4,4,4,4]],["Damage", [60, 70, 80, 90, 100]],["Damage Boost", [10,12.5,15,17.5,20]] ]),"Endurance",new Map([ ["Damage", [2,3,4,5,6]],["Duration", [8,8,8,8,8]],["Description", "Hit Taken"] ]),100), //f + _ps("Wind Prison",new Map([ ["Duration", [3,3.5,4,4.5,5]],["Damage Boost", [100,125,150,175,200]],["Knockback", [8,12,16,20,24]] ]),"Dodge",new Map([ ["Damage",[2,3,4,5,6]],["Duration",[2,3,4,5,6]],["Description","Near Mobs"] ]),150) //a ]; /**