Change variable name
This commit is contained in:
parent
e4ca30f830
commit
1a64a72a78
@ -2275,7 +2275,7 @@ def chk_traitor(cli):
|
|||||||
"frightened as they hear a loud howl. The wolves are "+
|
"frightened as they hear a loud howl. The wolves are "+
|
||||||
"not gone!\u0002")
|
"not gone!\u0002")
|
||||||
|
|
||||||
def stop_game(cli, winner = "", abort = False, winners = None):
|
def stop_game(cli, winner = "", abort = False, additional_winners = None):
|
||||||
chan = botconfig.CHANNEL
|
chan = botconfig.CHANNEL
|
||||||
if abort:
|
if abort:
|
||||||
cli.msg(chan, "The role attribution failed 3 times. Game was canceled.")
|
cli.msg(chan, "The role attribution failed 3 times. Game was canceled.")
|
||||||
@ -2369,8 +2369,9 @@ def stop_game(cli, winner = "", abort = False, winners = None):
|
|||||||
# Only update if someone actually won, "" indicates everyone died or abnormal game stop
|
# Only update if someone actually won, "" indicates everyone died or abnormal game stop
|
||||||
if winner != "":
|
if winner != "":
|
||||||
plrl = {}
|
plrl = {}
|
||||||
if winners is None:
|
winners = []
|
||||||
winners = []
|
if additional_winners is not None:
|
||||||
|
winners.extend(additional_winners)
|
||||||
for role,ppl in var.ORIGINAL_ROLES.items():
|
for role,ppl in var.ORIGINAL_ROLES.items():
|
||||||
if role in var.TEMPLATE_RESTRICTIONS.keys():
|
if role in var.TEMPLATE_RESTRICTIONS.keys():
|
||||||
continue
|
continue
|
||||||
@ -2652,7 +2653,7 @@ def chk_win_conditions(lpl, lwolves, lcubs, lrealwolves, lmonsters, ltraitors, l
|
|||||||
debuglog("WIN:", winner)
|
debuglog("WIN:", winner)
|
||||||
debuglog("PLAYERS:", ", ".join(players))
|
debuglog("PLAYERS:", ", ".join(players))
|
||||||
cli.msg(chan, message)
|
cli.msg(chan, message)
|
||||||
stop_game(cli, winner, winners=event.data["additional_winners"])
|
stop_game(cli, winner, additional_winners=event.data["additional_winners"])
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def del_player(cli, nick, forced_death = False, devoice = True, end_game = True, death_triggers = True, killer_role = "", deadlist = [], original = "", cmode = [], ismain = True):
|
def del_player(cli, nick, forced_death = False, devoice = True, end_game = True, death_triggers = True, killer_role = "", deadlist = [], original = "", cmode = [], ismain = True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user