minor changes
This commit is contained in:
parent
b90c5553e3
commit
3c6dc912c8
@ -90,6 +90,7 @@ class Game:
|
|||||||
for i in range(len(log)-1):
|
for i in range(len(log)-1):
|
||||||
print('replay:', i, 'of', len(log)-3, '->', log[i])
|
print('replay:', i, 'of', len(log)-3, '->', log[i])
|
||||||
if (log[i] == "@@@"):
|
if (log[i] == "@@@"):
|
||||||
|
eventlet.sleep(10)
|
||||||
if self.is_replay:
|
if self.is_replay:
|
||||||
self.reset()
|
self.reset()
|
||||||
return
|
return
|
||||||
|
@ -524,7 +524,7 @@ def chat_message(sid, msg, pl=None):
|
|||||||
cards = cs.get_starting_deck(ses.game.expansions)
|
cards = cs.get_starting_deck(ses.game.expansions)
|
||||||
card_names = ' '.join(cmd[1:]).split(',')
|
card_names = ' '.join(cmd[1:]).split(',')
|
||||||
for cn in card_names:
|
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()
|
ses.notify_self()
|
||||||
elif '/getnuggets' in msg:
|
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'})
|
sio.emit('chat_message', room=ses.game.name, data={'color': f'red','text':f'🚨 {ses.name} is in debug mode and got nuggets'})
|
||||||
|
Loading…
Reference in New Issue
Block a user