Skip to content

Commit

Permalink
Hotfix - Se agrega cheat para la carta análisis
Browse files Browse the repository at this point in the history
  • Loading branch information
ignabelitzky committed Nov 9, 2023
1 parent 4101222 commit 82e346b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/routers/websockets/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 82e346b

Please sign in to comment.