aboutsummaryrefslogtreecommitdiff
path: root/webAO/viewport/utils/handleICSpeaking.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/viewport/utils/handleICSpeaking.ts')
-rw-r--r--webAO/viewport/utils/handleICSpeaking.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/webAO/viewport/utils/handleICSpeaking.ts b/webAO/viewport/utils/handleICSpeaking.ts
index a612e77..b48a445 100644
--- a/webAO/viewport/utils/handleICSpeaking.ts
+++ b/webAO/viewport/utils/handleICSpeaking.ts
@@ -148,7 +148,7 @@ export const handle_ic_speaking = async (playerChatMsg: ChatMsg) => {
chatContainerBox.style.opacity = "0";
if (client.viewport.getChatmsg().objection === 4) {
shoutSprite.src = `${AO_HOST}characters/${encodeURI(
- client.viewport.getChatmsg().name!.toLowerCase(),
+ client.viewport.getChatmsg().name!,
)}/custom.gif`;
} else {
shoutSprite.src = client.resources[shout].src;
@@ -272,7 +272,7 @@ export const handle_ic_speaking = async (playerChatMsg: ChatMsg) => {
client.viewport.blipChannels.forEach(
(channel: HTMLAudioElement) =>
(channel.src = `${AO_HOST}sounds/blips/${encodeURI(
- client.viewport.getChatmsg().blips.toLowerCase(),
+ client.viewport.getChatmsg().blips,
)}.opus`),
);
@@ -288,7 +288,7 @@ export const handle_ic_speaking = async (playerChatMsg: ChatMsg) => {
// apply effects
fg.style.animation = "";
- const effectName = client.viewport.getChatmsg().effects[0].toLowerCase();
+ const effectName = client.viewport.getChatmsg().effects[0];
const badEffects = ["", "-", "none"];
if (effectName.startsWith("rain")) {
(<HTMLLinkElement>document.getElementById("effect_css")).href =