Commit Graph

1091 Commits

Author SHA1 Message Date
Vgr E.Barry
d780cf04ad Fixes faftergame. I should stop breaking things. 2015-01-03 18:03:13 -05:00
Vgr E.Barry
cd7aac9398 Fix random errors. Blame Vgr. 2015-01-03 17:49:29 -05:00
jacob1
47f4f77f10 check if game ends when bitten/amnesiac turn, instead of sending out PMs and continuing it 2015-01-03 15:41:16 -05:00
jacob1
22ad235620 mad scientist gets told their targets and is reminded of their role every night 2015-01-03 13:30:24 -05:00
Vgr E.Barry
6e9c2ef6ff Change a few minor things. 2015-01-03 10:55:48 -05:00
Ryan Schmidt
6714f66e54 Merge pull request #101 from lykoss/decorators-overhaul
Huge overhaul to the decorators (+ a lot of small changes).
2015-01-02 23:58:53 -06:00
Vgr E.Barry
7d49ac4cc4 Fixed a few issues.
Added wildcard * for !force and !rforce, which match all players.
removed leftover error message and fixed !kill and !totem crashing the
bot.
2015-01-03 00:50:57 -05:00
Vgr E.Barry
94d5939f39 Fix calling inexistant variables. 2015-01-02 20:45:03 -05:00
Vgr E.Barry
41089786d8 Remove notice if using a role command you don't have access to. 2015-01-02 20:40:15 -05:00
Vgr E.Barry
0984f79bd9 Improve handling of kill and away/back/in/out.
Uses variables instead of hardcoded roles for kill. Doesn't warn about
incorrect use of away and back if var.OPT_IN_PING is on, and about
incorrect use of in/out if it's off. References #76.
2015-01-02 18:11:07 -05:00
Vgr E.Barry
32fd7b2fa2 Improve help command. 2015-01-02 18:08:19 -05:00
Vgr E.Barry
df26d8d25e Huge overhaul to the decorators + small changes.
- Merge channel and PM commands in a single decorator.
- Add many parameters for the decorators, reducing commands cluster.
- Added back the admin_only check for some commands; special-cased
'<console>'.
- Moved the checking for which roles are seen wolf in the settings; same
for seen as default.
- Added a variable to pick if one is seen as the default role or as a
villager where applicable (default: True).
- Fixed seer/oracle seeing through amnesiac.
- Some fixes to the totem chances that I forgot to add in the previous
commit.
- Removed some useless module imports.
- Moved some functions to settings.
- Changed all single-quotes to double-quotes in commands for
consistency.
- Renamed 'cmd' variable in both force and rforce commands to avoid
confusion.
- Probably a bunch of other things. Don't consider this commit
description to be 100% complete.
2015-01-02 15:57:44 -05:00
nyuszika7h
53cf4970ca Disable !game if !fgame was used 2015-01-01 23:45:46 +01:00
Janik Kleinhoff
698d6f86ae START_QUIT_DELAY: fix duration check 2015-01-01 19:19:56 +00:00
Janik Kleinhoff
b1e59c4f77 !quit: tell player how long until they can quit 2015-01-01 18:59:27 +00:00
Janik Kleinhoff
09b5a62a9b Disallow !quit immediately after starting to avoid accidents 2015-01-01 05:20:52 +00:00
nyuszika7h
7d509e7c1d start: Add per-user rate limit 2014-12-31 21:07:25 +01:00
nyuszika7h
8b6393bf8e fsay, fact: Fix usage message 2014-12-30 22:16:42 +01:00
nyuszika7h
740d8a6e33 Fix signal handling on Windows 2014-12-30 22:13:40 +01:00
Vgr E.Barry
4f4a3f82a2 Fix totem chances.
This fixes the totem chances needing to add up to 1, and now can add up
to any arbitrary number or fraction. This also adds a TOTEM_ORDER
variable for shamans, as an attempt to allow more shamans in the future.
2014-12-30 15:04:43 -05:00
jacob1
453242a257 improve some comments and fix 'f rom' typo 2014-12-28 17:26:30 -05:00
jacob1
8dce5a4d16 gramatical fixes (var.plural one by skizzerz) 2014-12-28 17:06:15 -05:00
jacob1
356b9a25ba fix alpha wolf being seen as villager 2014-12-28 17:03:52 -05:00
skizzerz
1e09bff8df Fix alpha wolf bug 2014-12-26 22:32:44 -06:00
Ryan Schmidt
4e3b61f8dc Merge pull request #98 from skizzerz/alphawolf
Add 2 new roles: doctor and alpha wolf
2014-12-26 19:30:40 -06:00
skizzerz
aaba899983 Add "alpha" gamemode
This mode features the alpha wolf and doctor roles, and should provide
for very "swingy" games where wolves are very disadvantaged at first
but should be able to make a decent comeback later on.

