Use var.GIF_CHANCE instead of hardcoded chance
This commit is contained in:
parent
440f4beca5
commit
fd8d0bbdf7
@ -3589,7 +3589,7 @@ def transition_day(cli, gameid=0):
|
||||
message.append(("The dead body of \u0002{0}\u0002 is found. " +
|
||||
"Those remaining mourn the tragedy.").format(victim))
|
||||
dead.append(victim)
|
||||
if random.random() < 1/50:
|
||||
if random.random() < var.GIF_CHANCE:
|
||||
message.append(random.choice(
|
||||
["https://i.imgur.com/nO8rZ.gifv",
|
||||
"https://i.imgur.com/uGVfZ.gifv",
|
||||
|
@ -239,6 +239,8 @@ QUIT_MESSAGES_NO_REVEAL = ("\u0002{0}\u0002 suddenly falls over dead before the
|
||||
"\u0002{0}\u0002 is crushed to death by a falling tree. The villagers desperately try to save them, but it is too late.",
|
||||
"\u0002{0}\u0002 suddenly bursts into flames and is now all but a memory.")
|
||||
|
||||
GIF_CHANCE = 1/50
|
||||
|
||||
import botconfig
|
||||
import fnmatch
|
||||
import random
|
||||
|
Loading…
Reference in New Issue
Block a user