aboutsummaryrefslogtreecommitdiff
path: root/features/dungeonSolvers
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-02 17:54:59 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-02 17:54:59 +0800
commit7940745eb519224a6826f2b94ab7802cf05d94b8 (patch)
tree65e1558e2c904c7452b7aa3fb3b03cca201b1581 /features/dungeonSolvers
parentf1461a7798e688ebfa0c6224688b03b67bc77659 (diff)
downloadSoopyV2-7940745eb519224a6826f2b94ab7802cf05d94b8.tar.gz
SoopyV2-7940745eb519224a6826f2b94ab7802cf05d94b8.tar.bz2
SoopyV2-7940745eb519224a6826f2b94ab7802cf05d94b8.zip
move loading mayor data to dataLoader
Diffstat (limited to 'features/dungeonSolvers')
-rw-r--r--features/dungeonSolvers/index.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js
index 6fba0ab..6454116 100644
--- a/features/dungeonSolvers/index.js
+++ b/features/dungeonSolvers/index.js
@@ -323,15 +323,13 @@ class DungeonSolvers extends Feature {
}
step_5min() {
- fetch("http://soopymc.my.to/api/v2/mayor").json(data => {
- this.ezpz = false
- if (!data.success) return
- if (data.data.mayor.name === "Paul") {
- if (data.data.mayor.perks.some(a => a.name === "EZPZ")) {
- this.ezpz = true
- }
+ this.ezpz = false
+ if (!data.success) return
+ if (this.FeatureManager.features["dataLoader"].class.mayorData.mayor.name === "Paul") {
+ if (this.FeatureManager.features["dataLoader"].class.currentMayorPerks.has("EZPZ")) {
+ this.ezpz = true
}
- })
+ }
}
calculateDungeonScore() {