fix amnesiac winning and amnesiacs turning into templates
This commit is contained in:
parent
f9ece65d73
commit
153e800bef
@ -1080,7 +1080,7 @@ def stop_game(cli, winner = ""):
|
|||||||
continue
|
continue
|
||||||
for x in ppl:
|
for x in ppl:
|
||||||
if x != None:
|
if x != None:
|
||||||
if x == "amnesiac" and x in var.AMNESIACS:
|
if role == "amnesiac" and x in var.AMNESIACS:
|
||||||
plrl[x] = var.FINAL_ROLES[x]
|
plrl[x] = var.FINAL_ROLES[x]
|
||||||
else:
|
else:
|
||||||
plrl[x] = role
|
plrl[x] = role
|
||||||
@ -4221,6 +4221,9 @@ def start(cli, nick, chann_, rest):
|
|||||||
amnroles = list(var.ROLE_GUIDE.keys())
|
amnroles = list(var.ROLE_GUIDE.keys())
|
||||||
for nope in var.AMNESIAC_BLACKLIST:
|
for nope in var.AMNESIAC_BLACKLIST:
|
||||||
amnroles.remove(nope)
|
amnroles.remove(nope)
|
||||||
|
for nope in var.TEMPLATE_RESTRICTIONS.keys():
|
||||||
|
if nope in amnroles:
|
||||||
|
amnroles.remove(nope)
|
||||||
for amnesiac in var.ROLES["amnesiac"]:
|
for amnesiac in var.ROLES["amnesiac"]:
|
||||||
var.FINAL_ROLES[amnesiac] = random.choice(amnroles)
|
var.FINAL_ROLES[amnesiac] = random.choice(amnroles)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user