mirror of
https://github.com/solero/houdini.git
synced 2024-11-24 22:47:22 +00:00
start_waddle
handler
This commit is contained in:
parent
48dde7a0ee
commit
4b88edbc4d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user