Add hidden set repulsion, misc. bugfix

This commit is contained in:
b 2021-02-04 04:55:15 -06:00
parent 253037d0d3
commit 194800a82d
6 changed files with 335 additions and 46 deletions

View file

@ -3,7 +3,7 @@ const url_tag = location.hash.slice(1);
console.log(url_base); console.log(url_base);
console.log(url_tag); console.log(url_tag);
const BUILD_VERSION = "6.9.22"; const BUILD_VERSION = "6.9.23";
function setTitle() { function setTitle() {
let text; let text;
@ -167,9 +167,21 @@ function init() {
populateItemList(armorType); populateItemList(armorType);
// Add change listener to update armor slots. // Add change listener to update armor slots.
document.getElementById(armorType+"-choice").addEventListener("change", (event) => { document.getElementById(armorType+"-choice").addEventListener("change", (event) => {
let item = itemMap.has(event.target.value) ? itemMap.get(event.target.value) : (getCraftFromHash(event.target.value) != undefined ? getCraftFromHash(event.target.value).statMap : undefined); let item_name = event.target.value;
if (item !== undefined && event.target.value !== "") { let nSlots = undefined;
document.getElementById(armorType+"-slots").textContent = (item["slots"] ? item["slots"] : item.get("slots"))+ " slots"; if (itemMap.has(item_name)) {
let item = itemMap.get(item_name);
nSlots = item["slots"];
console.log(item);
}
else {
let crafted_item = getCraftFromHash(item_name);
if (crafted_item != undefined) {
nSlots = crafted_item.statMap.get("slots");
}
}
if (nSlots !== undefined) {
document.getElementById(armorType+"-slots").textContent = nSlots + " slots";
} }
else { else {
document.getElementById(armorType+"-slots").textContent = "X slots"; document.getElementById(armorType+"-slots").textContent = "X slots";
@ -786,7 +798,15 @@ function calculateBuildStats() {
} }
let lvlWarning; let lvlWarning;
for (const item of player_build.items) { for (const item of player_build.items) {
if (player_build.level < item.get("lvl")) { let item_lvl;
if (item.get("crafted")) {
item_lvl = parseInt(item.get("lvl").split("-")[0]);
}
else {
item_lvl = item.get("lvl");
}
if (player_build.level < item_lvl) {
if (!lvlWarning) { if (!lvlWarning) {
lvlWarning = document.createElement("p"); lvlWarning = document.createElement("p");
lvlWarning.classList.add("itemp"); lvlWarning.classList.add("itemp");
@ -803,6 +823,17 @@ function calculateBuildStats() {
if(lvlWarning){ if(lvlWarning){
summarybox.append(lvlWarning); summarybox.append(lvlWarning);
} }
for (const [setName, count] of player_build.activeSetCounts) {
const bonus = sets[setName].bonuses[count-1];
console.log(setName);
if (bonus["illegal"]) {
let setWarning = document.createElement("p");
setWarning.classList.add("itemp");
setWarning.classList.add("warning");
setWarning.textContent = "WARNING: illegal item combination: " + setName
summarybox.append(setWarning);
}
}
for (let i in player_build.items) { for (let i in player_build.items) {
displayExpandedItem(player_build.items[i], buildFields[i]); displayExpandedItem(player_build.items[i], buildFields[i]);

View file

@ -42516,7 +42516,8 @@
"name": "Ambertoise Shell", "name": "Ambertoise Shell",
"tier": "Rare", "tier": "Rare",
"type": "helmet", "type": "helmet",
"set": null, "set": "Earth Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -42560,6 +42561,8 @@
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "armor", "category": "armor",
"slots": 2, "slots": 2,
"drop": "never", "drop": "never",
@ -42603,6 +42606,8 @@
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "armor", "category": "armor",
"slots": 2, "slots": 2,
"drop": "never", "drop": "never",
@ -42640,7 +42645,8 @@
"name": "Beetle Aegis", "name": "Beetle Aegis",
"tier": "Rare", "tier": "Rare",
"type": "chestplate", "type": "chestplate",
"set": null, "set": "Earth Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -42684,6 +42690,8 @@
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "armor", "category": "armor",
"slots": 2, "slots": 2,
"drop": "never", "drop": "never",
@ -42720,7 +42728,8 @@
{ {
"name": "Bottled Thunderstorm", "name": "Bottled Thunderstorm",
"tier": "Rare", "tier": "Rare",
"set": null, "set": "Thunder Hive",
"hideSet": true,
"material": "259:18", "material": "259:18",
"quest": null, "quest": null,
"category": "accessory", "category": "accessory",
@ -42747,7 +42756,8 @@
{ {
"name": "Breezehands", "name": "Breezehands",
"tier": "Rare", "tier": "Rare",
"set": null, "set": "Air Hive",
"hideSet": true,
"material": "259:1", "material": "259:1",
"quest": null, "quest": null,
"category": "accessory", "category": "accessory",
@ -42774,7 +42784,8 @@
{ {
"name": "Clockwork", "name": "Clockwork",
"tier": "Rare", "tier": "Rare",
"set": null, "set": "Fire Hive",
"hideSet": true,
"material": "259:35", "material": "259:35",
"quest": null, "quest": null,
"thorns": 20, "thorns": 20,
@ -42814,6 +42825,8 @@
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"poison": 2250, "poison": 2250,
"category": "armor", "category": "armor",
"slots": 2, "slots": 2,
@ -42851,7 +42864,8 @@
"name": "Cinderchain", "name": "Cinderchain",
"tier": "Rare", "tier": "Rare",
"type": "leggings", "type": "leggings",
"set": null, "set": "Fire Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -42894,6 +42908,8 @@
"set": null, "set": null,
"material": "259:19", "material": "259:19",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"poison": 750, "poison": 750,
"category": "accessory", "category": "accessory",
"drop": "never", "drop": "never",
@ -42922,7 +42938,8 @@
{ {
"name": "Coral Ring", "name": "Coral Ring",
"tier": "Rare", "tier": "Rare",
"set": null, "set": "Water Hive",
"hideSet": true,
"material": "259:16", "material": "259:16",
"quest": null, "quest": null,
"poison": -365, "poison": -365,
@ -42953,7 +42970,8 @@
"name": "Elder Oak Roots", "name": "Elder Oak Roots",
"tier": "Rare", "tier": "Rare",
"type": "leggings", "type": "leggings",
"set": null, "set": "Earth Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -42997,6 +43015,8 @@
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "armor", "category": "armor",
"slots": 2, "slots": 2,
"drop": "never", "drop": "never",
@ -43033,7 +43053,8 @@
{ {
"name": "Dupliblaze", "name": "Dupliblaze",
"tier": "Rare", "tier": "Rare",
"set": null, "set": "Fire Hive",
"hideSet": true,
"material": "259:42", "material": "259:42",
"quest": null, "quest": null,
"category": "accessory", "category": "accessory",
@ -43071,6 +43092,8 @@
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "armor", "category": "armor",
"slots": 2, "slots": 2,
"drop": "never", "drop": "never",
@ -43108,7 +43131,8 @@
"name": "Flashstep", "name": "Flashstep",
"tier": "Rare", "tier": "Rare",
"type": "boots", "type": "boots",
"set": null, "set": "Air Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -43146,6 +43170,8 @@
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "armor", "category": "armor",
"slots": 2, "slots": 2,
"drop": "never", "drop": "never",
@ -43183,7 +43209,8 @@
"name": "Gale's Freedom", "name": "Gale's Freedom",
"tier": "Rare", "tier": "Rare",
"type": "chestplate", "type": "chestplate",
"set": null, "set": "Air Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -43217,7 +43244,8 @@
{ {
"name": "Golemlus Core", "name": "Golemlus Core",
"tier": "Rare", "tier": "Rare",
"set": null, "set": "Earth Hive",
"hideSet": true,
"material": "259:21", "material": "259:21",
"quest": null, "quest": null,
"category": "accessory", "category": "accessory",
@ -43258,6 +43286,8 @@
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "armor", "category": "armor",
"slots": 2, "slots": 2,
"drop": "never", "drop": "never",
@ -43295,7 +43325,8 @@
"name": "Humbark Moccasins", "name": "Humbark Moccasins",
"tier": "Rare", "tier": "Rare",
"type": "boots", "type": "boots",
"set": null, "set": "Earth Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -43335,6 +43366,8 @@
"set": null, "set": null,
"material": "273:26", "material": "273:26",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "weapon", "category": "weapon",
"slots": 5, "slots": 5,
"drop": "never", "drop": "never",
@ -43375,6 +43408,8 @@
"set": null, "set": null,
"material": "269:19", "material": "269:19",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "weapon", "category": "weapon",
"slots": 5, "slots": 5,
"drop": "never", "drop": "never",
@ -43415,6 +43450,8 @@
"set": null, "set": null,
"material": "359:19", "material": "359:19",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "weapon", "category": "weapon",
"slots": 5, "slots": 5,
"drop": "never", "drop": "never",
@ -43455,6 +43492,8 @@
"set": null, "set": null,
"material": "261:19", "material": "261:19",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "weapon", "category": "weapon",
"slots": 5, "slots": 5,
"drop": "never", "drop": "never",
@ -43495,6 +43534,8 @@
"set": null, "set": null,
"material": "256:19", "material": "256:19",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "weapon", "category": "weapon",
"slots": 5, "slots": 5,
"drop": "never", "drop": "never",
@ -43532,7 +43573,8 @@
"name": "Insulated Plate Mail", "name": "Insulated Plate Mail",
"tier": "Rare", "tier": "Rare",
"type": "chestplate", "type": "chestplate",
"set": null, "set": "Thunder Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -43574,7 +43616,8 @@
{ {
"name": "Lightning Flash", "name": "Lightning Flash",
"tier": "Rare", "tier": "Rare",
"set": null, "set": "Thunder Hive",
"hideSet": true,
"material": "259:23", "material": "259:23",
"quest": null, "quest": null,
"category": "accessory", "category": "accessory",
@ -43604,7 +43647,8 @@
"name": "Pride of the Aerie", "name": "Pride of the Aerie",
"tier": "Rare", "tier": "Rare",
"type": "helmet", "type": "helmet",
"set": null, "set": "Air Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -43643,6 +43687,8 @@
"set": null, "set": null,
"material": "259:2", "material": "259:2",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "accessory", "category": "accessory",
"drop": "never", "drop": "never",
"restrict": "Untradable", "restrict": "Untradable",
@ -43673,7 +43719,8 @@
"name": "Mantlewalkers", "name": "Mantlewalkers",
"tier": "Rare", "tier": "Rare",
"type": "boots", "type": "boots",
"set": null, "set": "Fire Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -43714,6 +43761,8 @@
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "armor", "category": "armor",
"slots": 2, "slots": 2,
"drop": "never", "drop": "never",
@ -43753,6 +43802,8 @@
"set": null, "set": null,
"material": "259:36", "material": "259:36",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "accessory", "category": "accessory",
"drop": "never", "drop": "never",
"restrict": "Untradable", "restrict": "Untradable",
@ -43777,7 +43828,8 @@
"name": "Soulflare", "name": "Soulflare",
"tier": "Rare", "tier": "Rare",
"type": "chestplate", "type": "chestplate",
"set": null, "set": "Fire Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -43815,7 +43867,8 @@
"name": "Sparkling Visor", "name": "Sparkling Visor",
"tier": "Rare", "tier": "Rare",
"type": "helmet", "type": "helmet",
"set": null, "set": "Thunder Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -43851,7 +43904,8 @@
{ {
"name": "Moon Pool Circlet", "name": "Moon Pool Circlet",
"tier": "Rare", "tier": "Rare",
"set": null, "set": "Water Hive",
"hideSet": true,
"material": "259:12", "material": "259:12",
"quest": null, "quest": null,
"category": "accessory", "category": "accessory",
@ -43880,7 +43934,8 @@
"name": "Silt of the Seafloor", "name": "Silt of the Seafloor",
"tier": "Rare", "tier": "Rare",
"type": "boots", "type": "boots",
"set": null, "set": "Water Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -43921,7 +43976,8 @@
"name": "Sparkweaver", "name": "Sparkweaver",
"tier": "Rare", "tier": "Rare",
"type": "helmet", "type": "helmet",
"set": null, "set": "Fire Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -43955,7 +44011,8 @@
{ {
"name": "Subur Clip", "name": "Subur Clip",
"tier": "Rare", "tier": "Rare",
"set": null, "set": "Earth Hive",
"hideSet": true,
"material": "259:38", "material": "259:38",
"quest": null, "quest": null,
"thorns": 20, "thorns": 20,
@ -43986,7 +44043,8 @@
"name": "Stillwater Blue", "name": "Stillwater Blue",
"tier": "Rare", "tier": "Rare",
"type": "chestplate", "type": "chestplate",
"set": null, "set": "Water Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -44023,7 +44081,8 @@
"name": "Trench Scourer", "name": "Trench Scourer",
"tier": "Rare", "tier": "Rare",
"type": "leggings", "type": "leggings",
"set": null, "set": "Water Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -44061,7 +44120,8 @@
"displayName": "Static-Charged Leggings", "displayName": "Static-Charged Leggings",
"tier": "Rare", "tier": "Rare",
"type": "leggings", "type": "leggings",
"set": null, "set": "Thunder Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -44099,7 +44159,8 @@
"name": "Thunderous Step", "name": "Thunderous Step",
"tier": "Rare", "tier": "Rare",
"type": "boots", "type": "boots",
"set": null, "set": "Thunder Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -44175,6 +44236,8 @@
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
"quest": "The Qira Hive", "quest": "The Qira Hive",
"set": "Master Hive",
"hideSet": true,
"category": "armor", "category": "armor",
"slots": 2, "slots": 2,
"drop": "never", "drop": "never",
@ -44211,7 +44274,8 @@
{ {
"name": "Vortex Bracer", "name": "Vortex Bracer",
"tier": "Rare", "tier": "Rare",
"set": null, "set": "Air Hive",
"hideSet": true,
"material": "259:44", "material": "259:44",
"quest": null, "quest": null,
"category": "accessory", "category": "accessory",
@ -44244,7 +44308,8 @@
"name": "Turbine Greaves", "name": "Turbine Greaves",
"tier": "Rare", "tier": "Rare",
"type": "leggings", "type": "leggings",
"set": null, "set": "Air Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -44435,7 +44500,8 @@
"name": "Whitecap Crown", "name": "Whitecap Crown",
"tier": "Rare", "tier": "Rare",
"type": "helmet", "type": "helmet",
"set": null, "set": "Water Hive",
"hideSet": true,
"material": null, "material": null,
"armorType": "Diamond", "armorType": "Diamond",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -63884,7 +63950,8 @@
{ {
"name": "Draoi Fair", "name": "Draoi Fair",
"tier": "Fabled", "tier": "Fabled",
"set": null, "set": "Grookwarts",
"hideSet": true,
"material": "259:14", "material": "259:14",
"quest": "The Order of the Grook", "quest": "The Order of the Grook",
"category": "accessory", "category": "accessory",
@ -64018,7 +64085,8 @@
{ {
"name": "Dragon's Eye Bracelet", "name": "Dragon's Eye Bracelet",
"tier": "Fabled", "tier": "Fabled",
"set": null, "set": "Grookwarts",
"hideSet": true,
"material": "259:42", "material": "259:42",
"quest": "The Order of the Grook", "quest": "The Order of the Grook",
"category": "accessory", "category": "accessory",
@ -65123,7 +65191,8 @@
"name": "Ornate Shadow Cowl", "name": "Ornate Shadow Cowl",
"tier": "Fabled", "tier": "Fabled",
"type": "helmet", "type": "helmet",
"set": null, "set": "Ornate Shadow",
"hideSet": true,
"material": null, "material": null,
"armorType": "Leather", "armorType": "Leather",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -65160,7 +65229,8 @@
"name": "Ornate Shadow Cover", "name": "Ornate Shadow Cover",
"tier": "Fabled", "tier": "Fabled",
"type": "leggings", "type": "leggings",
"set": null, "set": "Ornate Shadow",
"hideSet": true,
"material": null, "material": null,
"armorType": "Leather", "armorType": "Leather",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -65272,7 +65342,8 @@
"name": "Ornate Shadow Garb", "name": "Ornate Shadow Garb",
"tier": "Fabled", "tier": "Fabled",
"type": "chestplate", "type": "chestplate",
"set": null, "set": "Ornate Shadow",
"hideSet": true,
"material": null, "material": null,
"armorType": "Leather", "armorType": "Leather",
"armorColor": "160,101,64", "armorColor": "160,101,64",
@ -65622,7 +65693,8 @@
{ {
"name": "Renda Langit", "name": "Renda Langit",
"tier": "Fabled", "tier": "Fabled",
"set": null, "set": "Grookwarts",
"hideSet": true,
"material": "259:27", "material": "259:27",
"quest": "The Order of the Grook", "quest": "The Order of the Grook",
"category": "accessory", "category": "accessory",
@ -121876,6 +121948,179 @@
} }
], ],
"sets": { "sets": {
"Ornate Shadow": {
"items": [
"Ornate Shadow Cowl",
"Ornate Shadow Garb",
"Ornate Shadow Cover",
"Ornate Shadow Cloud"
],
"bonuses": [
{},
{"illegal": true},
{"illegal": true},
{"illegal": true}
],
"hidden": true
},
"Grookwarts": {
"items": [
"Dragon's Eye Bracelet",
"Draoi Fair",
"Renda Langit"
],
"bonuses": [
{},
{"illegal": true},
{"illegal": true},
{"illegal": true}
],
"hidden": true
},
"Master Hive": {
"items": [
"Abyss-Imbued Leggings",
"Boreal-Patterned Crown",
"Anima-Infused Curiass",
"Chaos-Woven Greaves",
"Elysium-Engraved Aegis",
"Eden-Blessed Guards",
"Gaea-Hewn Boots",
"Hephaestus-Forged Sabatons",
"Obsidian-Framed Helmet",
"Twilight-Gilded Cloak",
"Infused Hive Relik",
"Infused Hive Wand",
"Infused Hive Spear",
"Infused Hive Dagger",
"Infused Hive Bow",
"Contrast",
"Prowess",
"Intensity"
],
"bonuses": [
{},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true}
],
"hidden": true
},
"Thunder Hive": {
"items": [
"Sparkling Visor",
"Insulated Plate Mail",
"Static-Charged Leggings",
"Thunderous Step",
"Bottled Thunderstorm",
"Lightning Flash"
],
"bonuses": [
{},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true}
],
"hidden": true
},
"Air Hive": {
"items": [
"Pride of the Aerie",
"Gale's Freedom",
"Turbine Greaves",
"Flashstep",
"Breezehands",
"Vortex Bracer"
],
"bonuses": [
{},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true}
],
"hidden": true
},
"Earth Hive": {
"items": [
"Ambertoise Shell",
"Beetle Aegis",
"Elder Oak Roots",
"Humbark Moccasins",
"Subur Clip",
"Golemlus Core"
],
"bonuses": [
{},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true}
],
"hidden": true
},
"Water Hive": {
"items": [
"Whitecap Crown",
"Stillwater Blue",
"Trench Scourer",
"Silt of the Seafloor",
"Coral Ring",
"Moon Pool Circlet"
],
"bonuses": [
{},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true}
],
"hidden": true
},
"Fire Hive": {
"items": [
"Sparkweaver",
"Soulflare",
"Cinderchain",
"Mantlewalkers",
"Clockwork",
"Dupliblaze"
],
"bonuses": [
{},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true},
{"illegal": true}
],
"hidden": true
},
"Synch Core": { "Synch Core": {
"items": [ "items": [
"Overload Core", "Overload Core",

File diff suppressed because one or more lines are too long

View file

@ -220,11 +220,14 @@ function displaySetBonuses(parent_id,build) {
} }
for (const [setName, count] of build.activeSetCounts) { for (const [setName, count] of build.activeSetCounts) {
const active_set = sets[setName];
if (active_set["hidden"]) { continue; }
let set_elem = document.createElement('p'); let set_elem = document.createElement('p');
set_elem.id = "set-"+setName; set_elem.id = "set-"+setName;
set_summary_elem.append(set_elem); set_summary_elem.append(set_elem);
const bonus = sets[setName].bonuses[count-1]; const bonus = active_set.bonuses[count-1];
let mock_item = new Map(); let mock_item = new Map();
mock_item.set("fixID", true); mock_item.set("fixID", true);
mock_item.set("displayName", setName+" Set: "+count+"/"+sets[setName].items.length); mock_item.set("displayName", setName+" Set: "+count+"/"+sets[setName].items.length);
@ -303,6 +306,9 @@ function displayBuildStats(parent_id,build){
set_summary_elem.textContent = "Set Summary:"; set_summary_elem.textContent = "Set Summary:";
parent_div.append(set_summary_elem); parent_div.append(set_summary_elem);
for (const [setName, count] of build.activeSetCounts) { for (const [setName, count] of build.activeSetCounts) {
const active_set = sets[setName];
if (active_set["hidden"]) { continue; }
let set_elem = document.createElement('p'); let set_elem = document.createElement('p');
set_elem.classList.add('itemp'); set_elem.classList.add('itemp');
set_elem.classList.add('left'); set_elem.classList.add('left');
@ -562,6 +568,13 @@ function displayExpandedItem(item, parent_id){
powderSuffix.textContent = "]"; powderSuffix.textContent = "]";
p_elem.appendChild(powderSuffix); p_elem.appendChild(powderSuffix);
active_elem.appendChild(p_elem); active_elem.appendChild(p_elem);
} else if (id === "set") {
if (item.get("hideSet")) { continue; }
let p_elem = document.createElement("p");
p_elem.classList.add("itemp");
p_elem.textContent = "Set: " + item.get(id).toString();
active_elem.appendChild(p_elem);
} else if (id === "majorIds") { } else if (id === "majorIds") {
let p_elem = document.createElement("p"); let p_elem = document.createElement("p");
p_elem.classList.add("itemp"); p_elem.classList.add("itemp");

View file

@ -199,7 +199,6 @@
</td> </td>
</tr> </tr>
</table> </table>
<br>
</div> </div>
<div class="skillpoints" style="grid-column:1/span 3;grid-row:3;"> <div class="skillpoints" style="grid-column:1/span 3;grid-row:3;">
<div class="center" style="grid-column:1;grid-row:1"> <div class="center" style="grid-column:1;grid-row:1">

View file

@ -1,4 +1,4 @@
const DB_VERSION = 32; const DB_VERSION = 33;
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.js // @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.js
let db; let db;
@ -68,7 +68,8 @@ async function load(init_func) {
let getUrl = window.location; let getUrl = window.location;
let baseUrl = getUrl.protocol + "//" + getUrl.host + "/";// + getUrl.pathname.split('/')[1]; let baseUrl = getUrl.protocol + "//" + getUrl.host + "/";// + getUrl.pathname.split('/')[1];
let url = baseUrl + "/compress.json"; // "Random" string to prevent caching!
let url = baseUrl + "/compress.json?"+new Date();
let result = await (await fetch(url)).json(); let result = await (await fetch(url)).json();
items = result.items; items = result.items;
sets = result.sets; sets = result.sets;