aboutsummaryrefslogtreecommitdiff
path: root/features/slayers/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-25 15:57:41 +0800
committerGitHub <noreply@github.com>2022-06-25 15:57:41 +0800
commitce4f287e9bce572bcb6512fd42d4b299ea846687 (patch)
tree78d968870feadfae091ee1c11af001709f7c67fa /features/slayers/index.js
parent18d42e724643828d23ce20cf634dfba42b93c6a6 (diff)
parent6b9634041be94691ca38920da732691ba33b5d81 (diff)
downloadSoopyV2-ce4f287e9bce572bcb6512fd42d4b299ea846687.tar.gz
SoopyV2-ce4f287e9bce572bcb6512fd42d4b299ea846687.tar.bz2
SoopyV2-ce4f287e9bce572bcb6512fd42d4b299ea846687.zip
Merge pull request #19 from EmeraldMerchant/patch-16
Reduce lag
Diffstat (limited to 'features/slayers/index.js')
-rw-r--r--features/slayers/index.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 910d0ef..590970a 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -116,10 +116,10 @@ class Slayers extends Feature {
ChatLib.chat("&r &r&a&lSLAYER QUEST COMPLETE!&a&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 (this.bossSpawnKillTime.getValue() && Date.now() - this.lastBossSlain < 60000 * 5) {
+ if (this.bossSpawnKillTime.getValue() && Date.now() - this.lastBossSlain < 60000 * 10) {
ChatLib.chat(`&r &r&aBoss took &d${timeNumber(Date.now() - this.lastBossSlain)} &ato spawn and kill&r&7!`);
}
- if (this.bossKillTime.getValue() && Date.now() - this.lastBossSpawned < 60000 * 4) {
+ if (this.bossKillTime.getValue() && Date.now() - this.lastBossSpawned < 60000 * 4.6) {
ChatLib.chat(`&r &r&aBoss took &d${timeNumber(Date.now() - this.lastBossSpawned)} &ato kill&r&7!`);
}
}
@@ -201,6 +201,7 @@ class Slayers extends Feature {
this.registerEvent("renderWorld", this.renderWorld);
this.registerEvent("worldLoad", this.worldLoad);
this.registerStep(true, 2, this.step);
+ this.registerStep(true, 4, this.step_4fps);
}
slayerLocationData(loc, user) {
@@ -296,7 +297,7 @@ class Slayers extends Feature {
this.todoE2.push(event.entity);
}
- tick() {
+ step_4fps() {
if (this.hideSummonsForLoot.getValue() && this.hideSummons) {
this.renderEntityEvent.register();
} else if (this.hideSummonsForLoot.getValue()) {
@@ -320,8 +321,9 @@ class Slayers extends Feature {
}
});
}
+ }
-
+ tick() {
if (this.FeatureManager.features["dataLoader"].class.isInSkyblock) {
if (!this.entityAttackEventLoaded) {
this.entityAttackEventLoaded = true;