aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-04 12:32:15 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-04 12:32:15 +0800
commit19276a08b82a1b8967811d0cd1d95676c3958002 (patch)
treede92cc5d2b8c09214ad822de29f19426b9264234
parent0e17e4dbe0e53b40fb177f8d70082f75d3543f50 (diff)
downloadSoopyV2-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.js3
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(``);
}