Commit Graph

2460 Commits

Author SHA1 Message Date
skizzerz
b2589caccb Fix yet another bug with the hunter conversion 2017-08-29 17:36:21 -05:00
jacob1
9c0f96decc fix issue where night wouldn't end if wolves were diseased 2017-08-27 00:17:22 -04:00
skizzerz
d675f3183c Fix hunter prematurely ending night.
Idea: let's NOT mess with how the game logic is laid out unless you can
mathematically prove that your new cool shorthand way of doing things is
exactly equivalent to the old way.
2017-08-25 17:01:53 -05:00
Vgr E. Barry
1bb4ea1cd3 Fix !fsync 2017-08-24 09:07:32 -04:00
Vgr E. Barry
55c2f2ce25 Fix !revealroles 2017-08-23 23:40:04 -04:00
Vgr E. Barry
746eb4171b I'm good at this 2017-08-23 23:21:59 -04:00
skizzerz
0bfa262daf Flags/command permissions overhaul
- revealroles is now enabled by default in normal mode
- spectate has been changed to require +a instead of +A
- fdie has been changed to require +F instead of +D;
  unlike the other +D commands (restart, update), die requires
  server access to get back up and is more dangerous.
- remove 'send' alias for fsend
- fgame is now enabled by default in normal mode
  and has been changed to require +g instead of +d
- fnight has been changed to require +N instead of +d
- fday has been changed to require +N instead of +d
- fstart has been changed to require +S instead of +A
- fstop has been changed to require +S instead of +A
- fwait has been changed to require +w instead of +A
- all remaining commands which require +d (force/rforce/frole)
  remain disabled by default in normal mode
- eval and exec can no longer be enabled in normal mode;
  they function in debug mode only