This also brought some rebalancing to gamemode weights, mostly all of
the existing ones stayed the same though, a summary of changes is below.
Numbers below are rounded to the nearest percent, so they won't
necessarily add up to 100.

default: 41% -> 40% (-1%)
foolish: 19% -> 16% (-3%)
mad: 19% -> 16% (-3%)
classic: 11% -> 8% (-3%)
lycan: 3% -> 2% (-1%)
aleatoire: 8% -> 8% (0%)
alpha: n/a -> 10%
2014-12-26 01:07:27 -06:00
skizzerz
93f5c6a4f8 Make the bite command make use of the new get_victim function 2014-12-26 01:06:23 -06:00
skizzerz
d42fa45d2f Make alpha wolf more powerful
Each time a wolf dies while a bitten person is undergoing
transformation, they will now transform one night earlier. This makes it
much more likely for the bitten person to actually turn into a wolf
before the game is over. For larger game sizes, the turn is pretty much
guaranteed due to the number of wolves, which means safes need to
tightly coordinate to figure out who was actually bitten due to wolves
possibly having full info and an insider.
2014-12-26 01:06:23 -06:00
skizzerz
9b61dde15e Add 2 new roles: doctor and alpha wolf
Doctor is on the village team, and has a number of immunizations they
can give out during the day. An immunized lycan reverts a normal
villager, and anyone that is immunized will die instead of turning into
a wolf if they are bitten by the alpha wolf. Beware, however, because
attempting to immunize someone already bitten will simply speed up the
process of them becoming a wolf!

Alpha wolf has a once-per-game ability where they can bite the wolves'
target instead of killing them following the death of a werewolf during
the day. The bitten person will subsequently turn into a wolf in 3
nights.
2014-12-26 01:06:17 -06:00
nyuszika7h
db9c52a3e2 Fix admin check in fdie and frestart 2014-12-23 23:56:55 +01:00
jacob1
ff737609b5 Fix error when silenced gunner shoots 2014-12-23 17:45:07 -05:00
nyuszika7h
274aedf050 Add SIGUSR2 for aftergame restart 2014-12-23 12:05:50 +01:00
nyuszika7h
036ac29f4b Add signal handling
- SIGINT (Ctrl-C) and SIGTERM will do a clean quit now.
- SIGUSR1 will restart the bot.
2014-12-22 23:38:06 +01:00
Janik Kleinhoff
c611db5109 botconfig.py.example: improve example values
* there is no good reason *not* to use SSL;
* the example config assumes freenode, where a wolfgame channel would be
  expected to use the double-# namespace; if we're going to suggest
  a network to use, our example should follow their policy, too.
2014-12-19 21:52:12 +00:00
jacob1
15fab6c0b7 possibly prevent error if bot is opped before WHO results come back 2014-12-19 12:24:21 -05:00
jacob1
a6a87c2dde add villager and cultist to the amnesiac blacklist 2014-12-19 10:29:07 -05:00
jacob1
6a09f77a85 fix for recent gstats commit 2014-12-18 22:42:05 -05:00
jacob1
4573242f78 !roles uses var.role_order also (useful with !roles #) 2014-12-18 22:37:10 -05:00
jacob1
93cd95cfef fix !goat (also wasn't fully fixed) 2014-12-18 20:37:10 -05:00
jacob1
3a7c7f777b fix !faftergame frestart
was calling the pmcmd version with the arguments inside chan instead of *rest
2014-12-18 18:18:57 -05:00
jacob1
61e41a5776 fix gstats error when using 8p instead of just 8 2014-12-18 18:18:57 -05:00
jacob1
1a4ad90dd2 don't show "was x" for templates (thought I did this already) 2014-12-18 18:18:57 -05:00
VULPINE
07ddf35c37 Update .mailmap 2014-12-18 15:47:38 -05:00
jacob1
92a7697584 order !pstats and !stats using var.role_order() 2014-12-18 13:26:20 -05:00
jacob1
7d2d65f80d fix player count not appearing when quitting in join phase 2014-12-18 00:03:36 -05:00
jacob1
e9944f06eb stop_game errors don't prevent !frestart and !fdie from working 2014-12-17 23:44:32 -05:00
jacob1
5736f3d758 fix error if mad scientist-assassin targets one of their own kills 2014-12-17 23:18:27 -05:00
skizzerz
6911ce2ac7 Revert "amnesiac can't turn into default role"
They most certainly can, changing this is a gameplay change and is not
the proper place for this anyway.

This reverts commit 43676344a8.
2014-12-17 21:40:32 -06:00
jacob1
43676344a8 amnesiac can't turn into default role
It seems I wasn't a villager, I was actually a villager all along
2014-12-17 22:37:13 -05:00
jacob1
4bced1cf2a ping villagers in end of game list + some bugfixes 2014-12-17 21:49:39 -05:00