mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +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)
|
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)
|
@handlers.handler(XTPacket('j', 'jr'), after=handle_join_room)
|
||||||
async def handle_join_room_waddle(p):
|
async def handle_join_room_waddle(p):
|
||||||
if p.waddle:
|
if p.waddle:
|
||||||
|
Loading…
Reference in New Issue
Block a user