Skip to content

Commit

Permalink
remove FORTUNE_CHANCE, wasn't interesting / could error
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Sep 26, 2017
1 parent 8d7672f commit 45ecff4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@
ROLE_COMMAND_EXCEPTIONS = set()

GIF_CHANCE = 1/50
FORTUNE_CHANCE = 1/25

ALL_FLAGS = frozenset("AaDdFjms")

Expand Down
11 changes: 0 additions & 11 deletions src/wolfgame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3760,17 +3760,6 @@ def transition_day(cli, gameid=0):
"https://i.imgur.com/PIIfL15.gifv",
"https://i.imgur.com/eJiMG5z.gifv"]
))
elif random.random() < var.FORTUNE_CHANCE:
try:
out = subprocess.check_output(("fortune", "-s"))
except FileNotFoundError:
pass
else:
out = out.decode("utf-8", "replace")
out = out.replace("\n", " ")
out = re.sub(r"\s+", " ", out) # collapse whitespace
out = out.strip() # remove surrounding whitespace
revt.data["message"].append(out)

# Priorities:
# 1 = harlot/succubus visiting victim
Expand Down

0 comments on commit 45ecff4

Please sign in to comment.