aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/globalSettings/index.js')
-rw-r--r--features/globalSettings/index.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index 61d2173..12d5a26 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -200,6 +200,12 @@ class GlobalSettings extends Feature {
}
})
let todoText = [];
+ if (this.guiOpened) {
+ this.maxAmount = 0
+ this.todoPickUpLog = {};
+ } else if (!this.warpedAgain) {
+ this.maxAmount = 12
+ }
if (pick) {
Object.keys(this.todoPickUpLog).forEach((i) => {
if (Math.abs(this.todoPickUpLog[i].timeStamp - now) > 5000 || !this.todoPickUpLog[i].Amount || this.todoPickUpLog[i].Amount == 0) {
@@ -212,9 +218,6 @@ class GlobalSettings extends Feature {
} else {
this.todoPickUpLog = {};
}
- if (this.guiOpened) {
- this.todoPickUpLog = {};
- }
// doesn't need to put setText() in if (pick) cuz if (!pick) it clears the todo log list
this.sbaItemPickUpLogElement.setText(todoText.join("\n"))
})