Skip to content

Commit a11800b

Browse files
committed
- Add crude fix for Third-age components not counting correctly (stupid hyphenated names)
1 parent b59106d commit a11800b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/script.js

+2
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,14 @@ window.setTimeout(function () {
7676
console.log(chat)
7777
count = Number(comps[x].match(/\d+/)); //1
7878
mats = comps[x].match(/[^You receive \d]\w+( \w+)?/)[0]; //Junk
79+
if(mats == "Third") mats = "Third-age components"
7980
if (!mats.match(/parts|components|Junk/)) mats += "s";
8081
if (compsList[mats]) {
8182
compsList[mats].qty += count; //add count to index of second list.
8283
tidyTable(mats);
8384
} else {
8485
console.warn("Invalid component. Ignoring.");
86+
console.log({comps,mats});
8587
continue;
8688
}
8789
}

0 commit comments

Comments
 (0)