renamed some files

This commit is contained in:
Frederik Palmø 2022-03-22 14:35:29 +01:00
parent 5400536dcd
commit bdf333a2f1
9 changed files with 4677 additions and 4693 deletions

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

View File

@ -1,14 +1,12 @@
{
"sets": [
{
"id": "alberichs-set",
"name": "Alberich's Set",
"pieces": [
"alberichs-pointed-hat",
"alberichs-robe",
"alberichs-bracers",
"alberichs-trousers"
]
}
]
}
[
{
"id": "alberichs-set",
"name": "Alberich's Set",
"pieces": [
"alberichs-pointed-hat",
"alberichs-robe",
"alberichs-bracers",
"alberichs-trousers"
]
}
]

View File

@ -1,54 +1,52 @@
{
"classes": [
{
"name": "Vagabond",
"level": 9,
"stats": [15, 10, 11, 14, 13, 9, 9, 7]
},
{
"name": "Warrior",
"level": 8,
"stats": [11, 12, 11, 10, 16, 10, 8, 9]
},
{
"name": "Hero",
"level": 7,
"stats": [14, 9, 12, 16, 9, 7, 8, 11]
},
{
"name": "Bandit",
"level": 5,
"stats": [10, 11, 10, 9, 13, 9, 8, 14]
},
{
"name": "Astrologer",
"level": 6,
"stats": [9, 15, 9, 8, 12, 16, 7, 9]
},
{
"name": "Prophet",
"level": 7,
"stats": [10, 14, 8, 11, 10, 7, 16, 10]
},
{
"name": "Samurai",
"level": 9,
"stats": [12, 11, 13, 12, 15, 9, 8, 8]
},
{
"name": "Prisoner",
"level": 9,
"stats": [11, 12, 11, 11, 14, 14, 6, 9]
},
{
"name": "Confessor",
"level": 10,
"stats": [10, 13, 10, 12, 12, 9, 14, 9]
},
{
"name": "Wretch",
"level": 1,
"stats": [10, 10, 10, 10, 10, 10, 10, 10]
}
]
}
[
{
"name": "Vagabond",
"level": 9,
"stats": [15, 10, 11, 14, 13, 9, 9, 7]
},
{
"name": "Warrior",
"level": 8,
"stats": [11, 12, 11, 10, 16, 10, 8, 9]
},
{
"name": "Hero",
"level": 7,
"stats": [14, 9, 12, 16, 9, 7, 8, 11]
},
{
"name": "Bandit",
"level": 5,
"stats": [10, 11, 10, 9, 13, 9, 8, 14]
},
{
"name": "Astrologer",
"level": 6,
"stats": [9, 15, 9, 8, 12, 16, 7, 9]
},
{
"name": "Prophet",
"level": 7,
"stats": [10, 14, 8, 11, 10, 7, 16, 10]
},
{
"name": "Samurai",
"level": 9,
"stats": [12, 11, 13, 12, 15, 9, 8, 8]
},
{
"name": "Prisoner",
"level": 9,
"stats": [11, 12, 11, 11, 14, 14, 6, 9]
},
{
"name": "Confessor",
"level": 10,
"stats": [10, 13, 10, 12, 12, 9, 14, 9]
},
{
"name": "Wretch",
"level": 1,
"stats": [10, 10, 10, 10, 10, 10, 10, 10]
}
]

View File

@ -1,50 +1,48 @@
{
"talismans": [
{
"id": "radagons-soreseal",
"name": "Radagon's Soreseal",
"weight": 0.8,
"stats": [5, 0, 5, 5, 5, 0, 0, 0]
},
{
"id": "marikas-soreseal",
"name": "Marika's Soreseal",
"weight": 0.8,
"stats": [0, 5, 0, 0, 0, 5, 5, 5]
},
{
"id": "prosthesis-wearer-heirloom",
"name": "Prosthesis-Wearer Heirloom",
"weight": 0.8,
"stats": [0, 0, 0, 0, 5, 0, 0, 0]
},
{
"id": "stargazer-heirloom",
"name": "Stargazer Heirloom",
"weight": 0.8,
"stats": [0, 0, 0, 0, 0, 5, 0, 0]
},
{
"id": "starscourge-heirloom",
"name": "Starscourge Heirloom",
"weight": 0.8,
"stats": [0, 0, 0, 5, 0, 0, 0, 0]
},
{
"id": "two-fingers-heirloom",
"name": "Two Fingers Heirloom",
"weight": 0.8,
"stats": [0, 0, 0, 0, 0, 0, 5, 0]
},
{
"id": "millicents-prosthesis",
"name": "Millicent's Prosthesis",
"weight": 0.8,
"stats": [0, 0, 0, 0, 5, 0, 0, 0]
},
{
"name": "Arrow's Reach Talisman",
"weight": 0.7
}
]
}
[
{
"id": "radagons-soreseal",
"name": "Radagon's Soreseal",
"weight": 0.8,
"stats": [5, 0, 5, 5, 5, 0, 0, 0]
},
{
"id": "marikas-soreseal",
"name": "Marika's Soreseal",
"weight": 0.8,
"stats": [0, 5, 0, 0, 0, 5, 5, 5]
},
{
"id": "prosthesis-wearer-heirloom",
"name": "Prosthesis-Wearer Heirloom",
"weight": 0.8,
"stats": [0, 0, 0, 0, 5, 0, 0, 0]
},
{
"id": "stargazer-heirloom",
"name": "Stargazer Heirloom",
"weight": 0.8,
"stats": [0, 0, 0, 0, 0, 5, 0, 0]
},
{
"id": "starscourge-heirloom",
"name": "Starscourge Heirloom",
"weight": 0.8,
"stats": [0, 0, 0, 5, 0, 0, 0, 0]
},
{
"id": "two-fingers-heirloom",
"name": "Two Fingers Heirloom",
"weight": 0.8,
"stats": [0, 0, 0, 0, 0, 0, 5, 0]
},
{
"id": "millicents-prosthesis",
"name": "Millicent's Prosthesis",
"weight": 0.8,
"stats": [0, 0, 0, 0, 5, 0, 0, 0]
},
{
"name": "Arrow's Reach Talisman",
"weight": 0.7
}
]

View File

@ -1,18 +1,14 @@
const HELMETS = fetch("/data/armor/helmets.json")
.then(response => response.json())
.then(data => data.helmets)
.catch(error => console.log(error));
const CHESTPIECES = fetch("/data/armor/chestpieces.json")
.then(response => response.json())
.then(data => data.chestpieces)
.catch(error => console.log(error));
const GAUNTLETS = fetch("/data/armor/gauntlets.json")
.then(response => response.json())
.then(data => data.gauntlets)
.catch(error => console.log(error));
const LEGGINGS = fetch("/data/armor/leggings.json")
.then(response => response.json())
.then(data => data.leggings)
.catch(error => console.log(error));
// armor combination lists
@ -52,7 +48,7 @@ async function init() {
async function update() {
// 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
let budget = equipLoadBudget();
@ -85,7 +81,12 @@ function equipLoadBudget() {
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() {

View File

@ -1,14 +1,11 @@
const CLASSES = fetch("/data/classes.json")
.then(response => response.json())
.then(data => data.classes)
.catch(error => console.log(error));
const TALISMANS = fetch("/data/talismans.json")
.then(response => response.json())
.then(data => data.talismans)
.catch(error => console.log(error));
const HELMETS = fetch("/data/armor/helmets.json")
.then(response => response.json())
.then(data => data.helmets)
.catch(error => console.log(error));
const STAT_SHORT_NAMES = [