aboutsummaryrefslogtreecommitdiff
path: root/features/events
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-04-23 13:19:19 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-04-23 13:19:19 +0800
commitb4111d1e0895559f800e275fbbae98a86ac11e7d (patch)
treec08770b446717a3420d45fc716b76f4e703afb03 /features/events
parent5595ba9f25365aad0c5aaa1b3641f0617d869834 (diff)
downloadSoopyV2-b4111d1e0895559f800e275fbbae98a86ac11e7d.tar.gz
SoopyV2-b4111d1e0895559f800e275fbbae98a86ac11e7d.tar.bz2
SoopyV2-b4111d1e0895559f800e275fbbae98a86ac11e7d.zip
+ dulkur thingo
+ DinkDonk for piller only happens when ur boss is spawned
Diffstat (limited to 'features/events')
-rw-r--r--features/events/index.js20
1 files changed, 18 insertions, 2 deletions
diff --git a/features/events/index.js b/features/events/index.js
index 0a4287c..8ab5f86 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -1,7 +1,7 @@
/// <reference types="../../../CTAutocomplete" />
/// <reference lib="es2015" />
import Feature from "../../featureClass/class";
-import { drawBoxAtBlockNotVisThruWalls, drawCoolWaypoint, drawLine } from "../../utils/renderUtils";
+import { drawBoxAtBlock, drawBoxAtBlockNotVisThruWalls, drawCoolWaypoint, drawLine } from "../../utils/renderUtils";
import { calculateDistanceQuick } from "../../utils/utils";
import SettingBase from "../settings/settingThings/settingBase";
import ToggleSetting from "../settings/settingThings/toggle";
@@ -136,7 +136,7 @@ class Events extends Feature {
return time > Date.now() - 5000
})
- if (this.showBurrialGuess.getValue() && Date.now() - this.lastDing > 500 && Date.now() - this.lastDing < 100000) {
+ if (this.lastParticlePoint && this.showBurrialGuess.getValue() && Date.now() - this.lastDing > 500 && Date.now() - this.lastDing < 100000) {
// console.log(this.firstPitch, this.lastDingPitch, this.lastDingPitch / this.firstPitch)
this.lastDing = 0
@@ -282,6 +282,22 @@ class Events extends Feature {
found = true
loc.lastPing = Date.now()
}
+ if ((loc.x + 1) + "," + (loc.y + 1) + "," + loc.z === locstr) {
+ found = true
+ loc.lastPing = Date.now()
+ }
+ if ((loc.x + 1) + "," + (loc.y - 1) + "," + loc.z === locstr) {
+ found = true
+ loc.lastPing = Date.now()
+ }
+ if ((loc.x - 1) + "," + (loc.y + 1) + "," + loc.z === locstr) {
+ found = true
+ loc.lastPing = Date.now()
+ }
+ if ((loc.x - 1) + "," + (loc.y - 1) + "," + loc.z === locstr) {
+ found = true
+ loc.lastPing = Date.now()
+ }
if ((loc.x - 1) + "," + loc.y + "," + loc.z === locstr) {
found = true
loc.lastPing = Date.now()