fixed major IDs on custom items not being stored properly

This commit is contained in:
ferricles 2021-06-07 16:41:51 -07:00
parent f22452dc01
commit 18ad0b5eb3
2 changed files with 1 additions and 5 deletions

View file

@ -505,9 +505,7 @@ class Build{
}
}
if (item.get("majorIds")) {
for (const majorID of item.get("majorIds")) {
major_ids.add(majorID);
}
major_ids.add(item.get("majorIds"));
}
}
statMap.set("activeMajorIDs", major_ids);

View file

@ -101,10 +101,8 @@ function getCustomFromHash(hash) {
if (fixID) {
statMap.set("fixID", true);
}
console.log(",,");
while (tag !== "") {
let id = ci_save_order[Base64.toInt(tag.slice(0,2))];
console.log(tag.slice(0, 2) + ": " + id);
let len = Base64.toInt(tag.slice(2,4));
if (rolledIDs.includes(id)) {
let sign = parseInt(tag.slice(4,5),10);