aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-07-16 13:57:59 +0200
committerstonedDiscord <Tukz@gmx.de>2022-07-16 13:57:59 +0200
commitabcba2ff9b3a884952492364fe6b5fe28a6c617f (patch)
treeab7d2113659ee9142996d75b0015b7ff4ae94029
parentb4d6d002509d928bcb1c57aa908059e0d946f18c (diff)
send deskmod too
-rw-r--r--webAO/client.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index 3da1dc8..c73f975 100644
--- a/webAO/client.ts
+++ b/webAO/client.ts
@@ -342,7 +342,7 @@ class Client extends EventEmitter {
/**
* Sends an in-character chat message.
- * @param {string} deskmod currently unused
+ * @param {string} deskmod controls the desk
* @param {string} speaking who is speaking
* @param {string} name the name of the current character
* @param {string} silent whether or not it's silent
@@ -1721,6 +1721,7 @@ class Client extends EventEmitter {
preanim: emoteinfo[1].toLowerCase(),
emote: emoteinfo[2].toLowerCase(),
zoom: Number(emoteinfo[3]) || 0,
+ deskmod: Number(emoteinfo[4]) || 1,
sfx: esfx.toLowerCase(),
sfxdelay: esfxd,
frame_screenshake: '',
@@ -2656,7 +2657,7 @@ export function onEnter(event: KeyboardEvent) {
client.sendIC(
- 'chat',
+ myemo.deskmod,
myemo.preanim,
mychar.name,
myemo.emote,