Browse Source

now the drunk is not displayed in the stats and also the end-game role-revealing messages (conforms to howlbot)

master
jcao219 14 years ago
parent
commit
dcd25a8d19
  1. 8
      wolfgame.py

8
wolfgame.py

@ -451,7 +451,11 @@ def stats(cli, nick, chan, rest):
if var.ROLES[k]] if var.ROLES[k]]
l2 = [k for k in var.ORIGINAL_ROLES.keys() l2 = [k for k in var.ORIGINAL_ROLES.keys()
if var.ORIGINAL_ROLES[k]] if var.ORIGINAL_ROLES[k]]
for role in set(l1+l2): rs = set(l1+l2)
if "village drunk" in rs:
rs.remove("village drunk") # drunk is not displayed
for role in rs:
count = len(var.ROLES[role]) count = len(var.ROLES[role])
if not f and count>1: if not f and count>1:
vb = "are" vb = "are"
@ -603,6 +607,8 @@ def stop_game(cli):
lroles.remove("wolf") lroles.remove("wolf")
lroles.insert(0, "wolf") # picky, howl consistency lroles.insert(0, "wolf") # picky, howl consistency
lroles.remove("village drunk")
for role in lroles: for role in lroles:
if len(var.ORIGINAL_ROLES[role]) == 0 or role == "villager": if len(var.ORIGINAL_ROLES[role]) == 0 or role == "villager":
continue continue

Loading…
Cancel
Save