Commit Graph

2572 Commits

Author SHA1 Message Date
Ryan Schmidt
11569c75b2
Fix possible issue in chk_win
need to propagate rolemap/mainroles into subcalls so that checking win conds in role attribution (e.g. for random/mael) won't spuriously break
2017-12-05 18:37:54 -07:00
skizzerz
5cc45eda6d Don't return self in get_target if allow_self is False
This was put in to allow for custom messages if one couldn't target
themselves. As such, an extra kwarg was added to pass in a custom
message in such an event. It now returns None if they targeted
themselves so the caller can fail gracefully.
2017-12-05 15:02:21 -06:00
skizzerz
40b2c345dc Additional piper fixes 2017-12-05 15:02:21 -06:00
skizzerz
4edd0122e2 Don't break when someone leaves during join phase
Converted PLAYERS to ALL_PLAYERS due to the former storing nicks and the
latter storing users, but it turns out they are populated differently
and we really actually needed PLAYERS here.
2017-12-04 18:21:49 -06:00
Ryan Schmidt
0b07d9193f Convert var.DISCONNECTED to users (#302)
* Fix inaccuracy in users._add docstring

Also don't track disconnected users by nick anymore. But that seems less
major than fixing the docstring.

* Fixes

* Fix docstring
2017-12-04 14:06:20 -05:00
jacob1
65e4d9c484 remove debug code 2017-12-04 00:03:06 -05:00
jacob1
4bbe460df3 don't check votes in reaper until after killing all idlers 2017-12-04 00:01:55 -05:00
Ryan Schmidt
837eec41ad
Merge pull request #303 from lykoss/fspectate
Spectate changes
2017-11-30 20:47:46 -07:00
skizzerz
6efbcca3fe Split piper and convert it to new APIs
Still some unsplit things that are pending other roles being split.
Other gameplay changes regarding piper:

- Ensure that pipers can never be charmed, even in the case of
  misdirection, luck, and exchange totems.
- Allow pipers to change who they are charming during the night.
- Do not share who pipers picked with other pipers (or in revealroles),
  as these are now changeable and pipers are not made aware of each
  other anyway in the role list at night.
2017-11-30 21:44:59 -06:00
jacob1
50f77439fb fix dead vengeful ghost being unable to use any commands 2017-11-13 00:22:33 -05:00
jacob1
6ba752a038 default SERVER_PASS to None 2017-11-13 00:22:09 -05:00
jacob1
7a003e4cb7 convert var.SPECTATING_WOLFCHAT to users, prevent !spectate deadchat 2017-11-05 20:11:05 -05:00
jacob1
cac3200164 separate spectate into +p flag, add a notice when someone spectates wolf/deadchat 2017-11-05 00:15:24 -04:00
skizzerz
33b2e26c15 Support SERVER_PASS without placeholders
Sometimes a connection password which is different than nickserv
password is required. This supports that now.
2017-11-02 18:01:44 -05:00
skizzerz
dfa310850f Fix silenced harlot breaking things 2017-10-21 11:41:22 -05:00
skizzerz
4df8072afd Fix 8+ villagergame 2017-10-19 22:58:42 -05:00
Ryan Schmidt
32e0f88e87 Merge pull request #300 from wctaiwan/patch-1
Change villagergame win message
2017-10-09 15:19:51 -07:00
wctaiwan
a35081aebd Change villagergame win message 2017-10-06 21:53:12 -07:00
Vgr E. Barry
7c7a256eab Use get_players for decorators 2017-10-02 11:14:58 -04:00
Ryan Schmidt
9c67f73f5b Merge pull request #299 from lykoss/convert_del_player
Convert del_player to Users
2017-09-28 19:58:33 -07:00
jacob1
7bbffd3e61 remove FORTUNE_CHANCE, wasn't interesting / could error 2017-09-26 19:49:58 -04:00
Vgr E. Barry
1351f70e04 Import users and channels in every role file
Not every role file needs it, but it's better to be consistent
2017-09-26 17:17:00 -04:00
Vgr E. Barry
0f12277541 Properly iterate over users instead of nicks 2017-09-26 17:16:59 -04:00
skizzerz
6d26d8e90c Remove forced_death param from del_player
It was causing subtle bugs with vote counting and is not needed since
ismain is a better thing to check anyway.
2017-09-26 15:59:42 -05:00
skizzerz
de566f839b Don't attempt to transition phases while in the middle of a chain death 2017-09-26 15:32:49 -05:00
Vgr E. Barry
cc4cfa34fe Remove testing leftover 2017-09-26 09:05:13 -04:00
Vgr E. Barry
d6540b4edb Fix some small issues 2017-09-26 07:56:11 -04:00
skizzerz
90320ba6bc Fix issues with del_player conversion 2017-09-25 17:37:56 -05:00
skizzerz
c8145571e0 Fix killing harlots who stayed home bugging out 2017-09-25 17:16:45 -05:00
skizzerz
00886f504a Add DISABLED_COMMANDS config var 2017-09-23 18:37:22 -05:00
skizzerz
a4c9fe6377 Fix some del_player call sites and default params 2017-09-19 15:33:25 -05:00
skizzerz
35439209e0 Update wolflist event 2017-09-18 16:50:35 -05:00
Vgr E. Barry
02eba3e267 Actually pass users through to _get_targets 2017-09-18 17:12:19 -04:00
Vgr E. Barry
262990653d Actually add users to the deadlist 2017-09-18 16:49:21 -04:00
Vgr E. Barry
d04891346a More things 2017-09-18 16:45:33 -04:00
Vgr E. Barry
582045bcd9 I dun goofed 2017-09-18 16:38:59 -04:00
Vgr E. Barry
89cabd933b Update event listeners for del_player 2017-09-18 16:35:23 -04:00
skizzerz
39dfd2095f Update update_stats listeners 2017-09-18 15:30:39 -05:00
skizzerz
40263d9a50 kill var.HVISITED with fire (not used anymore) 2017-09-18 15:26:21 -05:00
skizzerz
24b2ea6001 Update del_player callsites in wolfgame.py
Also make the kwargs in del_player kwarg-only.
2017-09-18 15:23:08 -05:00
skizzerz
3cd6247ce9 Convert del_player
This is still a Work In Progress. The function itself has been converted
(completely untested as of now), but nothing that uses or calls it has
been fixed yet.
2017-09-18 15:00:39 -05:00
Em Barry
bcedbd4c65 Convert check_exchange (#298)
Add an optional extended description...
2017-09-18 11:08:17 -07:00
Em Barry
95fd796953 Convert transition_day (#297)
transition_day and relevant events have been converted to the users API. Additionally, VG was converted to the users API.
2017-09-11 16:55:19 -07:00
Vgr E. Barry
e04c60a60f Nothing to see here, move along 2017-09-04 15:32:54 -04:00
Vgr E. Barry
2b50c75b18 Fix harlot bite event 2017-09-04 15:31:54 -04:00
Vgr E. Barry
516d1d0c8c Update the chk_nightdone function and event 2017-09-04 13:56:33 -04:00
Vgr E. Barry
a5c3f0694c Update night_acted event 2017-09-04 10:46:15 -04:00
Vgr E. Barry
b73d4e79c1 Fix oversight 2017-09-02 10:03:24 -04:00
Vgr E. Barry
d89534f259 Update !myrole and its event 2017-09-01 10:10:26 -04:00
Vgr E. Barry
07f14689c3 Properly display player list to wolves 2017-08-30 14:41:25 -04:00