diff options
| author | stonedDiscord <stonedDiscord@users.noreply.github.com> | 2024-11-20 13:31:50 +0000 |
|---|---|---|
| committer | GitHub Action <actions@github.com> | 2024-11-20 13:31:50 +0000 |
| commit | 6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch) | |
| tree | b2a62247d17e23a77af57aea355ba621666817c2 /webAO/packets/handlers/handleRT.ts | |
| parent | 95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff) | |
Prettified Code!
Diffstat (limited to 'webAO/packets/handlers/handleRT.ts')
| -rw-r--r-- | webAO/packets/handlers/handleRT.ts | 42 |
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(); +}; |
