From 1724ca5dc8f93a982412c02cfd9b9b539ddc00ca Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Sun, 26 May 2013 10:00:35 +0200 Subject: [PATCH] Per channel request --- modules/wolfgame.py | 14 +++++++------- settings/wolfgame.py | 3 +-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 79e88e8..27cda18 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -1394,7 +1394,7 @@ def transition_day(cli, gameid=0): elif victim in var.ROLES["harlot"]: # Attacked harlot, yay no kill if var.HVISITED.get(victim): message.append("The wolves' selected victim was a harlot, "+ - "but she wasn't home.") + "but s/he wasn't home.") if victim and (victim not in var.ROLES["harlot"] or # not a harlot not var.HVISITED.get(victim)): # harlot stayed home message.append(("The dead body of \u0002{0}\u0002, a "+ @@ -2716,12 +2716,12 @@ def coin(cli, nick, chan, rest): cli.msg(chan, "\2{0}\2 tosses a coin into the air...".format(nick)) var.LOGGER.logMessage("{0} tosses a coin into the air...".format(nick)) coin = random.choice(["heads", "tails"]) - specialty = random.randrange(0,20) - if specialty == 0: - coin = "its side" - if specialty == 1: - coin = botconfig.NICK - cmsg = "The coin lands on \2{0}\2.".format(coin) + #specialty = random.randrange(0,20) + #if specialty == 0: + # coin = "its side" + #if specialty == 1: + # coin = botconfig.NICK + #cmsg = "The coin lands on \2{0}\2.".format(coin) cli.msg(chan, cmsg) var.LOGGER.logMessage(cmsg) diff --git a/settings/wolfgame.py b/settings/wolfgame.py index b289439..acc9c23 100644 --- a/settings/wolfgame.py +++ b/settings/wolfgame.py @@ -90,8 +90,7 @@ LYNCH_MESSAGES = ("The villagers, after much debate, finally decide on lynching "Under a lot of noise, the pitchfork-bearing villagers lynch \u0002{0}\u0002, who turned out to be... a \u0002{1}\u0002.", "The mob drags a protesting \u0002{0}\u0002 to the hanging tree. S/He succumbs to the will of the horde, and is hanged. It is discovered (s)he was a \u0002{1}\u0002.", "Resigned to his/her fate, \u0002{0}\u0002 is led to the gallows. After death, it is discovered (s)he was a \u0002{1}\u0002.", - "As s/he is about to be lynched, \u0002{0}\u0002, the \u0002{1}\u0002, throws a grenade at the mob. The grenade explodes early.", - "As the real wolves run away from the murderous mob, \u0002{0}\u0002 trips and falls. It is discovered that (s)he was a \u0002{1}\u0002.") + "As s/he is about to be lynched, \u0002{0}\u0002, the \u0002{1}\u0002, throws a grenade at the mob. The grenade explodes early.") import botconfig