Skip to content

Commit

Permalink
- Remove cleaning names of mats from punctuation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroGwafa committed Oct 9, 2024
1 parent ed76105 commit b0fb5a2
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,35 +173,31 @@ window.setTimeout(function () {
name = line
.trim()
.split("You find some")[1]
.trim()
.replace(/(\.|')/g, "");
.trim();
type = "Normal";
}
// Auto Screener
if (line.indexOf("Your auto-screener") > -1) {
name = line
.trim()
.split("Your auto-screener spits out some ")[1]
.trim()
.replace(/(\.|')/g, "");
.trim();
type = "Auto-screener";
}
// Familiar (Waterfiend/etc)
if (line.indexOf("Your familiar has produced an item") > -1) {
name = line
.trim()
.split(/produced an item:? /)[1]
.trim()
.replace(/(\.|')/g, "");
.trim();
type = "Familiar";
}
// Porter/Imp-Souled
if (line.indexOf("material storage") > -1) {
name = line
.trim()
.split(/material storage:? /)[1]
.trim()
.replace(/(\.|')/g, "");
.trim();
type = "Porter";
if (line.indexOf("imp-souled") > -1) type = "Imp Souled";
if (line.indexOf("Fortune perk") > -1) type = "Fortune";
Expand All @@ -213,8 +209,7 @@ window.setTimeout(function () {
.match(/your bank:? [(\.|')+g\s]*/)[0]
.split(/your bank:? /)[1]
.split(/ x /)[0]
.trim()
.replace("'", "");
.trim();
if (line.indexOf("imp-souled") > -1) type = "Imp Souled";
else type = "Fortune";
}
Expand Down

0 comments on commit b0fb5a2

Please sign in to comment.