Wynncon support (maybe breaks everything idk)

This commit is contained in:
b 2021-08-07 16:15:44 -07:00
parent dd669afdfc
commit af019c02d2
9 changed files with 24 additions and 41 deletions

View file

@ -1,19 +0,0 @@
<!DOCTYPE html>
<html scroll-behavior="smooth">
<head>
<meta charset="UTF-8" />
<meta name="HandheldFriendly" content="true" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width, user-scalable=no" />
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="TODO give image">
<link rel="manifest" href="manifest.json">
<title>WynnBuilder</title>
</head>
<body>
<p> Hello world! </p>
<script type="text/javascript" src="index.js"></script>
</body>
</html>

View file

@ -1,7 +0,0 @@
let url = "https://media.discordapp.net/attachments/662775844032348171/872287608061952062/unknown.png?width=735&height=613";
let img = document.createElement('img');
img.src = url;
document.body.appendChild(img);

View file

@ -1,4 +0,0 @@
{
"display": "standalone",
"orientation": "portrait"
}

View file

@ -1,6 +1,6 @@
const classDefenseMultipliers = new Map([ ["relik",0.50], ["bow",0.60], ["wand", 0.80], ["dagger", 1.0], ["spear",1.20] ]); const classDefenseMultipliers = new Map([ ["relik",0.50], ["bow",0.60], ["wand", 0.80], ["dagger", 1.0], ["spear",1.20], ["sword", 1.10]]);
/** /**
* @description Error to catch items that don't exist. * @description Error to catch items that don't exist.

View file

@ -56,10 +56,11 @@ const baseDamageMultiplier = [ 0.51, 0.83, 1.5, 2.05, 2.5, 3.1, 4.3 ];
//0.51, 0.82, 1.50, 2.05, 2.50, 3.11, 4.27 //0.51, 0.82, 1.50, 2.05, 2.50, 3.11, 4.27
const classes = ["Warrior", "Assassin", "Mage", "Archer", "Shaman"]; const classes = ["Warrior", "Assassin", "Mage", "Archer", "Shaman"];
const tiers = ["Normal", "Unique", "Rare", "Legendary", "Fabled", "Mythic", "Set", "Crafted"] //I'm not sure why you would make a custom crafted but if you do you should be able to use it w/ the correct powder formula const tiers = ["Normal", "Unique", "Rare", "Legendary", "Fabled", "Mythic", "Set", "Crafted"] //I'm not sure why you would make a custom crafted but if you do you should be able to use it w/ the correct powder formula
const types = armorTypes.concat(accessoryTypes).concat(weaponTypes).concat(consumableTypes).map(x => x.substring(0,1).toUpperCase() + x.substring(1)); const types = armorTypes.concat(accessoryTypes).concat(weaponTypes).concat(consumableTypes).concat(["sword"]).map(x => x.substring(0,1).toUpperCase() + x.substring(1));
weaponTypes.push("sword");
console.log(types)
let itemTypes = armorTypes.concat(accessoryTypes).concat(weaponTypes); let itemTypes = armorTypes.concat(accessoryTypes).concat(weaponTypes);
let elementIcons = ["\u2724","\u2726", "\u2749", "\u2739", "\u274b" ]; let elementIcons = ["\u2724","\u2726", "\u2749", "\u2739", "\u274b" ];
let skpReqs = skp_order.map(x => x + "Req"); let skpReqs = skp_order.map(x => x + "Req");

View file

@ -238,6 +238,7 @@ class Custom{
//this.setHashVerbose(); //do NOT move sethash from here please //this.setHashVerbose(); //do NOT move sethash from here please
this.statMap.set("custom", true); this.statMap.set("custom", true);
console.log(this.statMap);
for (const id of ci_save_order) { for (const id of ci_save_order) {
if (rolledIDs.includes(id)) { if (rolledIDs.includes(id)) {

View file

@ -735,4 +735,6 @@ function full_range_to_base(min, max) {
} }
} }
load_init(_init_customizer); load_init(_init_customizer);

View file

@ -294,6 +294,23 @@ const spell_table = {
{ subtitle: "Total Damage", type: "damage", multiplier: 100, conversion: [70, 30, 0, 0, 0, 0], summary: true }, { subtitle: "Total Damage", type: "damage", multiplier: 100, conversion: [70, 30, 0, 0, 0, 0], summary: true },
] }, ] },
], ],
"sword": [
{ title: "Successive Strikes", cost: 5, parts: [
{ subtitle: "Damage", type: "damage", multiplier: 65, conversion: [70, 0, 15, 0, 0, 15]},
{ subtitle: "Final Strike", type: "damage", multiplier: 120, conversion: [70, 0, 15, 0, 0, 15]},
{ subtitle: "Total Damage (Normal)", type: "total", factors: [2, 0], summary: true },
] },
{ title: "Dash", cost: 3, parts: [
{ subtitle: "Damage", type: "damage", multiplier: 120, conversion: [60, 0, 0, 0, 0, 40], summary: true },
] },
{ title: "Execute", cost: 8, parts: [
{ subtitle: "Minimum Damage", type: "damage", multiplier: 100, conversion: [60, 0, 20, 0, 20, 0]},
{ subtitle: "Maximum Damage", type: "damage", multiplier: 1200, conversion: [60, 0, 20, 0, 20, 0], summary: true },
] },
{ title: "Blade Echo", cost: 4, parts: [
{ subtitle: "Damage", type: "damage", multiplier: 125, conversion: [60, 0, 0, 20, 0, 20], summary: true },
] },
],
"powder": [ //This is how instant-damage powder specials are implemented. "powder": [ //This is how instant-damage powder specials are implemented.
{ title: "Quake", cost: 0, parts:[ { title: "Quake", cost: 0, parts:[
{ subtitle: "Total Damage", type: "damage", multiplier: [155, 220, 285, 350, 415], conversion: [0,100,0,0,0,0], summary: true}, { subtitle: "Total Damage", type: "damage", multiplier: [155, 220, 285, 350, 415], conversion: [0,100,0,0,0,0], summary: true},

View file

@ -1,8 +0,0 @@
#for i in range(0, 360, 5):
# print(f"tp @s ~ ~ ~ {i} 0\n"+
#"""execute at @s run summon armor_stand ^ ^ ^0.8 {Tags:["aura_vector"],Invisible:1b}
#execute as @e[tag=aura_vector,limit=1,sort=nearest] at @s run tp @s ~ ~ ~ facing entity @e[tag=aura_execute,limit=1,sort=nearest]""")
for i in range(2, 21):
print("execute as @s[scores={"+f"auraTimer={i}"+"}] run execute as @e[tag=aura_vector] at @s run tp @s ^ ^ ^"+f"-{'{0:3.1f}'.format(0.8*(i-1))}")