2017-08-23 22:17:25 -05:00
Vgr E. Barry
370b2c6ed2 Some function and event updates 2017-08-23 22:06:43 -04:00
skizzerz
fa82be59f3 Fix MS chained deaths not chaining correctly 2017-08-23 21:01:16 -05:00
Vgr E. Barry
714f0e8593 Add new User-aware utility functions
Right now neither are used (get_participants does not have any event listeners anywhere), however in the future it will be easier to convert code that uses the old, nick-based functions.
2017-08-23 19:02:10 -04:00
Vgr E. Barry
401edb75cf Convert hunter to the new User API 2017-08-23 18:59:30 -04:00
skizzerz
ca628dfe2e Don't time out night if all wolves are silenced 2017-08-22 17:10:26 -05:00
Vgr E. Barry
5d14327380 make stuff prettier i guess 2017-08-21 14:16:04 -04:00
skizzerz
f766c76076 ... 2017-08-20 22:56:44 -05:00
jacob1
27b8c3c785 remove scary ping message 2017-08-20 22:46:48 -04:00
jacob1
2cb25a3ad5 fix revealroles showing MS targets on every player 2017-08-20 22:33:15 -04:00
jacob1
fb889393d7 fix single digit fake nick joining in debug mode (only ranges worked) 2017-08-20 19:59:30 -04:00
jacob1
a0055453fe fix succubi winning when all players die ... even if there were no succubi 2017-08-20 18:53:23 -04:00
jacob1
4dc86adc75 add mad scientist targets to myrole and revealroles 2017-08-20 18:46:04 -04:00
skizzerz
4d9e509a58 Add drunk to guardian, bit too many vils in there 2017-08-19 23:35:47 -05:00
skizzerz
9d4a5172b4 Don't make CS lose if they die in vilgame 2017-08-19 23:07:56 -05:00
skizzerz
3ea7ba0d2c Add guardian to default rotation now that win conds are fixed 2017-08-19 22:38:29 -05:00
skizzerz
7568baced8 Fix users not being voiced in mael when joining midgame 2017-08-19 00:16:32 -05:00
skizzerz
c47373dd3d Fix villagergame delay not working 2017-08-18 19:48:11 -05:00
skizzerz
a3839b25d6 Fix midgame joining in mael
copy/deepcopy didn't know what to do with user objects due to custom
__new__. Since __new__ returns an existing user if possible anyway, just
have copy/deepcopy return the same user instance that is being copied.
2017-08-18 17:45:47 -05:00
skizzerz
9eaaa90c8e Split wolf cub, part 2
It turns out that actually staging the new file is helpful. Whodathunk?
2017-08-16 18:12:13 -05:00
skizzerz
63e8ad667b Split wolf cub
Was already mostly in wolf.py, but this takes it out and lays groundwork
for splitting out var.DISEASED_WOLVES and base events that the new
berserker wolf can use.
2017-08-16 18:08:05 -05:00
Ryan Schmidt
4bfa5f16f6 Split Mad Scientist (#295)
* Split Mad Scientist

Related changes:
- MS now honors all protections instead of only caring about blessed
  villagers
- Allow FA to bypass protection even if FA is applied as a template
- Make bodyguard swap themselves in as the assassination target rather
  than blocking the attempt outright and suiciding. This means that
  active protections on the bodyguard have a chance to save them as well.
- Redo some messages to make the above sound nice in the bot.
- Add some additional params to the assassinate event to see WHY the
  assassination is happening (source) and WHO is doing the assassination
  (killer; currently a nick but should be a user sometime in the future).
- Add a target data item to teh assassinate event so that listeners can
  change who is being assassinated. Protection boilerplate has been
  adjusted to account for this.
- Add helper function to get the targets, avoiding code duplication
2017-08-16 14:53:21 -04:00
skizzerz
ef3c670a0d Make sleepy 10+
8-9p has only one safe, 2 wolves, and a dullahan. Usually this means
dulla controls the game and the winner is entirely determined by whether
or not both wolves are on the kill list. Aka it sucks.
2017-08-09 17:18:59 -05:00
skizzerz
a9915e09fe Kill non-f aliases for fsay/fact
Many of these aliases are words that begin sentences. Saying them in
wolfchat/deadchat then makes the bot pm random people with stuff. Let's
NOT do that, kthx. fact is also a word, so replacing that with fdo.
2017-08-09 12:09:58 -05:00
skizzerz
ad5ab73e00 Forgot to update gamemodes del_player events to use new var names 2017-07-20 19:07:00 -05:00
skizzerz
c4282bd237 Fix wolf cub not working
The dead player is already removed from var.ROLES by the time the event
fires. Also, tweak del_player event to make it much easier to support
arbitrary roles as not being the player's main role by changing nicktpls
to allroles (which is a set that includes mainrole). The assassinate
event is similarly tweaked.
2017-07-20 14:19:04 -05:00
skizzerz
c0aa797342 Don't shoot werekittens at night
They can't be shot during day, so they can't be shot at night either.
Add an event so that it can be easily handled once split (using the new
API, Vgr would be so proud of me).
2017-06-20 23:08:49 -05:00
skizzerz
24f82d3cd5 Fix BotUser.lower 2017-05-16 11:05:37 -05:00
skizzerz
c9faa8bb7a Fix BotUser.with_host breaking things when called during registration
If with_host() is called before we fully know our ident and host, we'll
set the host but keep ident as None, which breaks everything down the
line. I could've fixed this in general in users._add, but that would
require more extensive changes than this patch (aka may break other
things).
2017-05-15 20:35:47 -05:00
skizzerz
68109a12ae Fix RPL_ISUPPORT parsing
Instead of trying to guess what format a token is based on its content,
hardcode a list of known tokens and what formats their parameters take.
Any unknown token will therefore be kept as a string, instead of
potentially blowing up parsing due to unexpected values (such as
multiple colons).

Also fix parsing for colon-separated lists. MAXLIST=beI:100 is *VERY*
different from MAXLIST=b:100,e:100,I:100 but our previous processing
made the two identical in terms of what the structure looked like.
2017-05-15 16:24:20 -05:00
nyuszika7h
5a0a519d27 .mailmap: Update my primary email 2017-05-15 21:43:26 +02:00
nyuszika7h
30b92a6101 README.md: Mention SQLite3 requirement 2017-05-15 21:42:34 +02:00
nyuszika7h
a8198327d0 Fix missing space before death messages in join phase 2017-05-15 21:42:22 +02:00
jacob1
d12aabb190 revert previous commit (af4be89897) 2017-05-06 15:06:58 -04:00
jacob1
af4be89897 update gamemodes.py.example 2017-05-06 12:44:18 -04:00
jacob1
9f43a8a6d6 nicer error message when running on python < 3.3 or python 2 2017-04-22 17:32:04 -04:00
Vgr E. Barry
3f9f06613a Fix pingif preferences not being properly saved 2017-04-22 07:46:09 -04:00
jacob1
16d541b1f1 fix missing space in quit message 2017-04-19 21:49:57 -04:00
nyuszika7h
9067da836d Fix critical bug regarding goats 2017-04-18 18:08:12 +02:00
Vgr E. Barry
08eaa34130 Update !fleave 2017-04-16 23:47:28 -04:00
skizzerz
4ce8888274 add users import to wildchild 2017-04-13 16:04:25 -05:00
Vgr E. Barry
64eb34a61a Properly handle the bot's host change 2017-04-07 16:52:35 -04:00
skizzerz
e0ea1f00e4 derp^2 2017-04-01 14:53:17 -05:00
skizzerz
9076872726 Fix dulla 2017-04-01 14:06:08 -05:00