fix reveal role
This commit is contained in:
parent
d4bee9c3f2
commit
d3bf18c9a2
2
.github/workflows/dev-image.yml
vendored
2
.github/workflows/dev-image.yml
vendored
@ -5,6 +5,8 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKER_BUILDKIT: '1'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build the Unified Docker image
|
||||
|
2
.github/workflows/docker-image.yml
vendored
2
.github/workflows/docker-image.yml
vendored
@ -5,6 +5,8 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKER_BUILDKIT: '1'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build the Unified Docker image
|
||||
|
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@ -4,6 +4,8 @@ on:
|
||||
jobs:
|
||||
test_build:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKER_BUILDKIT: '1'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build the Unified Docker image
|
||||
|
@ -90,7 +90,9 @@ class Game:
|
||||
for k in range(self.players[i].max_lives):
|
||||
self.players[i].hand.append(self.deck.draw())
|
||||
self.players[i].notify_self()
|
||||
self.sio.emit('chat_message', room=self.name, data=f'_allroles|{", ".join([type(x.role).__name__ for x in self.players])}')
|
||||
current_roles = [type(x.role).__name__ for x in self.players]
|
||||
current_roles = {x:current_roles.count(x) for x in current_roles}
|
||||
self.sio.emit('chat_message', room=self.name, data=f'_allroles|{current_roles}')
|
||||
self.players[self.turn].play_turn()
|
||||
|
||||
def choose_characters(self):
|
||||
|
Loading…
Reference in New Issue
Block a user