mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-25 15:14:18 +00:00
che boiata
This commit is contained in:
parent
b3737d33f6
commit
5518dd5277
1 changed files with 8 additions and 4 deletions
12
main.py
12
main.py
|
@ -318,7 +318,9 @@ class Game:
|
||||||
self.updatevotes()
|
self.updatevotes()
|
||||||
for player in self.players:
|
for player in self.players:
|
||||||
if player.votes > currenttop:
|
if player.votes > currenttop:
|
||||||
mostvoted = [player]
|
mostvoted = list()
|
||||||
|
mostvoted.append(player)
|
||||||
|
currenttop = player.votes
|
||||||
elif player.votes == currenttop:
|
elif player.votes == currenttop:
|
||||||
mostvoted.append(player)
|
mostvoted.append(player)
|
||||||
if currenttop > 0:
|
if currenttop > 0:
|
||||||
|
@ -332,9 +334,11 @@ class Game:
|
||||||
currenttop = 0
|
currenttop = 0
|
||||||
self.updatemifiavotes()
|
self.updatemifiavotes()
|
||||||
for player in self.players:
|
for player in self.players:
|
||||||
if player.mifiavotes > currenttop:
|
if player.mifiavotes > currenttop:
|
||||||
mostvoted = [player]
|
mostvoted = list()
|
||||||
elif player.votes == currenttop:
|
mostvoted.append(player)
|
||||||
|
currenttop = player.mifiavotes
|
||||||
|
elif player.votes == currenttop:
|
||||||
mostvoted.append(player)
|
mostvoted.append(player)
|
||||||
if currenttop > 0:
|
if currenttop > 0:
|
||||||
return mostvoted
|
return mostvoted
|
||||||
|
|
Loading…
Reference in a new issue