def on_begin_day(evt, var): # Apply totem effects that need to begin on day proper for absent in NARCOLEPSY: add_absent(var, absent, "totem") for misdirected in MISDIRECTION: add_misdirection(var, misdirected, as_actor=True) for lucky in LUCK: add_misdirection(var, lucky, as_target=True) for exchanging in EXCHANGE: add_exchange(var, exchanging) var.SILENCED.update(p.nick for p in SILENCE)
def on_begin_day(evt, var): # Apply totem effects that need to begin on day proper for player in NARCOLEPSY: status.add_absent(var, player, "totem") for player in IMPATIENCE: status.add_force_vote(var, player, get_all_players() - {player}) for player in PACIFISM: status.add_force_abstain(var, player) for player in INFLUENCE: status.add_vote_weight(var, player) for player in REVEALING: status.add_lynch_immunity(var, player, "totem") for player in MISDIRECTION: status.add_misdirection(var, player, as_actor=True) for player in LUCK: status.add_misdirection(var, player, as_target=True) for player in EXCHANGE: status.add_exchange(var, player) for player in SILENCE: status.add_silent(var, player)