Skip to content

Commit

Permalink
Hotfix - Se agrega cheat para nada de barbacoas
Browse files Browse the repository at this point in the history
  • Loading branch information
ignabelitzky committed Nov 10, 2023
1 parent e4c6040 commit a90166d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/routers/websockets/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ async def send_list_of_cheats(player_id: int):
'[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',
'[an | análisis | analysis]: Obtienes una carta análisis'
'[an | análisis | analysis]: Obtienes una carta análisis',
'[nb | nada_barbacoas | no_barbecue]: Obtienes una carta nada de barbacoas'
]
for message in cheat_messages:
await player_connections.send_message(player_id, 'Loki', message)
Expand Down Expand Up @@ -75,6 +76,9 @@ async def handle_message(data, player_id):
elif message == "an" or message == "análisis" or message == "analysis":
apply_cheat(game_name, player_id, range(27, 30))
await send_event_cheat_used(player_id)
elif message == "nb" or message == "nada_barbacoas" or message == "no_barbecue":
apply_cheat(game_name, player_id, range(84, 86))
await send_event_cheat_used(player_id)


async def websocket_games(player_id: int, websocket: WebSocket):
Expand Down

0 comments on commit a90166d

Please sign in to comment.