summaryrefslogtreecommitdiff
path: root/test-client/main.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-21 00:12:13 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:24:39 +0200
commita1f6b4f47e7aca167e71311d55c3e9a18f4cbff7 (patch)
treeb928cf5ae7b8179f029fbd36f46487dedf582fc7 /test-client/main.ts
parent10aaa4f56642e30b2886735363eb12dfa88e2b70 (diff)
downloadhurrycurry-a1f6b4f47e7aca167e71311d55c3e9a18f4cbff7.tar
hurrycurry-a1f6b4f47e7aca167e71311d55c3e9a18f4cbff7.tar.bz2
hurrycurry-a1f6b4f47e7aca167e71311d55c3e9a18f4cbff7.tar.zst
show bad passive recipes in red
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":