From 82e346b593ac58caf328867e1d89d4ef49654181 Mon Sep 17 00:00:00 2001 From: Ignacio Belitzky Date: Wed, 8 Nov 2023 22:42:46 -0300 Subject: [PATCH] =?UTF-8?q?Hotfix=20-=20Se=20agrega=20cheat=20para=20la=20?= =?UTF-8?q?carta=20an=C3=A1lisis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routers/websockets/services.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/routers/websockets/services.py b/app/routers/websockets/services.py index ba0ceba..7c85f29 100644 --- a/app/routers/websockets/services.py +++ b/app/routers/websockets/services.py @@ -19,8 +19,9 @@ async def send_list_of_cheats(player_id: int): '[det | determinación | resolute]: Obtienes una carta determinación', '[olv | olvidadizo | forgetful]: Obtienes una carta olvidadizo', '[uno_dos | one_two]: Obtienes una carta uno, dos...', - '[sed | seducción | seduction]: Obtienes una carta de seducción' - '[vig | vigila_tus_espaldas | watch_your_back]: Obtienes una carta vigila tus espaldas' + '[sed | seducción | seduction]: Obtienes una carta de seducción', + '[vig | vigila_tus_espaldas | watch_your_back]: Obtienes una carta vigila tus espaldas', + '[an | análisis | analysis]: Obtienes una carta análisis' ] for message in cheat_messages: await player_connections.send_message(player_id, 'Loki', message) @@ -67,10 +68,13 @@ async def handle_message(data, player_id): elif message == 'det' or message == 'determinación' or message == 'resolute': apply_cheat(game_name, player_id, range(43, 48)) await send_event_cheat_used(player_id) - + elif message == 'vig' or message == 'vigila_tus_espaldas' or message == 'watch_your_back': apply_cheat(game_name, player_id, range(53, 55)) await send_event_cheat_used(player_id) + elif message == "an" or message == "análisis" or message == "analysis": + apply_cheat(game_name, player_id, range(27, 31)) + await send_event_cheat_used(player_id) async def websocket_games(player_id: int, websocket: WebSocket):