summaryrefslogtreecommitdiff
path: root/test-client/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test-client/main.ts')
-rw-r--r--test-client/main.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/test-client/main.ts b/test-client/main.ts
index eeb9d9c0..9a7e41a4 100644
--- a/test-client/main.ts
+++ b/test-client/main.ts
@@ -43,6 +43,7 @@ export interface ItemData {
y: number,
tracking?: V2,
progress?: number
+ progress_warn?: boolean
remove_anim?: number
}
export interface PlayerData {
@@ -139,7 +140,9 @@ function packet(p: PacketC) {
break;
}
case "set_active": {
- tiles.get(p.tile.toString())!.item!.progress = p.progress
+ const item = tiles.get(p.tile.toString())!.item!;
+ item.progress = p.progress
+ item.progress_warn = p.warn
break;
}
case "update_map":