fix some comments in transition_day to be on their own line
This commit is contained in:
parent
50dc87938a
commit
9467a21279
@ -3832,9 +3832,13 @@ def transition_day(cli, gameid=0):
|
|||||||
maxc = 0
|
maxc = 0
|
||||||
victims = []
|
victims = []
|
||||||
bitten = []
|
bitten = []
|
||||||
killers = defaultdict(list) # dict of victim: list of killers (for retribution totem)
|
# dict of victim: list of killers (for retribution totem)
|
||||||
bywolves = set() # wolves targeted, others may have as well (needed for harlot visit and maybe other things)
|
killers = defaultdict(list)
|
||||||
onlybywolves = set() # wolves and nobody else targeted (needed for lycan)
|
# wolves targeted, others may have as well (needed for harlot visit and maybe other things)
|
||||||
|
bywolves = set()
|
||||||
|
# wolves and nobody else targeted (needed for lycan)
|
||||||
|
onlybywolves = set()
|
||||||
|
|
||||||
dups = []
|
dups = []
|
||||||
for v, c in found.items():
|
for v, c in found.items():
|
||||||
if c > maxc:
|
if c > maxc:
|
||||||
@ -3848,7 +3852,8 @@ def transition_day(cli, gameid=0):
|
|||||||
victims.append(victim)
|
victims.append(victim)
|
||||||
bywolves.add(victim)
|
bywolves.add(victim)
|
||||||
onlybywolves.add(victim)
|
onlybywolves.add(victim)
|
||||||
killers[victim].append("@wolves") # special key to let us know to randomly select a wolf
|
# special key to let us know to randomly select a wolf
|
||||||
|
killers[victim].append("@wolves")
|
||||||
|
|
||||||
|
|
||||||
if victims and var.ANGRY_WOLVES:
|
if victims and var.ANGRY_WOLVES:
|
||||||
@ -3867,7 +3872,8 @@ def transition_day(cli, gameid=0):
|
|||||||
victims.append(victim)
|
victims.append(victim)
|
||||||
bywolves.add(victim)
|
bywolves.add(victim)
|
||||||
onlybywolves.add(victim)
|
onlybywolves.add(victim)
|
||||||
killers[victim].append("@wolves") # special key to let us know to randomly select a wolf
|
# special key to let us know to randomly select a wolf
|
||||||
|
killers[victim].append("@wolves")
|
||||||
|
|
||||||
if len(var.ROLES["fallen angel"]) == 0:
|
if len(var.ROLES["fallen angel"]) == 0:
|
||||||
for monster in var.ROLES["monster"]:
|
for monster in var.ROLES["monster"]:
|
||||||
@ -3883,18 +3889,21 @@ def transition_day(cli, gameid=0):
|
|||||||
killers[d].append(k)
|
killers[d].append(k)
|
||||||
if var.VENGEFUL_GHOSTS.get(k) == "villagers":
|
if var.VENGEFUL_GHOSTS.get(k) == "villagers":
|
||||||
wolfghostvictims.append(d)
|
wolfghostvictims.append(d)
|
||||||
var.OTHER_KILLS = {} # clear list so that it doesn't pm hunter / ghost about being able to kill again
|
# clear list so that it doesn't pm hunter / ghost about being able to kill again
|
||||||
|
var.OTHER_KILLS = {}
|
||||||
|
|
||||||
for k, d in var.DEATH_TOTEM:
|
for k, d in var.DEATH_TOTEM:
|
||||||
victims.append(d)
|
victims.append(d)
|
||||||
onlybywolves.discard(d)
|
onlybywolves.discard(d)
|
||||||
killers[d].append(k)
|
killers[d].append(k)
|
||||||
|
|
||||||
victims_set = set(victims) # remove duplicates
|
# remove duplicates
|
||||||
victims_set.discard(None) # in the event that ever happens
|
victims_set = set(victims)
|
||||||
vappend = []
|
# in the event that ever happens
|
||||||
|
victims_set.discard(None)
|
||||||
# this keeps track of the protections active on each nick, stored in var since del_player needs to access it for sake of assassin
|
# this keeps track of the protections active on each nick, stored in var since del_player needs to access it for sake of assassin
|
||||||
protected = {}
|
protected = {}
|
||||||
|
vappend = []
|
||||||
var.ACTIVE_PROTECTIONS = defaultdict(list)
|
var.ACTIVE_PROTECTIONS = defaultdict(list)
|
||||||
|
|
||||||
# Logic out stacked kills and protections. If we get down to 1 kill remaining that is valid and the victim is in bywolves,
|
# Logic out stacked kills and protections. If we get down to 1 kill remaining that is valid and the victim is in bywolves,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user