Add an option for the pony to land on the tosser

This commit is contained in:
nyuszika7h 2016-04-16 15:34:06 +02:00
parent f564a7a01e
commit 29d2a1f83e
2 changed files with 4 additions and 3 deletions

View File

@ -762,7 +762,8 @@
"pony_toss": "\u0002{0}\u0002 tosses a pony into the air...",
"pony_choices": [
"hoof",
"plot"
"plot",
"{nick}"
],
"pony_land": "The pony lands on \u0002{0}\u0002.",
"pony_fly": "The pony flies away.",

View File

@ -8558,10 +8558,10 @@ def pony(cli, nick, chan, rest):
reply(cli, nick, chan, messages["pony_toss"].format(nick))
if random.random() < 1/3:
if random.random() < 1 / (len(messages["pony_choices"]) + 1):
reply(cli, nick, chan, messages["pony_fly"])
else:
pony = random.choice(messages["pony_choices"])
pony = random.choice(messages["pony_choices"]).format(nick=nick)
cmsg = messages["pony_land"].format(pony)
reply(cli, nick, chan, cmsg)