diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-25 14:57:42 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-25 14:57:42 +0800 |
commit | 7f3beff7fcfca32e1e9b8c63d4efd9ba81731604 (patch) | |
tree | 8b72fd5a843c2b1805c4d7c389e0dc0814f1983a /features/slayers | |
parent | 01b77ec83a7e24afcf4a5000b241bcf11dccfc2c (diff) | |
download | SoopyV2-7f3beff7fcfca32e1e9b8c63d4efd9ba81731604.tar.gz SoopyV2-7f3beff7fcfca32e1e9b8c63d4efd9ba81731604.tar.bz2 SoopyV2-7f3beff7fcfca32e1e9b8c63d4efd9ba81731604.zip |
update dulkir thingo
Diffstat (limited to 'features/slayers')
-rw-r--r-- | features/slayers/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index aa8feed..e3629ba 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -241,7 +241,7 @@ class Slayers extends Feature { && lineSplitThing[0].split("/").length === 2 && lineSplitThing[1] === "Kills") { let kills = lineSplitThing[0].split("/").map(a => parseInt(a)) - if (kills[0] >= kills[1] - 4 || kills[0] / kills[1] > 0.95) { + if (kills[0] / kills[1] > 0.9) { this.slayerProgressAlertText = line.getName() this.slayerProgressAlertTime = Date.now() + 1000 } @@ -456,9 +456,9 @@ class Slayers extends Feature { Renderer.scale(1, 1); } if (this.slayerProgressAlert.getValue() && Date.now() < this.slayerProgressAlertTime) { - let scale = Renderer.getStringWidth(ChatLib.removeFormatting(this.slayerProgressAlertText)) / (Renderer.screen.getWidth() * 0.75); + let scale = Renderer.getStringWidth(ChatLib.removeFormatting(this.slayerProgressAlertText)) / (Renderer.screen.getWidth() * 0.5); Renderer.scale(1 / scale, 1 / scale); - Renderer.drawString(this.slayerProgressAlertText, Renderer.screen.getWidth() * 0.125 * scale, (Renderer.screen.getHeight() / 2 - 9 / scale) * scale); + Renderer.drawString(this.slayerProgressAlertText, Renderer.screen.getWidth() * 0.125 * scale, (Renderer.screen.getHeight() / 2 + 9 / scale) * scale); Renderer.scale(1, 1); } } |