Commit Graph

122 Commits

Author SHA1 Message Date
nyuszika7h
ab2048d5ef Merge branch 'fix-werecrow' 2013-09-18 20:20:49 +02:00
nyuszika7h
55cc34df3f Fix werecrow dying when wolf is shot dead at night
Previously, if a wolf was shot dead at night, any werecrows that have
observed were removed from the game without announcement, although they
would remain voiced.

For those who are curious, this is because lists are copied by reference
on assignment in Python; any changes made on the variable you assigned
the list to will be reflected in the original list. This can be avoided
by making a shallow copy of the list using `list(x)` or `x[:]`.
2013-09-18 20:14:52 +02:00
nyuszika7h
b329fb823e Fix flashback dog 2013-09-13 15:32:37 +02:00
nyuszika7h
6117444de8 Merge branch 'fix-wolfrelay-actions' 2013-09-12 16:37:17 +02:00
nyuszika7h
ff0078e9ec Bold nick for actions in wolf relay
Without this fix, a wolf team member could '/nick Someone' and leave a
fake detective paper, which is indistinguishable from a real one.
2013-09-12 16:36:24 +02:00
aLaserShark
44da66a50e super secure flashback dog 2013-09-11 10:18:58 -04:00
aLaserShark
3566dd5886 import random 2013-09-11 10:13:19 -04:00
aLaserShark
3066870932 pointless flashback dog
http://i.imgur.com/nO8rZ.gif
has a 1/100 chance of appearing every time someone is killed
2013-09-11 10:11:28 -04:00
nyuszika7h
97a8abff45 Revert "Prevent visited harlot from being killed"
This reverts commit f49e7371b8.

