Fix hunter prematurely ending night.
Idea: let's NOT mess with how the game logic is laid out unless you can mathematically prove that your new cool shorthand way of doing things is exactly equivalent to the old way.
This commit is contained in:
parent
1bb4ea1cd3
commit
d675f3183c
@ -127,7 +127,8 @@ def on_exchange(evt, cli, var, actor, nick, actor_role, nick_role):
|
||||
@event_listener("chk_nightdone")
|
||||
def on_chk_nightdone(evt, cli, var):
|
||||
evt.data["actedcount"] += len(KILLS) + len(PASSED)
|
||||
evt.data["nightroles"].extend([p for p in var.ROLES["hunter"] if users._get(p) not in (HUNTERS | KILLS.keys())]) # FIXME
|
||||
hunter_users = (users._get(p) for p in var.ROLES["hunter"]) # FIXME
|
||||
evt.data["nightroles"].extend([p for p in hunter_users if p not in HUNTERS or p in KILLS])
|
||||
|
||||
@event_listener("transition_night_end", priority=2)
|
||||
def on_transition_night_end(evt, cli, var):
|
||||
|
Loading…
Reference in New Issue
Block a user