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",
|
||||
"type": "boots",
|
||||
"armorType": "Diamond",
|
||||
"thunderDamageBonusRaw": -1000,
|
||||
"waterDamageBonusRaw": 100,
|
||||
"category": "armor",
|
||||
"slots": 3,
|
||||
"color": "160,101,64",
|
||||
|
@ -24230,6 +24228,8 @@
|
|||
"xpb": -10,
|
||||
"hprRaw": 150,
|
||||
"wDamPct": 20,
|
||||
"wDamRaw": 100,
|
||||
"tDamRaw": -1000,
|
||||
"fDefPct": 15,
|
||||
"tDefPct": -20,
|
||||
"id": 3769
|
||||
|
@ -27161,9 +27161,9 @@
|
|||
"drop": "NORMAL",
|
||||
"fDam": "160-200",
|
||||
"wDam": "0-0",
|
||||
"aDam": "0-0",
|
||||
"tDam": "0-0",
|
||||
"eDam": "150-210",
|
||||
"aDam": "0-0",
|
||||
"nDam": "0-0",
|
||||
"atkSpd": "VERY_SLOW",
|
||||
"lvl": 104,
|
||||
|
@ -53212,7 +53212,6 @@
|
|||
"name": "Continuum",
|
||||
"tier": "Set",
|
||||
"type": "wand",
|
||||
"set": "Boundless",
|
||||
"material": "269:4",
|
||||
"category": "weapon",
|
||||
"slots": 2,
|
||||
|
@ -53239,7 +53238,6 @@
|
|||
"name": "Divergence",
|
||||
"tier": "Set",
|
||||
"type": "spear",
|
||||
"set": "Boundless",
|
||||
"material": "256:4",
|
||||
"category": "weapon",
|
||||
"slots": 3,
|
||||
|
@ -53284,9 +53282,7 @@
|
|||
"name": "Aleph Null",
|
||||
"tier": "Set",
|
||||
"type": "leggings",
|
||||
"set": "Boundless",
|
||||
"armorType": "Diamond",
|
||||
"elementalDamageBonus": 20,
|
||||
"category": "armor",
|
||||
"slots": 1,
|
||||
"color": "160,101,64",
|
||||
|
@ -53305,13 +53301,13 @@
|
|||
"def": 5,
|
||||
"sdRaw": 200,
|
||||
"mdRaw": 250,
|
||||
"rDamPct": 20,
|
||||
"id": 3783
|
||||
},
|
||||
{
|
||||
"name": "Fractal",
|
||||
"tier": "Set",
|
||||
"type": "relik",
|
||||
"set": "Boundless",
|
||||
"material": "273:8",
|
||||
"category": "weapon",
|
||||
"slots": 4,
|
||||
|
@ -53339,7 +53335,6 @@
|
|||
"name": "Nonexistence",
|
||||
"tier": "Set",
|
||||
"type": "helmet",
|
||||
"set": "Boundless",
|
||||
"armorType": "Diamond",
|
||||
"category": "armor",
|
||||
"slots": 4,
|
||||
|
@ -53364,7 +53359,6 @@
|
|||
"name": "Infinitesimal",
|
||||
"tier": "Set",
|
||||
"type": "dagger",
|
||||
"set": "Boundless",
|
||||
"material": "359:10",
|
||||
"category": "weapon",
|
||||
"slots": 1,
|
||||
|
@ -53433,7 +53427,6 @@
|
|||
"name": "Recursion",
|
||||
"tier": "Set",
|
||||
"type": "bow",
|
||||
"set": "Boundless",
|
||||
"material": "261:10",
|
||||
"category": "weapon",
|
||||
"slots": 3,
|
||||
|
@ -79629,7 +79622,6 @@
|
|||
"tier": "Rare",
|
||||
"type": "helmet",
|
||||
"armorType": "Iron",
|
||||
"elementalDamageBonusRaw": 150,
|
||||
"category": "armor",
|
||||
"slots": 5,
|
||||
"color": "160,101,64",
|
||||
|
@ -79646,6 +79638,7 @@
|
|||
"agi": 3,
|
||||
"def": 3,
|
||||
"rMdRaw": 160,
|
||||
"rDamRaw": 150,
|
||||
"id": 3790
|
||||
},
|
||||
{
|
||||
|
@ -83551,7 +83544,6 @@
|
|||
"hprPct": 50,
|
||||
"hprRaw": 150,
|
||||
"spd": 35,
|
||||
"spd": 35,
|
||||
"sprintReg": 50,
|
||||
"mr": 25
|
||||
}
|
||||
|
@ -84462,7 +84454,7 @@
|
|||
"mr": 12,
|
||||
"xpb": 55,
|
||||
"lb": 55,
|
||||
"hpBonus": 2575,
|
||||
"hpBonus": 2275,
|
||||
"spRaw2": -5,
|
||||
"spRaw4": -5
|
||||
},
|
||||
|
@ -84470,7 +84462,7 @@
|
|||
"mr": 18,
|
||||
"xpb": 80,
|
||||
"lb": 80,
|
||||
"hpBonus": 4450,
|
||||
"hpBonus": 3850,
|
||||
"spRaw1": -5,
|
||||
"spRaw2": -5,
|
||||
"spRaw4": -5
|
||||
|
@ -84484,7 +84476,7 @@
|
|||
"int": 15,
|
||||
"agi": 15,
|
||||
"def": 15,
|
||||
"hpBonus": 8270,
|
||||
"hpBonus": 6110,
|
||||
"spRaw1": -5,
|
||||
"spRaw2": -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() {
|
||||
try {
|
||||
document.getElementById("recipe-choice").addEventListener("change", (event) => {
|
||||
document.getElementById("recipe-choice").addEventListener("input", (event) => {
|
||||
updateMaterials();
|
||||
updateCraftedImage();
|
||||
calculateCraftSchedule();
|
||||
});
|
||||
document.getElementById("recipe-choice").addEventListener("oninput", (event) => {
|
||||
document.getElementById("recipe-choice").addEventListener("input", (event) => {
|
||||
updateCraftedImage();
|
||||
});
|
||||
document.getElementById("level-choice").addEventListener("change", (event) => {
|
||||
document.getElementById("level-choice").addEventListener("input", (event) => {
|
||||
updateMaterials();
|
||||
calculateCraftSchedule();
|
||||
});
|
||||
|
@ -50,10 +50,10 @@ function init_crafter() {
|
|||
document.getElementById("mat-2-"+i).addEventListener("click", (e) => calculateCraftSchedule());
|
||||
}
|
||||
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"]) {
|
||||
document.getElementById(str + "-atk-button").addEventListener("onclick", (e) => calculateCraftSchedule());
|
||||
document.getElementById(str + "-atk-button").addEventListener("click", (e) => calculateCraftSchedule());
|
||||
}
|
||||
|
||||
populateFields();
|
||||
|
|
|
@ -12,7 +12,6 @@ let roll_range_ids = ["neg_roll_range-choice-min","neg_roll_range-choice-max","p
|
|||
|
||||
|
||||
function init_customizer() {
|
||||
|
||||
try {
|
||||
populateFields();
|
||||
decodeCustom(custom_url_tag);
|
||||
|
@ -181,6 +180,10 @@ function calculateCustom() {
|
|||
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");
|
||||
|
||||
}catch (error) {
|
||||
|
@ -266,7 +269,7 @@ function decodeCustom(custom_url_tag) {
|
|||
val = tiers[Base64.toInt(tag.charAt(2))];
|
||||
len = -1;
|
||||
} else if (id === "type") {
|
||||
val = types[Base64.toInt(tag.charAt(2))];
|
||||
val = item_types[Base64.toInt(tag.charAt(2))];
|
||||
len = -1;
|
||||
} else if (id === "atkSpd") {
|
||||
val = attackSpeeds[Base64.toInt(tag.charAt(2))];
|
||||
|
@ -313,7 +316,7 @@ function populateFields() {
|
|||
tier_list.appendChild(el);
|
||||
}
|
||||
let type_list = document.getElementById("type-list");
|
||||
for (const type of types) {
|
||||
for (const type of item_types) {
|
||||
let el = document.createElement("option");
|
||||
el.value = type;
|
||||
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.
|
||||
* 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
|
||||
|
||||
let db;
|
||||
|
|
|
@ -190,7 +190,7 @@ function calculate_skillpoints(equipment, weapon) {
|
|||
if (sccs.length === 1) {
|
||||
// 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());
|
||||
final_skillpoints = best_skillpoints;
|
||||
final_skillpoints = best_skillpoints.slice();
|
||||
best_total = total;
|
||||
best_activeSetCounts = best_activeSetCounts;
|
||||
best = [];
|
||||
|
|
Loading…
Reference in a new issue