aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleRT.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/packets/handlers/handleRT.ts')
-rw-r--r--webAO/packets/handlers/handleRT.ts42
1 files changed, 21 insertions, 21 deletions
diff --git a/webAO/packets/handlers/handleRT.ts b/webAO/packets/handlers/handleRT.ts
index 62ebb1e..48c551f 100644
--- a/webAO/packets/handlers/handleRT.ts
+++ b/webAO/packets/handlers/handleRT.ts
@@ -1,25 +1,25 @@
import { client } from "../../client";
-import { initTestimonyUpdater } from '../../viewport/utils/initTestimonyUpdater'
+import { initTestimonyUpdater } from "../../viewport/utils/initTestimonyUpdater";
/**
- * Handles a testimony states.
- * @param {Array} args packet arguments
- */
+ * Handles a testimony states.
+ * @param {Array} args packet arguments
+ */
export const handleRT = (args: string[]) => {
- const judgeid = Number(args[2]);
- switch (args[1]) {
- case "testimony1":
- client.testimonyID = 1;
- break;
- case "testimony2":
- // Cross Examination
- client.testimonyID = 2;
- break;
- case "judgeruling":
- client.testimonyID = 3 + judgeid;
- break;
- default:
- console.warn("Invalid testimony");
- }
- initTestimonyUpdater();
-} \ No newline at end of file
+ const judgeid = Number(args[2]);
+ switch (args[1]) {
+ case "testimony1":
+ client.testimonyID = 1;
+ break;
+ case "testimony2":
+ // Cross Examination
+ client.testimonyID = 2;
+ break;
+ case "judgeruling":
+ client.testimonyID = 3 + judgeid;
+ break;
+ default:
+ console.warn("Invalid testimony");
+ }
+ initTestimonyUpdater();
+};