aboutsummaryrefslogtreecommitdiff
path: root/util/helperFunctions.js
diff options
context:
space:
mode:
authorNinjune <enderknight537@gmail.com>2023-01-14 18:51:28 -0600
committerNinjune <enderknight537@gmail.com>2023-01-14 18:51:28 -0600
commit8fa7fe39d9edbdd8b00ec238c4e40b6ecd0808cc (patch)
tree04000ede45a86ebfb76b5b01ad4a169be8234470 /util/helperFunctions.js
parent329dccf50ed5e9f87531580f679522238b6a019b (diff)
downloadcoleweight-8fa7fe39d9edbdd8b00ec238c4e40b6ecd0808cc.tar.gz
coleweight-8fa7fe39d9edbdd8b00ec238c4e40b6ecd0808cc.tar.bz2
coleweight-8fa7fe39d9edbdd8b00ec238c4e40b6ecd0808cc.zip
v1.8.7HEADmain
Diffstat (limited to 'util/helperFunctions.js')
-rw-r--r--util/helperFunctions.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/util/helperFunctions.js b/util/helperFunctions.js
index ea91b68..b731e10 100644
--- a/util/helperFunctions.js
+++ b/util/helperFunctions.js
@@ -172,8 +172,9 @@ export class trackerGui
this.collectionMoveGui = new Gui()
}
- renderGui(x, y, notation = false, renderGui = true) // can only be called in renderOverlay
+ renderGui(x, y, toggle = true, notation = false, alwaysShow = false) // can only be called in renderOverlay
{
+ if(!toggle) return
let leftValues = [`${this.itemStringed}`, `${this.itemStringed}/hr`, `${this.itemStringed} gained`, "Uptime"]
this.itemGui.x = x
this.itemGui.y = y
@@ -189,8 +190,8 @@ export class trackerGui
return this.itemGui.renderGui()
}
- if(!renderGui) return
- if(this.itemValues[0] != undefined && /*this.trackingItem && */this.calcItemPerHour)
+ if(!toggle || !(alwaysShow || this.trackingItem || this.trackedItem == "")) return
+ if(this.itemValues[0] != undefined && this.calcItemPerHour)
{
this.itemValuesSum = 0
for(let i = 0; i < this.itemValues.length; i++)
@@ -385,7 +386,8 @@ export function checkInDwarven()
return false
}
-const foragingLocations = ["Dark", "Birch", "Spruce", "Savanna", "Jungle", "Forest"]
+const foragingLocations = ["§aDark Thic🐍§aket", "§aBirch Par🐍§ak", "§aSpruce Wo🐍§aods", "§aSavanna W🐍§aoodland", "§aJungle Is🐍§aland", "§bForest"]
+// pov: hypixel making a working game (i do the same thing)
export function checkInPark()
{
const scoreboard = Scoreboard.getLines()