diff options
Diffstat (limited to 'webAO/packets/handlers/handlePV.ts')
| -rw-r--r-- | webAO/packets/handlers/handlePV.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/webAO/packets/handlers/handlePV.ts b/webAO/packets/handlers/handlePV.ts index 0865fe8..17e9fc1 100644 --- a/webAO/packets/handlers/handlePV.ts +++ b/webAO/packets/handlers/handlePV.ts @@ -45,7 +45,7 @@ export const handlePV = async (args: string[]) => { class="emote_button">No emotes available</span>`; } else { // Probe extensions once using button1_off, then reuse for all emotes - const charPath = `${AO_HOST}characters/${encodeURI(me.name.toLowerCase())}/emotions/`; + const charPath = `${AO_HOST}characters/${encodeURI(me.name)}/emotions/`; let emoteExtension = client.emotions_extensions[0]; for (const extension of client.emotions_extensions) { if (await fileExists(`${charPath}button1_off${extension}`)) { @@ -71,12 +71,12 @@ export const handlePV = async (args: string[]) => { const url = `${charPath}button${i}_off${emoteExtension}`; emotes[i] = { - desc: emoteinfo[0].toLowerCase(), - preanim: emoteinfo[1].toLowerCase(), - emote: emoteinfo[2].toLowerCase(), + desc: emoteinfo[0], + preanim: emoteinfo[1], + emote: emoteinfo[2], zoom: Number(emoteinfo[3]) || 0, deskmod: Number(emoteinfo[4]) || 1, - sfx: esfx.toLowerCase(), + sfx: esfx, sfxdelay: esfxd, frame_screenshake: "", frame_realization: "", @@ -95,7 +95,7 @@ export const handlePV = async (args: string[]) => { if ( await fileExists( - `${AO_HOST}characters/${encodeURI(me.name.toLowerCase())}/custom.gif`, + `${AO_HOST}characters/${encodeURI(me.name)}/custom.gif`, ) ) { document.getElementById("button_4")!.style.display = ""; |
