aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-09 21:50:19 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-09 21:50:19 +0800
commit695138fbe0c1ba5450e7e632747e466605ac4548 (patch)
tree4bb41d7dcfef630eb18612d8d9344be2c403e5dd /features
parent5db44566ab59077701ad6ba40116335294865618 (diff)
downloadSoopyV2-695138fbe0c1ba5450e7e632747e466605ac4548.tar.gz
SoopyV2-695138fbe0c1ba5450e7e632747e466605ac4548.tar.bz2
SoopyV2-695138fbe0c1ba5450e7e632747e466605ac4548.zip
move mappings to seperate module
Diffstat (limited to 'features')
-rw-r--r--features/betterGuis/index.js2
-rw-r--r--features/cosmetics/cosmetic/dragon/dragonWings.js2
-rw-r--r--features/cosmetics/index.js2
-rw-r--r--features/dungeonMap/index.js2
-rw-r--r--features/events/index.js2
-rw-r--r--features/hud/index.js2
-rw-r--r--features/mining/index.js2
-rw-r--r--features/slayers/index.js5
8 files changed, 10 insertions, 9 deletions
diff --git a/features/betterGuis/index.js b/features/betterGuis/index.js
index 29a7399..c5f21f4 100644
--- a/features/betterGuis/index.js
+++ b/features/betterGuis/index.js
@@ -2,7 +2,7 @@
/// <reference lib="es2015" />
import Feature from "../../featureClass/class";
import logger from "../../logger";
-import { f } from "../../mappings/mappings";
+import { f } from "../../../mappings/mappings";
import ToggleSetting from "../settings/settingThings/toggle";
import MuseumGui from "./museumGui.js";
diff --git a/features/cosmetics/cosmetic/dragon/dragonWings.js b/features/cosmetics/cosmetic/dragon/dragonWings.js
index 51579fc..d387672 100644
--- a/features/cosmetics/cosmetic/dragon/dragonWings.js
+++ b/features/cosmetics/cosmetic/dragon/dragonWings.js
@@ -1,4 +1,4 @@
-import { f, m, m } from "../../../../mappings/mappings.js";
+import { f, m, m } from "../../../../../mappings/mappings.js";
import Cosmetic from "../../cosmetic.js";
const ModelDragon = Java.type("net.minecraft.client.model.ModelDragon")
diff --git a/features/cosmetics/index.js b/features/cosmetics/index.js
index 6457be0..1eb73d7 100644
--- a/features/cosmetics/index.js
+++ b/features/cosmetics/index.js
@@ -3,7 +3,7 @@
import Feature from "../../featureClass/class";
import DragonWings from "./cosmetic/dragon/dragonWings"
import Toggle from "../settings/settingThings/toggle"
-import { f } from "../../mappings/mappings";
+import { f } from "../../../mappings/mappings";
class Cosmetics extends Feature {
constructor() {
diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js
index a57edfc..93027b3 100644
--- a/features/dungeonMap/index.js
+++ b/features/dungeonMap/index.js
@@ -1,7 +1,7 @@
/// <reference types="../../../CTAutocomplete" />
/// <reference lib="es2015" />
import Feature from "../../featureClass/class";
-import { f, m } from "../../mappings/mappings";
+import { f, m } from "../../../mappings/mappings";
const BufferedImage = Java.type("java.awt.image.BufferedImage")
class DungeonMap extends Feature {
diff --git a/features/events/index.js b/features/events/index.js
index 6769789..ee89ff4 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 { f } from "../../mappings/mappings";
+import { f } from "../../../mappings/mappings";
import { drawBoxAtBlock, drawBoxAtBlockNotVisThruWalls, drawLine } from "../../utils/renderUtils";
import { calculateDistance, calculateDistanceQuick, fastestPathThrough } from "../../utils/utils";
import HudTextElement from "../hud/HudTextElement";
diff --git a/features/hud/index.js b/features/hud/index.js
index e703db5..f224839 100644
--- a/features/hud/index.js
+++ b/features/hud/index.js
@@ -2,7 +2,7 @@
/// <reference lib="es2015" />
import SoopyNumber from "../../../guimanager/Classes/SoopyNumber";
import Feature from "../../featureClass/class";
-import { m } from "../../mappings/mappings";
+import { m } from "../../../mappings/mappings";
import LocationSetting from "../settings/settingThings/location";
import ToggleSetting from "../settings/settingThings/toggle";
import HudTextElement from "./HudTextElement";
diff --git a/features/mining/index.js b/features/mining/index.js
index b89d8e6..8622a19 100644
--- a/features/mining/index.js
+++ b/features/mining/index.js
@@ -1,7 +1,7 @@
/// <reference types="../../../CTAutocomplete" />
/// <reference lib="es2015" />
import Feature from "../../featureClass/class";
-import { m } from "../../mappings/mappings";
+import { m } from "../../../mappings/mappings";
import * as stringUtils from "../../utils/stringUtils";
import * as utils from "../../utils/utils"
import HudTextElement from "../hud/HudTextElement";
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 0be4e57..347cfaa 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -1,7 +1,7 @@
/// <reference types="../../../CTAutocomplete" />
/// <reference lib="es2015" />
import Feature from "../../featureClass/class";
-import { f, m } from "../../mappings/mappings";
+import { f, m } from "../../../mappings/mappings";
import { numberWithCommas } from "../../utils/numberUtils";
import { drawBoxAtBlock, drawBoxAtEntity, drawFilledBox, drawLine } from "../../utils/renderUtils";
import HudTextElement from "../hud/HudTextElement";
@@ -47,7 +47,7 @@ class Slayers extends Feature {
ChatLib.chat("&r &r&a&lSLAYER QUEST COMPLETE!&r")
ChatLib.chat("&r &r&aYou have &d" + numberWithCommas(this.slayerExp[this.lastSlayerType]) + " " + this.lastSlayerType + " XP&r&7!&r")
ChatLib.chat("&r &r&aYou have &d" + numberWithCommas(Object.values(this.slayerExp).reduce((a, t)=>t+a, 0)) + " total XP&r&7!&r")
- if(Date.now()-this.lastBossSlain < 60000*5) ChatLib.chat("&r &r&aBoss took &d" + timeNumber((Date.now()-this.lastBossSlain)) + " &ato spawn and kill&r&7!&r") //TODO: Seperate setting for this
+ if(Date.now()-this.lastBossSlain < 60000*5) ChatLib.chat("&r &r&aBoss took &d" + timeNumber((Date.now()-this.lastBossSlain)) + " &ato spawn and kill&r&7!"+/* (" + timeNumber(Date.now()-this.lastBossSpawned) + " to kill) */"&r") //TODO: Seperate setting for this
}
this.lastBossSlain = Date.now()
})
@@ -55,6 +55,7 @@ class Slayers extends Feature {
this.bossSlainMessage = false
this.bossSpawnedMessage = false
this.lastBossNotSpawnedTime = 0
+ this.lastBossSpawned = 0
this.registerEvent("renderOverlay", this.renderOverlay)