diff options
| author | sD <stoned@derpymail.org> | 2019-12-26 19:45:47 +0100 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2019-12-26 19:45:47 +0100 |
| commit | 401ddd59a2ac50113aefa69b2541eba9f59b5538 (patch) | |
| tree | 776bdcbef7a5fc2e6f50e9992cdfa4287fb87104 /webAO | |
| parent | ca52ac9e410c0249f98957d16671b27f638fe5e6 (diff) | |
sfx delay and redundant Number()
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/client.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webAO/client.js b/webAO/client.js index 929c01b..d335bba 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -1015,8 +1015,8 @@ class Client extends EventEmitter { updateActionCommands(me.side); for (let i = 1; i <= ini.emotions.number; i++) { const emoteinfo = ini.emotions[i].split("#"); - const esfx = ini.soundn[i] ? ini.soundn[i] : "0"; - const esfxd = Number(ini.soundt[i] ? ini.soundt[i] : 0); + const esfx = ini.soundn[i] || "0"; + const esfxd = Number(ini.soundt[i] || 0); // Make sure the asset server is case insensitive, or that everything on it is lowercase emotes[i] = { desc: emoteinfo[0].toLowerCase(), @@ -1024,7 +1024,7 @@ class Client extends EventEmitter { silent: emoteinfo[2].toLowerCase(), zoom: emoteinfo[3], sfx: esfx.toLowerCase(), - sfxdelay: Number(esfxd), + sfxdelay: esfxd, button_off: AO_HOST + `characters/${encodeURI(me.name.toLowerCase())}/emotions/button${i}_off.png`, button_on: AO_HOST + `characters/${encodeURI(me.name.toLowerCase())}/emotions/button${i}_on.png` }; |
