diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-04 12:32:15 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-04 12:32:15 +0800 |
commit | 19276a08b82a1b8967811d0cd1d95676c3958002 (patch) | |
tree | de92cc5d2b8c09214ad822de29f19426b9264234 | |
parent | 0e17e4dbe0e53b40fb177f8d70082f75d3543f50 (diff) | |
download | SoopyV2-19276a08b82a1b8967811d0cd1d95676c3958002.tar.gz SoopyV2-19276a08b82a1b8967811d0cd1d95676c3958002.tar.bz2 SoopyV2-19276a08b82a1b8967811d0cd1d95676c3958002.zip |
Capitilise slayer exp type on slayer exp hud element
-rw-r--r-- | features/slayers/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index c83e924..af63a6d 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -9,6 +9,7 @@ import LocationSetting from "../settings/settingThings/location"; import ToggleSetting from "../settings/settingThings/toggle"; import socketConnection from "../../socketConnection"; import TextSetting from "../settings/settingThings/textSetting"; +import { firstLetterCapital } from "../../utils/stringUtils"; class Slayers extends Feature { constructor() { @@ -294,7 +295,7 @@ class Slayers extends Feature { this.todoE2 = []; if (this.slayerXpGuiElement.getValue() && this.lastSlayerType) { - this.slayerXpElement.setText(`&6${this.lastSlayerType}&7> &d&l${numberWithCommas(this.slayerExp[this.lastSlayerType])} XP`); + this.slayerXpElement.setText(`&6${firstLetterCapital(this.lastSlayerType)}&7> &d&l${numberWithCommas(this.slayerExp[this.lastSlayerType])} XP`); } else { this.slayerXpElement.setText(``); } |