aboutsummaryrefslogtreecommitdiff
path: root/features/dungeonMap/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-13 20:24:27 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-13 20:24:27 +0800
commitd16efe86f43b9216206d5b8a1194c5814385d943 (patch)
treedda35181c11a35d03238caf52ccc5921d4ff30ba /features/dungeonMap/index.js
parent2ce1a023ff3a111793e8be00349d60a3e8b82909 (diff)
downloadSoopyV2-d16efe86f43b9216206d5b8a1194c5814385d943.tar.gz
SoopyV2-d16efe86f43b9216206d5b8a1194c5814385d943.tar.bz2
SoopyV2-d16efe86f43b9216206d5b8a1194c5814385d943.zip
+ small fixes
+ paul ezpz checking in score calc + hypixel cookie clicker leaderboard + cookie saving (see top left of screen when in gui)
Diffstat (limited to 'features/dungeonMap/index.js')
-rw-r--r--features/dungeonMap/index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js
index fcb964b..03d99e8 100644
--- a/features/dungeonMap/index.js
+++ b/features/dungeonMap/index.js
@@ -79,13 +79,13 @@ class DungeonMap extends Feature {
}
this.dungeonBossImages = {
- // "F1":[
+ // "F1": [
// {
// image: new Image(javax.imageio.ImageIO.read(new java.io.File("./config/ChatTriggers/modules/SoopyV2/features/dungeonMap/dungeonBossImages/f1.png"))),
- // bounds: [[-65,70,-3],[-19,90,45]],
+ // bounds: [[-65, 70, -3], [-19, 90, 45]],
// widthInWorld: 46,
// heightInWorld: 48,
- // topLeftLocation: [-64,-2]
+ // topLeftLocation: [-64, -2]
// }
// ]
}
@@ -788,7 +788,7 @@ class SpiritLeapOverlay {
this.buttonsContainer.clearChildren()
Object.keys(this.items).forEach((name, i) => {
- let button = new ButtonWithArrow().setText((ChatLib.removeFormatting(name) === this.parent.lastDoorOpener ? "&4" : "&2") + "[" + this.players[ChatLib.removeFormatting(name)] + "] " + ChatLib.removeFormatting(name)).addEvent(new SoopyMouseClickEvent().setHandler(() => {
+ let button = new ButtonWithArrow().setText((ChatLib.removeFormatting(name) === this.parent.lastDoorOpener ? "&4" : "&2") + "[" + (this.players[ChatLib.removeFormatting(name)] || "?") + "] " + ChatLib.removeFormatting(name)).addEvent(new SoopyMouseClickEvent().setHandler(() => {
Player.getContainer().click(itemsNew[name])
ChatLib.chat("Leaping to " + name)
})).setLocation((i % 2) * 0.5, Math.floor(i / 2) * 0.5, 0.5, 0.5)
@@ -847,7 +847,7 @@ class soopyGuiMapRendererThing extends SoopyGuiElement {
let renderY = player.y / this.parentE.parent.mapScale / 128 * size//*16/this.roomWidth
Renderer.translate(renderX + x + this.parentE.parent.offset[0] / 128 * size, renderY + y + this.parentE.parent.offset[1] / 128 * size, 1000)
- renderLibs.drawStringCenteredShadow((player.uuid === closestPlayer?.uuid ? "&c" : "&a") + "[" + this.parentE.players[player.username] + "] " + player.username, 0, -7 * scale * 3, 2)
+ renderLibs.drawStringCenteredShadow((player.uuid === closestPlayer?.uuid ? "&c" : "&a") + "[" + (this.parentE.players[player.username] || "?") + "] " + player.username, 0, -7 * scale * 3, 2)
/*
{
x: player.getX(),
@@ -864,7 +864,7 @@ class soopyGuiMapRendererThing extends SoopyGuiElement {
let renderY = closestPlayer.y / this.parentE.parent.mapScale / 128 * size//*16/this.roomWidth
Renderer.translate(renderX + x + this.parentE.parent.offset[0] / 128 * size, renderY + y + this.parentE.parent.offset[1] / 128 * size)
- renderLibs.drawStringCenteredShadow("&c" + "[" + this.parentE.players[closestPlayer.username] + "] " + closestPlayer.username, 0, -7 * scale * 3, 2)
+ renderLibs.drawStringCenteredShadow("&c" + "[" + (this.parentE.players[closestPlayer.username] || "?") + "] " + closestPlayer.username, 0, -7 * scale * 3, 2)
}
}))
this.addEvent(new SoopyMouseClickEvent().setHandler((mouseX, mouseY) => {