예제 #1
0
def on_transition_night_end(evt, var):
    if not ANGRY_WOLVES:
        return

    wolves = get_players(Wolf & Killer)
    if not wolves or not wolf_can_kill(var, wolves[0]):
        return

    for wofl in wolves:
        wofl.queue_message(messages["angry_wolves"])

    wofl.send_messages()
예제 #2
0
파일: wolfcub.py 프로젝트: lykoss/lykos
def on_transition_night_end(evt, var):
    if not ANGRY_WOLVES:
        return

    wolves = get_players(Wolf & Killer)
    if not wolves or not wolf_can_kill(var, wolves[0]):
        return

    for wofl in wolves:
        wofl.queue_message(messages["angry_wolves"])

    wofl.send_messages()
예제 #3
0
def on_new_role(evt, var, player, old_role):
    if ANGRY_WOLVES and evt.data["in_wolfchat"] and wolf_can_kill(var, player):
        evt.data["messages"].append(messages["angry_wolves"])
예제 #4
0
파일: wolfcub.py 프로젝트: lykoss/lykos
def on_new_role(evt, var, player, old_role):
    if ANGRY_WOLVES and evt.data["in_wolfchat"] and wolf_can_kill(var, player):
        evt.data["messages"].append(messages["angry_wolves"])