mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
handler_get_game_again
minigame handler
This commit is contained in:
parent
54cbb7c203
commit
223acc583b
@ -120,3 +120,15 @@ async def handle_set_game_data(p, index: OptionalConverter(int) = 0, *, game_dat
|
||||
)
|
||||
|
||||
await data_insert.gino.scalar()
|
||||
|
||||
|
||||
@handlers.handler(XTPacket('zr', ext='z'), client=ClientType.Vanilla)
|
||||
@handlers.player_attribute(agent_status=True)
|
||||
async def handle_get_game_again(p):
|
||||
games = list(range(1, 11))
|
||||
|
||||
games_string = f'{games.pop(random.randrange(len(games)))},' \
|
||||
f'{games.pop(random.randrange(len(games)))},' \
|
||||
f'{games.pop(random.randrange(len(games)))}'
|
||||
await p.send_xt('zr', games_string, random.randint(1, 6))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user