diff options
author | EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> | 2022-08-11 07:01:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-11 07:01:26 +0800 |
commit | fe6878c328dca8b78a5e4eeb7af7c85e0649b659 (patch) | |
tree | f3f95b8d91458cd852d5e3d4ea33a8bc89221188 | |
parent | 7940ae49e4327f77345821764c8346cb44657848 (diff) | |
download | SoopyV2-fe6878c328dca8b78a5e4eeb7af7c85e0649b659.tar.gz SoopyV2-fe6878c328dca8b78a5e4eeb7af7c85e0649b659.tar.bz2 SoopyV2-fe6878c328dca8b78a5e4eeb7af7c85e0649b659.zip |
Update index.js
-rw-r--r-- | features/globalSettings/index.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index 767f2ee..a17cf50 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -59,7 +59,7 @@ class GlobalSettings extends Feature { this.showChampion = new ToggleSetting("Show champion enchant info in lore", "", true, "show_champion", this) this.oldMasterStars = new ToggleSetting("Use Old Master Stars", "replaces the ugly new master star on item name with the old fashion one", false, "old_master_star", this) - this.sbaItemPickUpLog = new ToggleSetting("Sba Item Pick Up Log", "Same as sba item pick up log, but fixes old master stars making it go brrr", true, "sba_item_log", this); + this.sbaItemPickUpLog = new ToggleSetting("Sba Item Pick Up Log", "Same as sba item pick up log, but fixes old master stars making it go brrr", false, "sba_item_log", this); this.sbaItemPickUpLogElement = new HudTextElement() .setText("") .setToggleSetting(this.sbaItemPickUpLog) @@ -207,7 +207,7 @@ class GlobalSettings extends Feature { return } //positive and negative prefix colors - todoText.push((this.todoPickUpLog[i].Amount > 0 ? "&r&a+ " : "&r&c- ") + Math.abs(this.todoPickUpLog[i].Amount) + "x &r" + i) + if (todoText.length < 12) todoText.push((this.todoPickUpLog[i].Amount > 0 ? "&r&a+ " : "&r&c- ") + Math.abs(this.todoPickUpLog[i].Amount) + "x &r" + i) }) } else { this.todoPickUpLog = {}; @@ -227,6 +227,13 @@ class GlobalSettings extends Feature { delay(12500, () => { this.clearLog = false }) }) + this.registerChat("&r&c ☠ ${info} and became a ghost&r&7.&r", (info, e) => { + if (info.includes("You")) { + this.clearLog = true + delay(12500, () => { this.clearLog = false }) + } + }); + this.firstPageSettings = [this.darkTheme] this.firstLoadPageData = JSON.parse(FileLib.read("soopyAddonsData", "soopyv2firstloaddata.json") || "{}") || {} |