aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-08 07:11:23 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-08 07:11:23 +0800
commitcaf82bd3d36f9652d83d4840cb7c5598d5139ad6 (patch)
treec4e4824b4bac9d892f505a11db0a02a972ff7341 /features
parentc01d28e92646a46fe02e8e8dd3c60c1abff2e1d3 (diff)
downloadSoopyV2-caf82bd3d36f9652d83d4840cb7c5598d5139ad6.tar.gz
SoopyV2-caf82bd3d36f9652d83d4840cb7c5598d5139ad6.tar.bz2
SoopyV2-caf82bd3d36f9652d83d4840cb7c5598d5139ad6.zip
+ fix rounding issues on slayer exp displays
Diffstat (limited to 'features')
-rw-r--r--features/slayers/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 7076736..ee399f4 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -91,7 +91,7 @@ class Slayers extends Feature {
}
}
- this.slayerExp[this.lastSlayerType] = this.lastSlayerExp * multiplier + (this.slayerExp[this.lastSlayerType] || 0);
+ this.slayerExp[this.lastSlayerType] = Math.round(this.lastSlayerExp * multiplier) + (this.slayerExp[this.lastSlayerType] || 0);
if (this.expOnKill.getValue()) {
cancel(e);