Fix dead vengeful ghost always winning with village even if they are wolfteam, and clean up a weird-looking conditional
This commit is contained in:
parent
8df527e9d7
commit
3f990a22ec
@ -1575,8 +1575,7 @@ def stop_game(cli, winner = ""):
|
|||||||
won = True
|
won = True
|
||||||
elif var.DEFAULT_ROLE == "cultist" and winner == "wolves":
|
elif var.DEFAULT_ROLE == "cultist" and winner == "wolves":
|
||||||
won = True
|
won = True
|
||||||
else:
|
elif winner == "villagers":
|
||||||
if winner == "villagers":
|
|
||||||
won = True
|
won = True
|
||||||
|
|
||||||
survived = var.list_players()
|
survived = var.list_players()
|
||||||
@ -1625,6 +1624,9 @@ def stop_game(cli, winner = ""):
|
|||||||
elif splr in var.VENGEFUL_GHOSTS and var.VENGEFUL_GHOSTS[splr] == "wolves" and winner == "villagers":
|
elif splr in var.VENGEFUL_GHOSTS and var.VENGEFUL_GHOSTS[splr] == "wolves" and winner == "villagers":
|
||||||
won = True
|
won = True
|
||||||
iwon = True
|
iwon = True
|
||||||
|
else:
|
||||||
|
won = False
|
||||||
|
iwon = False
|
||||||
elif rol == "lycan" or splr in var.LYCANS:
|
elif rol == "lycan" or splr in var.LYCANS:
|
||||||
if splr in var.LYCANS and winner == "wolves":
|
if splr in var.LYCANS and winner == "wolves":
|
||||||
won = True
|
won = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user