aboutsummaryrefslogtreecommitdiff
path: root/features/dungeonSolvers
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-29 21:15:14 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-29 21:15:14 +0800
commitd8aa514a40f3856376e50f180da3c3f79c608004 (patch)
tree82addd0df2d34e5d3fff980d6d71cdb1ce99562d /features/dungeonSolvers
parentc1f2703faf17aa31eafb28e7ae98c1b771b6e6ff (diff)
downloadSoopyV2-d8aa514a40f3856376e50f180da3c3f79c608004.tar.gz
SoopyV2-d8aa514a40f3856376e50f180da3c3f79c608004.tar.bz2
SoopyV2-d8aa514a40f3856376e50f180da3c3f79c608004.zip
more forge side rendering changes
Diffstat (limited to 'features/dungeonSolvers')
-rw-r--r--features/dungeonSolvers/index.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js
index 8cd5da0..34c236f 100644
--- a/features/dungeonSolvers/index.js
+++ b/features/dungeonSolvers/index.js
@@ -169,11 +169,11 @@ class DungeonSolvers extends Feature {
};
this.registerStep(true, 2, this.step).registeredWhen(() => this.isInDungeon());
+ this.registerStep(false, 60, this.step)
this.registerStep(true, 10, this.step2).registeredWhen(() => this.isInDungeon());
this.registerStep(false, 60 * 5, this.step_5min)
this.registerEvent("worldLoad", this.onWorldLoad);
- this.registerEvent("renderOverlay", this.renderHud).registeredWhen(() => this.isInDungeon());
this.registerEvent("renderWorld", this.renderWorld).registeredWhen(() => this.isInDungeon());
this.bloodOpenedBonus = false;
@@ -543,14 +543,6 @@ class DungeonSolvers extends Feature {
}
}
- renderHud() {
- if (this.bearSpawning && this.bearSpawning > 0) {
- this.spiritBearSpawnElement.setText("&dBear spawned in: &c" + (Math.max(0, this.bearSpawning - Date.now()) / 1000).toFixed(2) + "s");
- } else {
- this.spiritBearSpawnElement.setText("");
- }
- }
-
onWorldLoad() {
this.goneInBonus = false;
this.bloodOpenedBonus = false;
@@ -589,6 +581,11 @@ class DungeonSolvers extends Feature {
}
step2() {
+ if (this.bearSpawning && this.bearSpawning > 0) {
+ this.spiritBearSpawnElement.setText("&dBear spawned in: &c" + (Math.max(0, this.bearSpawning - Date.now()) / 1000).toFixed(2) + "s");
+ } else {
+ this.spiritBearSpawnElement.setText("");
+ }
if (this.scoreCalculation.getValue()) this.calculateDungeonScore();
if (this.bloodCampAssist.getValue()) {
this.skulls.forEach((skull) => {
@@ -891,6 +888,8 @@ class DungeonSolvers extends Feature {
}
onDisable() {
+ this.hudElements.forEach(h => h.delete())
+
this.initVariables();
}
}