aboutsummaryrefslogtreecommitdiff
path: root/test-client/protocol.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/protocol.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/protocol.ts')
-rw-r--r--test-client/protocol.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-client/protocol.ts b/test-client/protocol.ts
index f075852e..145e08fe 100644
--- a/test-client/protocol.ts
+++ b/test-client/protocol.ts
@@ -26,7 +26,7 @@ export type PacketC =
| { type: "put_item", tile: Vec2, player: PlayerID } // An item was put on a tile
| { type: "set_tile_item", tile: Vec2, item?: ItemIndex } // A tile changed its item
| { type: "set_player_item", player: PlayerID, item?: ItemIndex } // A player changed their item
- | { type: "set_active", tile: Vec2, progress?: number } // A tile is doing something. progress goes from 0 to 1, then null when finished
+ | { type: "set_active", tile: Vec2, progress?: number, warn: boolean } // A tile is doing something. progress goes from 0 to 1, then null when finished
| { type: "update_map", pos: Vec2, tile: TileIndex, neighbors: [TileIndex | null] } // A map tile was changed
| { type: "communicate", player: PlayerID, message?: Message } // A player wants to communicate something, message is null when cleared