From 4b88edbc4d0d781cd197427fcfd4c353e0607f6e Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 26 Mar 2020 22:19:17 +0000 Subject: [PATCH] `start_waddle` handler --- houdini/handlers/games/waddle.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/houdini/handlers/games/waddle.py b/houdini/handlers/games/waddle.py index 66e09d4..a2a4815 100644 --- a/houdini/handlers/games/waddle.py +++ b/houdini/handlers/games/waddle.py @@ -25,6 +25,11 @@ async def handle_leave_waddle(p): await p.waddle.remove_penguin(p) +@handlers.handler(XTPacket('w', 'jx')) +async def handle_start_waddle(p, room: Room, waddle: int): + await room.waddles[waddle].add_penguin(p) + + @handlers.handler(XTPacket('j', 'jr'), after=handle_join_room) async def handle_join_room_waddle(p): if p.waddle: