renamed some files
This commit is contained in:
parent
5400536dcd
commit
bdf333a2f1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,14 +1,12 @@
|
|||||||
{
|
[
|
||||||
"sets": [
|
{
|
||||||
{
|
"id": "alberichs-set",
|
||||||
"id": "alberichs-set",
|
"name": "Alberich's Set",
|
||||||
"name": "Alberich's Set",
|
"pieces": [
|
||||||
"pieces": [
|
"alberichs-pointed-hat",
|
||||||
"alberichs-pointed-hat",
|
"alberichs-robe",
|
||||||
"alberichs-robe",
|
"alberichs-bracers",
|
||||||
"alberichs-bracers",
|
"alberichs-trousers"
|
||||||
"alberichs-trousers"
|
]
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
]
|
|
||||||
}
|
|
||||||
|
@ -1,54 +1,52 @@
|
|||||||
{
|
[
|
||||||
"classes": [
|
{
|
||||||
{
|
"name": "Vagabond",
|
||||||
"name": "Vagabond",
|
"level": 9,
|
||||||
"level": 9,
|
"stats": [15, 10, 11, 14, 13, 9, 9, 7]
|
||||||
"stats": [15, 10, 11, 14, 13, 9, 9, 7]
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "Warrior",
|
||||||
"name": "Warrior",
|
"level": 8,
|
||||||
"level": 8,
|
"stats": [11, 12, 11, 10, 16, 10, 8, 9]
|
||||||
"stats": [11, 12, 11, 10, 16, 10, 8, 9]
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "Hero",
|
||||||
"name": "Hero",
|
"level": 7,
|
||||||
"level": 7,
|
"stats": [14, 9, 12, 16, 9, 7, 8, 11]
|
||||||
"stats": [14, 9, 12, 16, 9, 7, 8, 11]
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "Bandit",
|
||||||
"name": "Bandit",
|
"level": 5,
|
||||||
"level": 5,
|
"stats": [10, 11, 10, 9, 13, 9, 8, 14]
|
||||||
"stats": [10, 11, 10, 9, 13, 9, 8, 14]
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "Astrologer",
|
||||||
"name": "Astrologer",
|
"level": 6,
|
||||||
"level": 6,
|
"stats": [9, 15, 9, 8, 12, 16, 7, 9]
|
||||||
"stats": [9, 15, 9, 8, 12, 16, 7, 9]
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "Prophet",
|
||||||
"name": "Prophet",
|
"level": 7,
|
||||||
"level": 7,
|
"stats": [10, 14, 8, 11, 10, 7, 16, 10]
|
||||||
"stats": [10, 14, 8, 11, 10, 7, 16, 10]
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "Samurai",
|
||||||
"name": "Samurai",
|
"level": 9,
|
||||||
"level": 9,
|
"stats": [12, 11, 13, 12, 15, 9, 8, 8]
|
||||||
"stats": [12, 11, 13, 12, 15, 9, 8, 8]
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "Prisoner",
|
||||||
"name": "Prisoner",
|
"level": 9,
|
||||||
"level": 9,
|
"stats": [11, 12, 11, 11, 14, 14, 6, 9]
|
||||||
"stats": [11, 12, 11, 11, 14, 14, 6, 9]
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "Confessor",
|
||||||
"name": "Confessor",
|
"level": 10,
|
||||||
"level": 10,
|
"stats": [10, 13, 10, 12, 12, 9, 14, 9]
|
||||||
"stats": [10, 13, 10, 12, 12, 9, 14, 9]
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "Wretch",
|
||||||
"name": "Wretch",
|
"level": 1,
|
||||||
"level": 1,
|
"stats": [10, 10, 10, 10, 10, 10, 10, 10]
|
||||||
"stats": [10, 10, 10, 10, 10, 10, 10, 10]
|
}
|
||||||
}
|
]
|
||||||
]
|
|
||||||
}
|
|
||||||
|
@ -1,50 +1,48 @@
|
|||||||
{
|
[
|
||||||
"talismans": [
|
{
|
||||||
{
|
"id": "radagons-soreseal",
|
||||||
"id": "radagons-soreseal",
|
"name": "Radagon's Soreseal",
|
||||||
"name": "Radagon's Soreseal",
|
"weight": 0.8,
|
||||||
"weight": 0.8,
|
"stats": [5, 0, 5, 5, 5, 0, 0, 0]
|
||||||
"stats": [5, 0, 5, 5, 5, 0, 0, 0]
|
},
|
||||||
},
|
{
|
||||||
{
|
"id": "marikas-soreseal",
|
||||||
"id": "marikas-soreseal",
|
"name": "Marika's Soreseal",
|
||||||
"name": "Marika's Soreseal",
|
"weight": 0.8,
|
||||||
"weight": 0.8,
|
"stats": [0, 5, 0, 0, 0, 5, 5, 5]
|
||||||
"stats": [0, 5, 0, 0, 0, 5, 5, 5]
|
},
|
||||||
},
|
{
|
||||||
{
|
"id": "prosthesis-wearer-heirloom",
|
||||||
"id": "prosthesis-wearer-heirloom",
|
"name": "Prosthesis-Wearer Heirloom",
|
||||||
"name": "Prosthesis-Wearer Heirloom",
|
"weight": 0.8,
|
||||||
"weight": 0.8,
|
"stats": [0, 0, 0, 0, 5, 0, 0, 0]
|
||||||
"stats": [0, 0, 0, 0, 5, 0, 0, 0]
|
},
|
||||||
},
|
{
|
||||||
{
|
"id": "stargazer-heirloom",
|
||||||
"id": "stargazer-heirloom",
|
"name": "Stargazer Heirloom",
|
||||||
"name": "Stargazer Heirloom",
|
"weight": 0.8,
|
||||||
"weight": 0.8,
|
"stats": [0, 0, 0, 0, 0, 5, 0, 0]
|
||||||
"stats": [0, 0, 0, 0, 0, 5, 0, 0]
|
},
|
||||||
},
|
{
|
||||||
{
|
"id": "starscourge-heirloom",
|
||||||
"id": "starscourge-heirloom",
|
"name": "Starscourge Heirloom",
|
||||||
"name": "Starscourge Heirloom",
|
"weight": 0.8,
|
||||||
"weight": 0.8,
|
"stats": [0, 0, 0, 5, 0, 0, 0, 0]
|
||||||
"stats": [0, 0, 0, 5, 0, 0, 0, 0]
|
},
|
||||||
},
|
{
|
||||||
{
|
"id": "two-fingers-heirloom",
|
||||||
"id": "two-fingers-heirloom",
|
"name": "Two Fingers Heirloom",
|
||||||
"name": "Two Fingers Heirloom",
|
"weight": 0.8,
|
||||||
"weight": 0.8,
|
"stats": [0, 0, 0, 0, 0, 0, 5, 0]
|
||||||
"stats": [0, 0, 0, 0, 0, 0, 5, 0]
|
},
|
||||||
},
|
{
|
||||||
{
|
"id": "millicents-prosthesis",
|
||||||
"id": "millicents-prosthesis",
|
"name": "Millicent's Prosthesis",
|
||||||
"name": "Millicent's Prosthesis",
|
"weight": 0.8,
|
||||||
"weight": 0.8,
|
"stats": [0, 0, 0, 0, 5, 0, 0, 0]
|
||||||
"stats": [0, 0, 0, 0, 5, 0, 0, 0]
|
},
|
||||||
},
|
{
|
||||||
{
|
"name": "Arrow's Reach Talisman",
|
||||||
"name": "Arrow's Reach Talisman",
|
"weight": 0.7
|
||||||
"weight": 0.7
|
}
|
||||||
}
|
]
|
||||||
]
|
|
||||||
}
|
|
||||||
|
@ -1,18 +1,14 @@
|
|||||||
const HELMETS = fetch("/data/armor/helmets.json")
|
const HELMETS = fetch("/data/armor/helmets.json")
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => data.helmets)
|
|
||||||
.catch(error => console.log(error));
|
.catch(error => console.log(error));
|
||||||
const CHESTPIECES = fetch("/data/armor/chestpieces.json")
|
const CHESTPIECES = fetch("/data/armor/chestpieces.json")
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => data.chestpieces)
|
|
||||||
.catch(error => console.log(error));
|
.catch(error => console.log(error));
|
||||||
const GAUNTLETS = fetch("/data/armor/gauntlets.json")
|
const GAUNTLETS = fetch("/data/armor/gauntlets.json")
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => data.gauntlets)
|
|
||||||
.catch(error => console.log(error));
|
.catch(error => console.log(error));
|
||||||
const LEGGINGS = fetch("/data/armor/leggings.json")
|
const LEGGINGS = fetch("/data/armor/leggings.json")
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => data.leggings)
|
|
||||||
.catch(error => console.log(error));
|
.catch(error => console.log(error));
|
||||||
|
|
||||||
// armor combination lists
|
// armor combination lists
|
||||||
@ -52,7 +48,7 @@ async function init() {
|
|||||||
|
|
||||||
async function update() {
|
async function update() {
|
||||||
// clamp equip load values to reasonable values
|
// clamp equip load values to reasonable values
|
||||||
[...document.getElementsByName("equip-load")].forEach(el => el.value = Math.max(el.value, 0));
|
[...document.getElementsByName("equip-load")].forEach(el => el.value = Math.max(el.value, 0.0));
|
||||||
|
|
||||||
// get budget and sorting order
|
// get budget and sorting order
|
||||||
let budget = equipLoadBudget();
|
let budget = equipLoadBudget();
|
||||||
@ -85,7 +81,12 @@ function equipLoadBudget() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (parseInt(document.getElementById("max-equip-load").value) || 0 - parseInt(document.getElementById("current-equip-load").value) || 0) * rollModifier;
|
let max = document.getElementById("max-equip-load").value || 0;
|
||||||
|
let current = document.getElementById("current-equip-load").value || 0;
|
||||||
|
let budget = Math.max((max - current) * rollModifier, 0);
|
||||||
|
|
||||||
|
return budget;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function currentSortBy() {
|
function currentSortBy() {
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
const CLASSES = fetch("/data/classes.json")
|
const CLASSES = fetch("/data/classes.json")
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => data.classes)
|
|
||||||
.catch(error => console.log(error));
|
.catch(error => console.log(error));
|
||||||
const TALISMANS = fetch("/data/talismans.json")
|
const TALISMANS = fetch("/data/talismans.json")
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => data.talismans)
|
|
||||||
.catch(error => console.log(error));
|
.catch(error => console.log(error));
|
||||||
const HELMETS = fetch("/data/armor/helmets.json")
|
const HELMETS = fetch("/data/armor/helmets.json")
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => data.helmets)
|
|
||||||
.catch(error => console.log(error));
|
.catch(error => console.log(error));
|
||||||
|
|
||||||
const STAT_SHORT_NAMES = [
|
const STAT_SHORT_NAMES = [
|
||||||
|
Loading…
Reference in New Issue
Block a user