Esempio n. 1
0
def on_transition_night_end(evt, var):
    if get_all_players(("doomsayer",)):
        status.add_lycanthropy_scope(var, All) # any role can transform if ds is in play
    for lycan in LYCANS.values():
        status.add_lycanthropy(var, lycan)

    LYCANS.clear()
    SICK.clear()
Esempio n. 2
0
def on_transition_night_end(evt, var):
    # These are the totems of the *previous* nights
    # We need to add them here otherwise transition_night_begin
    # will remove them before they even get used
    for lycan in LYCANTHROPY:
        add_lycanthropy(var, lycan)
    for pestilent in PESTILENCE:
        add_disease(var, pestilent)
Esempio n. 3
0
def on_transition_night_end(evt, var):
    if get_all_players(("doomsayer",)):
        status.add_lycanthropy_scope(var, All) # any role can transform if ds is in play
    for lycan in LYCANS.values():
        status.add_lycanthropy(var, lycan)

    LYCANS.clear()
    SICK.clear()
Esempio n. 4
0
def on_transition_night_end(evt, var):
    lycans = get_all_players(("lycan", ))
    if lycans:
        add_lycanthropy_scope(var, {"lycan"})
    for lycan in lycans:
        add_lycanthropy(var, lycan)
        if lycan.prefers_simple():
            lycan.send(messages["lycan_simple"])
        else:
            lycan.send(messages["lycan_notify"])
Esempio n. 5
0
def on_transition_night_end(evt, var):
    lycans = get_all_players(("lycan",))
    if lycans:
        add_lycanthropy_scope(var, {"lycan"})
    for lycan in lycans:
        add_lycanthropy(var, lycan)
        if lycan.prefers_simple():
            lycan.send(messages["lycan_simple"])
        else:
            lycan.send(messages["lycan_notify"])
Esempio n. 6
0
def on_transition_night_end(evt, var):
    if var.NIGHT_COUNT > 1 and get_all_players(("doomsayer", )):
        status.add_lycanthropy_scope(
            var, All)  # any role can transform if ds is in play
    for lycan in LYCANS.values():
        status.add_lycanthropy(var, lycan)
    for sick in SICK.values():
        status.add_disease(var, sick)

    LYCANS.clear()
    SICK.clear()
Esempio n. 7
0
def on_transition_day(evt, var):
    global ENABLED
    for alpha, target in BITTEN.items():
        # bite is now separate but some people may try to double up still
        # The implementation of bite is merely lycanthropy + kill, which lets us
        # simplify a lot of the code by offloading it to relevant pieces
        add_lycanthropy(var, target, "bitten")
        add_lycanthropy_scope(var, All)
        evt.data["killers"][target].append("@wolves")
        evt.data["victims"].append(target)

    # reset ENABLED here instead of begin_day so that night deaths can enable alpha wolf the next night
    ENABLED = False
Esempio n. 8
0
def on_transition_day(evt, var):
    global ENABLED
    for alpha, target in BITTEN.items():
        # bite is now separate but some people may try to double up still
        # The implementation of bite is merely lycanthropy + kill, which lets us
        # simplify a lot of the code by offloading it to relevant pieces
        add_lycanthropy(var, target, "bitten")
        add_lycanthropy_scope(var, All)
        evt.data["killers"][target].append("@wolves")
        evt.data["victims"].append(target)

    # reset ENABLED here instead of begin_day so that night deaths can enable alpha wolf the next night
    ENABLED = False
Esempio n. 9
0
def on_transition_night_end(evt, var):
    lycans = get_all_players(("lycan", ))
    if lycans:
        add_lycanthropy_scope(var, {"lycan"})
    for lycan in lycans:
        if not add_lycanthropy(var, lycan):
            continue
        lycan.send(messages["lycan_notify"])