Misc bugfixes/patches (#239)
* Morph nerfs whoot * Fix customizer somehow it wasn't even using the correct load method -- its a major miracle it worked at all * Fix item base display in customizer jank maybe fix this properly later * Bump item db version * Fix crafted skillpoint calculation * Fix crafter updating use input for all listeners Co-authored-by: hppeng <hppeng>
This commit is contained in:
parent
2f7ff17253
commit
049ca0a482
7 changed files with 28 additions and 33 deletions
24
clean.json
24
clean.json
|
@ -24214,8 +24214,6 @@
|
||||||
"tier": "Rare",
|
"tier": "Rare",
|
||||||
"type": "boots",
|
"type": "boots",
|
||||||
"armorType": "Diamond",
|
"armorType": "Diamond",
|
||||||
"thunderDamageBonusRaw": -1000,
|
|
||||||
"waterDamageBonusRaw": 100,
|
|
||||||
"category": "armor",
|
"category": "armor",
|
||||||
"slots": 3,
|
"slots": 3,
|
||||||
"color": "160,101,64",
|
"color": "160,101,64",
|
||||||
|
@ -24230,6 +24228,8 @@
|
||||||
"xpb": -10,
|
"xpb": -10,
|
||||||
"hprRaw": 150,
|
"hprRaw": 150,
|
||||||
"wDamPct": 20,
|
"wDamPct": 20,
|
||||||
|
"wDamRaw": 100,
|
||||||
|
"tDamRaw": -1000,
|
||||||
"fDefPct": 15,
|
"fDefPct": 15,
|
||||||
"tDefPct": -20,
|
"tDefPct": -20,
|
||||||
"id": 3769
|
"id": 3769
|
||||||
|
@ -27161,9 +27161,9 @@
|
||||||
"drop": "NORMAL",
|
"drop": "NORMAL",
|
||||||
"fDam": "160-200",
|
"fDam": "160-200",
|
||||||
"wDam": "0-0",
|
"wDam": "0-0",
|
||||||
"aDam": "0-0",
|
|
||||||
"tDam": "0-0",
|
"tDam": "0-0",
|
||||||
"eDam": "150-210",
|
"eDam": "150-210",
|
||||||
|
"aDam": "0-0",
|
||||||
"nDam": "0-0",
|
"nDam": "0-0",
|
||||||
"atkSpd": "VERY_SLOW",
|
"atkSpd": "VERY_SLOW",
|
||||||
"lvl": 104,
|
"lvl": 104,
|
||||||
|
@ -53212,7 +53212,6 @@
|
||||||
"name": "Continuum",
|
"name": "Continuum",
|
||||||
"tier": "Set",
|
"tier": "Set",
|
||||||
"type": "wand",
|
"type": "wand",
|
||||||
"set": "Boundless",
|
|
||||||
"material": "269:4",
|
"material": "269:4",
|
||||||
"category": "weapon",
|
"category": "weapon",
|
||||||
"slots": 2,
|
"slots": 2,
|
||||||
|
@ -53239,7 +53238,6 @@
|
||||||
"name": "Divergence",
|
"name": "Divergence",
|
||||||
"tier": "Set",
|
"tier": "Set",
|
||||||
"type": "spear",
|
"type": "spear",
|
||||||
"set": "Boundless",
|
|
||||||
"material": "256:4",
|
"material": "256:4",
|
||||||
"category": "weapon",
|
"category": "weapon",
|
||||||
"slots": 3,
|
"slots": 3,
|
||||||
|
@ -53284,9 +53282,7 @@
|
||||||
"name": "Aleph Null",
|
"name": "Aleph Null",
|
||||||
"tier": "Set",
|
"tier": "Set",
|
||||||
"type": "leggings",
|
"type": "leggings",
|
||||||
"set": "Boundless",
|
|
||||||
"armorType": "Diamond",
|
"armorType": "Diamond",
|
||||||
"elementalDamageBonus": 20,
|
|
||||||
"category": "armor",
|
"category": "armor",
|
||||||
"slots": 1,
|
"slots": 1,
|
||||||
"color": "160,101,64",
|
"color": "160,101,64",
|
||||||
|
@ -53305,13 +53301,13 @@
|
||||||
"def": 5,
|
"def": 5,
|
||||||
"sdRaw": 200,
|
"sdRaw": 200,
|
||||||
"mdRaw": 250,
|
"mdRaw": 250,
|
||||||
|
"rDamPct": 20,
|
||||||
"id": 3783
|
"id": 3783
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Fractal",
|
"name": "Fractal",
|
||||||
"tier": "Set",
|
"tier": "Set",
|
||||||
"type": "relik",
|
"type": "relik",
|
||||||
"set": "Boundless",
|
|
||||||
"material": "273:8",
|
"material": "273:8",
|
||||||
"category": "weapon",
|
"category": "weapon",
|
||||||
"slots": 4,
|
"slots": 4,
|
||||||
|
@ -53339,7 +53335,6 @@
|
||||||
"name": "Nonexistence",
|
"name": "Nonexistence",
|
||||||
"tier": "Set",
|
"tier": "Set",
|
||||||
"type": "helmet",
|
"type": "helmet",
|
||||||
"set": "Boundless",
|
|
||||||
"armorType": "Diamond",
|
"armorType": "Diamond",
|
||||||
"category": "armor",
|
"category": "armor",
|
||||||
"slots": 4,
|
"slots": 4,
|
||||||
|
@ -53364,7 +53359,6 @@
|
||||||
"name": "Infinitesimal",
|
"name": "Infinitesimal",
|
||||||
"tier": "Set",
|
"tier": "Set",
|
||||||
"type": "dagger",
|
"type": "dagger",
|
||||||
"set": "Boundless",
|
|
||||||
"material": "359:10",
|
"material": "359:10",
|
||||||
"category": "weapon",
|
"category": "weapon",
|
||||||
"slots": 1,
|
"slots": 1,
|
||||||
|
@ -53433,7 +53427,6 @@
|
||||||
"name": "Recursion",
|
"name": "Recursion",
|
||||||
"tier": "Set",
|
"tier": "Set",
|
||||||
"type": "bow",
|
"type": "bow",
|
||||||
"set": "Boundless",
|
|
||||||
"material": "261:10",
|
"material": "261:10",
|
||||||
"category": "weapon",
|
"category": "weapon",
|
||||||
"slots": 3,
|
"slots": 3,
|
||||||
|
@ -79629,7 +79622,6 @@
|
||||||
"tier": "Rare",
|
"tier": "Rare",
|
||||||
"type": "helmet",
|
"type": "helmet",
|
||||||
"armorType": "Iron",
|
"armorType": "Iron",
|
||||||
"elementalDamageBonusRaw": 150,
|
|
||||||
"category": "armor",
|
"category": "armor",
|
||||||
"slots": 5,
|
"slots": 5,
|
||||||
"color": "160,101,64",
|
"color": "160,101,64",
|
||||||
|
@ -79646,6 +79638,7 @@
|
||||||
"agi": 3,
|
"agi": 3,
|
||||||
"def": 3,
|
"def": 3,
|
||||||
"rMdRaw": 160,
|
"rMdRaw": 160,
|
||||||
|
"rDamRaw": 150,
|
||||||
"id": 3790
|
"id": 3790
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -83551,7 +83544,6 @@
|
||||||
"hprPct": 50,
|
"hprPct": 50,
|
||||||
"hprRaw": 150,
|
"hprRaw": 150,
|
||||||
"spd": 35,
|
"spd": 35,
|
||||||
"spd": 35,
|
|
||||||
"sprintReg": 50,
|
"sprintReg": 50,
|
||||||
"mr": 25
|
"mr": 25
|
||||||
}
|
}
|
||||||
|
@ -84462,7 +84454,7 @@
|
||||||
"mr": 12,
|
"mr": 12,
|
||||||
"xpb": 55,
|
"xpb": 55,
|
||||||
"lb": 55,
|
"lb": 55,
|
||||||
"hpBonus": 2575,
|
"hpBonus": 2275,
|
||||||
"spRaw2": -5,
|
"spRaw2": -5,
|
||||||
"spRaw4": -5
|
"spRaw4": -5
|
||||||
},
|
},
|
||||||
|
@ -84470,7 +84462,7 @@
|
||||||
"mr": 18,
|
"mr": 18,
|
||||||
"xpb": 80,
|
"xpb": 80,
|
||||||
"lb": 80,
|
"lb": 80,
|
||||||
"hpBonus": 4450,
|
"hpBonus": 3850,
|
||||||
"spRaw1": -5,
|
"spRaw1": -5,
|
||||||
"spRaw2": -5,
|
"spRaw2": -5,
|
||||||
"spRaw4": -5
|
"spRaw4": -5
|
||||||
|
@ -84484,7 +84476,7 @@
|
||||||
"int": 15,
|
"int": 15,
|
||||||
"agi": 15,
|
"agi": 15,
|
||||||
"def": 15,
|
"def": 15,
|
||||||
"hpBonus": 8270,
|
"hpBonus": 6110,
|
||||||
"spRaw1": -5,
|
"spRaw1": -5,
|
||||||
"spRaw2": -5,
|
"spRaw2": -5,
|
||||||
"spRaw3": -5,
|
"spRaw3": -5,
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -32,15 +32,15 @@ let player_craft;
|
||||||
|
|
||||||
function init_crafter() {
|
function init_crafter() {
|
||||||
try {
|
try {
|
||||||
document.getElementById("recipe-choice").addEventListener("change", (event) => {
|
document.getElementById("recipe-choice").addEventListener("input", (event) => {
|
||||||
updateMaterials();
|
updateMaterials();
|
||||||
updateCraftedImage();
|
updateCraftedImage();
|
||||||
calculateCraftSchedule();
|
calculateCraftSchedule();
|
||||||
});
|
});
|
||||||
document.getElementById("recipe-choice").addEventListener("oninput", (event) => {
|
document.getElementById("recipe-choice").addEventListener("input", (event) => {
|
||||||
updateCraftedImage();
|
updateCraftedImage();
|
||||||
});
|
});
|
||||||
document.getElementById("level-choice").addEventListener("change", (event) => {
|
document.getElementById("level-choice").addEventListener("input", (event) => {
|
||||||
updateMaterials();
|
updateMaterials();
|
||||||
calculateCraftSchedule();
|
calculateCraftSchedule();
|
||||||
});
|
});
|
||||||
|
@ -50,10 +50,10 @@ function init_crafter() {
|
||||||
document.getElementById("mat-2-"+i).addEventListener("click", (e) => calculateCraftSchedule());
|
document.getElementById("mat-2-"+i).addEventListener("click", (e) => calculateCraftSchedule());
|
||||||
}
|
}
|
||||||
for (let i = 1; i < 7; ++i) {
|
for (let i = 1; i < 7; ++i) {
|
||||||
document.getElementById("ing-choice-" + i ).addEventListener("oninput", (e) => calculateCraftSchedule());
|
document.getElementById("ing-choice-" + i ).addEventListener("input", (e) => calculateCraftSchedule());
|
||||||
}
|
}
|
||||||
for (const str of ["slow", "normal", "fast"]) {
|
for (const str of ["slow", "normal", "fast"]) {
|
||||||
document.getElementById(str + "-atk-button").addEventListener("onclick", (e) => calculateCraftSchedule());
|
document.getElementById(str + "-atk-button").addEventListener("click", (e) => calculateCraftSchedule());
|
||||||
}
|
}
|
||||||
|
|
||||||
populateFields();
|
populateFields();
|
||||||
|
|
|
@ -12,7 +12,6 @@ let roll_range_ids = ["neg_roll_range-choice-min","neg_roll_range-choice-max","p
|
||||||
|
|
||||||
|
|
||||||
function init_customizer() {
|
function init_customizer() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
populateFields();
|
populateFields();
|
||||||
decodeCustom(custom_url_tag);
|
decodeCustom(custom_url_tag);
|
||||||
|
@ -181,6 +180,10 @@ function calculateCustom() {
|
||||||
player_custom_item.setHash(custom_str);
|
player_custom_item.setHash(custom_str);
|
||||||
|
|
||||||
|
|
||||||
|
if (player_custom_item.statMap.get('category') == 'weapon') {
|
||||||
|
// wonkiness needed to set the right fields... this is jank
|
||||||
|
apply_weapon_powders(player_custom_item.statMap);
|
||||||
|
}
|
||||||
displayExpandedItem(player_custom_item.statMap, "custom-stats");
|
displayExpandedItem(player_custom_item.statMap, "custom-stats");
|
||||||
|
|
||||||
}catch (error) {
|
}catch (error) {
|
||||||
|
@ -266,7 +269,7 @@ function decodeCustom(custom_url_tag) {
|
||||||
val = tiers[Base64.toInt(tag.charAt(2))];
|
val = tiers[Base64.toInt(tag.charAt(2))];
|
||||||
len = -1;
|
len = -1;
|
||||||
} else if (id === "type") {
|
} else if (id === "type") {
|
||||||
val = types[Base64.toInt(tag.charAt(2))];
|
val = item_types[Base64.toInt(tag.charAt(2))];
|
||||||
len = -1;
|
len = -1;
|
||||||
} else if (id === "atkSpd") {
|
} else if (id === "atkSpd") {
|
||||||
val = attackSpeeds[Base64.toInt(tag.charAt(2))];
|
val = attackSpeeds[Base64.toInt(tag.charAt(2))];
|
||||||
|
@ -313,7 +316,7 @@ function populateFields() {
|
||||||
tier_list.appendChild(el);
|
tier_list.appendChild(el);
|
||||||
}
|
}
|
||||||
let type_list = document.getElementById("type-list");
|
let type_list = document.getElementById("type-list");
|
||||||
for (const type of types) {
|
for (const type of item_types) {
|
||||||
let el = document.createElement("option");
|
let el = document.createElement("option");
|
||||||
el.value = type;
|
el.value = type;
|
||||||
type_list.appendChild(el);
|
type_list.appendChild(el);
|
||||||
|
@ -602,10 +605,6 @@ function resetBaseValues() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function _init_customizer() {
|
|
||||||
load_ing_init(init_customizer);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Saves the current user's item as a JSON file.
|
/** Saves the current user's item as a JSON file.
|
||||||
* Starts a JSON download.
|
* Starts a JSON download.
|
||||||
*/
|
*/
|
||||||
|
@ -715,4 +714,8 @@ function full_range_to_base(min, max) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
load_init(_init_customizer);
|
(async function() {
|
||||||
|
let load_promises = [ load_init() ];
|
||||||
|
await Promise.all(load_promises);
|
||||||
|
init_customizer();
|
||||||
|
})();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const DB_VERSION = 119;
|
const DB_VERSION = 120;
|
||||||
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.jsA
|
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.jsA
|
||||||
|
|
||||||
let db;
|
let db;
|
||||||
|
|
|
@ -190,7 +190,7 @@ function calculate_skillpoints(equipment, weapon) {
|
||||||
if (sccs.length === 1) {
|
if (sccs.length === 1) {
|
||||||
// Only crafteds. Just do end check (check req first, then apply sp after)
|
// Only crafteds. Just do end check (check req first, then apply sp after)
|
||||||
const total = check_end(best_skillpoints, final_skillpoints, best_activeSetCounts, allFalse.slice());
|
const total = check_end(best_skillpoints, final_skillpoints, best_activeSetCounts, allFalse.slice());
|
||||||
final_skillpoints = best_skillpoints;
|
final_skillpoints = best_skillpoints.slice();
|
||||||
best_total = total;
|
best_total = total;
|
||||||
best_activeSetCounts = best_activeSetCounts;
|
best_activeSetCounts = best_activeSetCounts;
|
||||||
best = [];
|
best = [];
|
||||||
|
|
Loading…
Reference in a new issue