Thinking about it, the old behavior actually makes sense. X visits Y,
and Y visits X. When wolf targets X, they find Y, and vice versa.
2013-09-05 21:44:08 +02:00
nyuszika7h
b96c98b01d Add !pony command 2013-08-29 23:23:38 +02:00
nyuszika7h
a8ed5bd3c4 Re-add coin landing on side/bot 2013-08-29 23:20:24 +02:00
nyuszika7h
b5c83eaf42 Allow negative value in !fwait
This is a quite hacky way, and although in my tests, it does not crash
the bot, it might be possible, and there might be a better way to do
this.
2013-08-26 17:52:32 +02:00
nyuszika7h
f49e7371b8 Prevent visited harlot from being killed
At 12 players, there are two harlots, and they can visit each other.
This is intended to make both of them invincible, but the actual
behavior was that the one visiting the victim would die.
2013-08-26 16:30:28 +02:00
Robert Wall
ed62cbbfc9 Change branch condition for checking if night is over, fixes #17
chk_nightdone used to check whether the number of people seen equals
the number of seers (and the same for harlot, etc.). This means night
times out if the seer (etc.) leaves after seeing but before night is
otherwise ended. This commit changes equals to >=, and swaps around the
wolf part of that condition so that it matches the other parts.
2013-07-15 19:37:10 -07:00
Robert Wall
1487256f09 Oops, I fail at paying attention. Fixing last commit. 2013-07-13 21:06:30 -07:00
Robert Wall
a1b948a93a Merge branch 'master' of github.com:LycanthropeTheGreat/lycanthrope 2013-07-13 21:02:53 -07:00
Robert Wall
58ce84235f Move various in-channel messages to user notices
This commit moves the !votes and !stats rate limit warnings to user
notices intead of in-channel messages, to be consistent with the other
rate limit warnings and because those messages are usually just
pointless noise. It also moves the CARE_BOLD and CARE_COLOR messages
to user notices, because they're spammy and annoying and just make
things worse when they're in-channel.
2013-07-13 20:58:19 -07:00
Melissa Draper
7f8d5286b3 Exclude illegal_joins (stasised people) from the !ping list.
Pinging people who are in stasis to join games is both futile and
inflammatory. Closes issue #16
2013-07-14 10:29:35 +12:00
Robert Wall
ecd62cf0ef Simplify stasis logic for people who leave the channel.
Instead of setting make_stasis as soon as they leave, then setting it
again with a negative number if they rejoin, we can just set it when
they actually reach the timer and are killed. We were actually doing
*both* up to now (which was probably what was causing the double stasis
mentioned in issue #8), so I just removed the make_stasis calls when
people leave and come back, and kept the one when they get killed.
2013-07-12 20:59:59 -07:00
Robert Wall
cca373904d Check whether night is done after werecrow !observes. Closes #9 2013-07-12 20:48:34 -07:00
Robert Wall
77e09e1f03 Make traitor an invalid target for !kill. Closes #14 2013-07-12 20:26:40 -07:00
Skizzerz
3db7fec992 Make seer see werecrow as wolf instead of crow 2013-07-12 00:52:52 -05:00
Robert Wall
c6faab1a03 Adding a . to the end of the join message.
Requested by nyuszika7h in #wolfgame-dev.
2013-07-06 02:20:54 -07:00
Robert Wall
6f3d7a54ca Change message when wolves win to mention injury (closes #1)
The message about wolves winning was unclear that the comparison is
between wolves and uninjured villagers, which caused confusion a few
times because people thought the game ended due to a bug. This commit
changes the message to avoid this confusion.
2013-07-06 00:39:30 -07:00
Robert Wall
abefb90db2 Re-add missing . at the end of !retract response.
Minor change requested by someone in #wolfgame a while ago. The old
!retract message ended in a period, and it's still there in the logger
message, but the new in-channel message didn't have one.
2013-07-05 22:26:07 -07:00
Robert Wall
5630e6f537 Merge pull request #2 from skizzerz/wording
change wording for !join (suggested by Makiavel)
2013-07-05 22:11:27 -07:00
Robert Wall
c2887bc761 Add empty declarations and checks to partly fix START_WITH_DAY.
This commit adds some variable declarations and other minor things so
that setting var.START_WITH_DAY to 1 doesn't cause errors. This commit
doesn't actually fix that gamemode completely, since I'm still
pondering how best to make the game notify people of their roles when
the game starts in this mode, but it's a good start.
2013-07-05 22:00:13 -07:00
Robert Wall
339a63fe33 Clean up var.illegal_joins during !start, fix related !join bug
This patch fixes a bug in !join that caused new entries to be created in
the var.illegal_joins dictionary for every joining player because of a
missing check to see if the player's cloak is in the dictionary at all.

It also adds logic to !start to remove entries from the
var.illegal_joins dict if they currently have a value of 0, since these
entries are no longer relevant.

These changes together make !eval var.illegal_joins far more useful for
getting a list of *just* stasised players.
2013-06-28 19:58:30 -07:00
Skizzerz
f65f64102c change wording for !join (suggested by Makiavel) 2013-06-27 21:35:49 -05:00
Robert Wall
b7cb0d38ab Merge branch 'master' into elkyrww 2013-06-23 23:51:15 -07:00
Robert Wall
70132b6aea Make the help command always reply in PM to reduce spamminess 2013-06-23 16:06:21 -07:00
Robert Wall
a813cc611f Remind the village drunk of their role every night.
(See: http://code.google.com/p/wolf/issues/detail?id=86)
2013-06-02 14:53:22 -07:00
Robert Wall
475ffe715b Adding player count to !join, !leave, and !fleave 2013-06-02 14:47:39 -07:00
Melissa Draper
1a6eb7c35b Eliminate pronouns (S/He, his/her, etc) from messages
(See: http://code.google.com/p/wolf/issues/detail?id=89)
2013-06-02 14:25:01 -07:00
Eitan Adler
84fdc5ff2d Be more careful about applying stasis 2013-06-02 12:23:56 +02:00
Eitan Adler
42dae3c818 the player may have not yet said anything 2013-06-01 16:18:08 +02:00
Eitan Adler
a2ec66f27d Revert stasis on return 2013-06-01 16:06:24 +02:00
Eitan Adler
d309ae8568 Use make_stasis 2013-06-01 16:05:46 +02:00
Eitan Adler
0f4e7a91a1 fix prior (hence the 'sort of') 2013-06-01 16:04:39 +02:00
Eitan Adler
80d494bf86 use make_stasis correctly
remove stasis when a player returns (sort of)
2013-06-01 16:04:19 +02:00
Eitan Adler
9a1571fbf4 Move from roles -> special roles. 2013-06-01 16:02:14 +02:00
Eitan Adler
b6749abce8 add a 'special roles' option 2013-06-01 16:01:02 +02:00
Eitan Adler
2b0fd11a58 Use the correct stasis penalty 2013-06-01 16:00:17 +02:00
Eitan Adler
1e5af88fb1 Fix stasis usage 2013-06-01 15:59:34 +02:00
Eitan Adler
eb3d4d3ccd When force starting pass the correct param as nick 2013-06-01 15:56:58 +02:00
Melissa Draper
a63c49ca4a Add phase (day/night) to the roles stats line 2013-05-29 22:37:46 +12:00
Melissa Draper
7d4554b951 Fix last said bugs after player rejoins or their connection drops 2013-05-30 22:00:52 +12:00
Eitan Adler
30f182bcb3 fix coin 2013-05-26 17:04:29 +02:00
Eitan Adler
1724ca5dc8 Per channel request 2013-05-26 10:00:35 +02:00
Eitan Adler
4283f9b28e disable until I'm awake 2013-05-18 01:54:43 -04:00