comments
This commit is contained in:
parent
2190afc8dd
commit
f7aa404e0b
@ -229,7 +229,7 @@ def chat_message(sid, msg):
|
||||
eventlet.sleep(0.3)
|
||||
else:
|
||||
sio.emit('chat_message', room=sid, data={'color': f'','text':f'{msg} bad format'})
|
||||
elif '/ddc' in msg and ses.game.started:
|
||||
elif '/ddc' in msg and ses.game.started: #/ddc *
|
||||
cmd = msg.split()
|
||||
if len(cmd) == 2:
|
||||
sio.emit('chat_message', room=ses.game.name, data={'color': f'red','text':f'🚨 {ses.name} is in debug mode destroyed {cmd[1]} cards'})
|
||||
@ -244,7 +244,7 @@ def chat_message(sid, msg):
|
||||
ses.game.get_player_named(cmd[1]).notify_self()
|
||||
else:
|
||||
sio.emit('chat_message', room=sid, data={'color': f'','text':f'{msg} bad format'})
|
||||
elif '/dsh' in msg and ses.game.started:
|
||||
elif '/dsh' in msg and ses.game.started: #/dsh * 1
|
||||
cmd = msg.split()
|
||||
if len(cmd) == 3:
|
||||
sio.emit('chat_message', room=ses.game.name, data={'color': f'red','text':f'🚨 {ses.name} is in debug mode and is changing {cmd[1]} health'})
|
||||
|
@ -274,10 +274,11 @@ class Game:
|
||||
else:
|
||||
self.ready_count += 1
|
||||
if self.ready_count == self.waiting_for:
|
||||
#TODO: si potrebbe fare un metodo a parte e chiamarlo quando finiscono gli eventi di gatling e indiani
|
||||
self.waiting_for = 0
|
||||
self.ready_count = 0
|
||||
if self.pending_winners:
|
||||
print('WE HAVE A WINNER')
|
||||
print('WE HAVE A WINNER - responders_did_respond_resume_turn')
|
||||
for p in self.get_alive_players():
|
||||
p.win_status = p in self.pending_winners
|
||||
if p.win_status:
|
||||
|
Loading…
Reference in New Issue
Block a user