blob: 5bbf2b27df40a4eaac0a8f478a5513147559684c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import { client } from "../../client";
/**
* 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");
}
client.viewport.initTestimonyUpdater();
}
|