minor changes

This commit is contained in:
Giulio 2022-03-31 13:09:41 +02:00
parent b90c5553e3
commit 3c6dc912c8
2 changed files with 2 additions and 1 deletions

View File

@ -90,6 +90,7 @@ class Game:
for i in range(len(log)-1):
print('replay:', i, 'of', len(log)-3, '->', log[i])
if (log[i] == "@@@"):
eventlet.sleep(10)
if self.is_replay:
self.reset()
return

View File

@ -524,7 +524,7 @@ def chat_message(sid, msg, pl=None):
cards = cs.get_starting_deck(ses.game.expansions)
card_names = ' '.join(cmd[1:]).split(',')
for cn in card_names:
ses.hand.append([c for c in cards if c.name == cn][0])
ses.hand.append([c for c in cards if c.name.lower() == cn.lower() or c.name[0:-1].lower() == cn.lower()][0])
ses.notify_self()
elif '/getnuggets' in msg:
sio.emit('chat_message', room=ses.game.name, data={'color': f'red','text':f'🚨 {ses.name} is in debug mode and got nuggets'})