From 18ad0b5eb391bc68ca54a00257a3f03d4b36b66e Mon Sep 17 00:00:00 2001 From: ferricles Date: Mon, 7 Jun 2021 16:41:51 -0700 Subject: [PATCH] fixed major IDs on custom items not being stored properly --- build.js | 4 +--- custom.js | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/build.js b/build.js index 46a4fcc..77e439b 100644 --- a/build.js +++ b/build.js @@ -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); diff --git a/custom.js b/custom.js index 929bfd8..bde0f32 100644 --- a/custom.js +++ b/custom.js @@ -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);