We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b59106d commit a11800bCopy full SHA for a11800b
scripts/script.js
@@ -76,12 +76,14 @@ window.setTimeout(function () {
76
console.log(chat)
77
count = Number(comps[x].match(/\d+/)); //1
78
mats = comps[x].match(/[^You receive \d]\w+( \w+)?/)[0]; //Junk
79
+ if(mats == "Third") mats = "Third-age components"
80
if (!mats.match(/parts|components|Junk/)) mats += "s";
81
if (compsList[mats]) {
82
compsList[mats].qty += count; //add count to index of second list.
83
tidyTable(mats);
84
} else {
85
console.warn("Invalid component. Ignoring.");
86
+ console.log({comps,mats});
87
continue;
88
}
89
0 commit comments