Make fallen angel kill ALL of the protectors, not just the one that would have taken effect
This commit is contained in:
parent
51d747e7d1
commit
627da811f8
@ -3213,36 +3213,35 @@ def transition_day(cli, gameid=0):
|
|||||||
if len(var.ROLES["fallen angel"]) > 0:
|
if len(var.ROLES["fallen angel"]) > 0:
|
||||||
for p, t in list(protected.items()):
|
for p, t in list(protected.items()):
|
||||||
if p in bywolves:
|
if p in bywolves:
|
||||||
if t == "angel":
|
for g in var.ROLES["guardian angel"]:
|
||||||
for g in var.ROLES["guardian angel"]:
|
if var.GUARDED.get(g) == p and random.random() < var.FALLEN_ANGEL_KILLS_GUARDIAN_ANGEL_CHANCE:
|
||||||
if var.GUARDED.get(g) == p and random.random() < var.FALLEN_ANGEL_KILLS_GUARDIAN_ANGEL_CHANCE:
|
if g in protected:
|
||||||
if g in protected:
|
del protected[g]
|
||||||
del protected[g]
|
bywolves.add(g)
|
||||||
bywolves.add(g)
|
victims.append(g)
|
||||||
victims.append(g)
|
fallenkills.add(g)
|
||||||
fallenkills.add(g)
|
if g not in victims_set:
|
||||||
if g not in victims_set:
|
victims_set.add(g)
|
||||||
victims_set.add(g)
|
onlybywolves.add(g)
|
||||||
onlybywolves.add(g)
|
for g in var.ROLES["bodyguard"]:
|
||||||
elif t == "bodyguard":
|
if var.GUARDED.get(g) == p:
|
||||||
for g in var.ROLES["bodyguard"]:
|
if g in protected:
|
||||||
if var.GUARDED.get(g) == p:
|
del protected[g]
|
||||||
if g in protected:
|
bywolves.add(g)
|
||||||
del protected[g]
|
victims.append(g)
|
||||||
bywolves.add(g)
|
fallenkills.add(g)
|
||||||
victims.append(g)
|
if g not in victims_set:
|
||||||
fallenkills.add(g)
|
victims_set.add(g)
|
||||||
if g not in victims_set:
|
onlybywolves.add(g)
|
||||||
victims_set.add(g)
|
# we'll never end up killing a shaman who gave out protection, but delete the totem since
|
||||||
onlybywolves.add(g)
|
# story-wise it gets demolished at night by the FA
|
||||||
elif t == "totem":
|
while p in havetotem:
|
||||||
# we'll never end up killing a shaman who gave out protection, but delete the totem since
|
havetotem.remove(p)
|
||||||
# story-wise it gets demolished at night by the FA
|
brokentotem.add(p)
|
||||||
while p in havetotem:
|
if p in protected:
|
||||||
havetotem.remove(p)
|
del protected[p]
|
||||||
brokentotem.add(p)
|
if p in var.ACTIVE_PROTECTIONS:
|
||||||
if p in protected:
|
del var.ACTIVE_PROTECTIONS[p]
|
||||||
del protected[p]
|
|
||||||
|
|
||||||
if var.ALPHA_ENABLED: # check for bites
|
if var.ALPHA_ENABLED: # check for bites
|
||||||
for (alpha, desired) in var.BITE_PREFERENCES.items():
|
for (alpha, desired) in var.BITE_PREFERENCES.items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user