799 Commits

Author SHA1 Message Date
skizzerz
7fb0022928 Fix amnesiac 2017-12-16 21:51:25 -06:00
jacob1
bd66621a43 fix ORIGINAL_ROLES not being updated on player swaps 2017-12-16 21:11:56 -05:00
jacob1
141bab2624 fix pony in a way that matches slightly better 2017-12-14 00:20:48 -05:00
jacob1
697ac58ef3 fix pony 2017-12-14 00:19:26 -05:00
skizzerz
0cc497111f Fix roleswap wins 2017-12-13 22:49:18 -06:00
skizzerz
7a66275bcc Fixes for role change 2017-12-13 22:04:08 -06:00
skizzerz
95da346344 Fix mudkip 2017-12-13 21:06:56 -06:00
skizzerz
4fde6f9bae Convert var.ROLES and var.ORIGINAL_ROLES to Users
This gets rid of the (dced) hack, with var.DCED_LOSERS taking its place.
Succubus was not touched, as there is already a PR which converts it,
although the succubus events in other files were touched.

Some sites were updated to be (more) Users-aware, while others replaced
it with an old deprecated get_roles() API. As more things get converted,
these will hopefully get eliminated as well. A FIXME comment was added
to all such occurrences.
2017-12-12 16:25:56 -06:00
Em Barry
ab125c26de
Merge pull request #307 from ammongit/coin-pony-cat
!coin, !cat, !pony
2017-12-12 08:18:25 -05:00
Ammon Smith
6f830619cf Apply review changes. 2017-12-11 14:00:47 -08:00
Ryan Schmidt
d8aabf0db6
Merge pull request #306 from lykoss/harlot-convert
Convert harlot to the new API
2017-12-11 13:24:02 -07:00
Vgr E. Barry
8236664e15 Fix some issues with harlot conversion 2017-12-11 15:21:01 -05:00
Ammon Smith
c8a4502aec Move !coin and the rest to @command. 2017-12-10 21:22:51 -08:00
skizzerz
6be001c78f derp 2017-12-09 14:55:49 -06:00
skizzerz
a2dd0fd189 Balance tweaks for new mode
- Remove minion entirely, keeping cultist at 8p instead.
- Cultist swaps with doomsayer at 9p, so there's still only 2 wolfteam
  until 11p. Doomsayer is powerful enough already, don't need another
  wolfteam in there.
- Get rid of retribution totems. Shaman is now 50/50 death/pestilence
  and wolf shaman is 50/50 protection/misdirection.
- Make stalemates benefit village by allowing tied votes to lynch all
  tied people instead of nobody. Day ends once everyone votes, even if
  there is no majority vote. In that case, the plurality of votes is
  considered rather than majority.
2017-12-09 11:21:04 -06:00
Vgr E. Barry
7e9bbcaf3c Some small fixes for harlot 2017-12-07 13:31:18 -05:00
Vgr E. Barry
bfc5e6a9dd Convert harlot 2017-12-07 13:31:18 -05:00
skizzerz
a4f3d61aad Fix return_to_village for disconnected users
If the user rejoins as a different user, the ghost stuck around and
broke things. This fixes that. It also makes it smarter when rejoining
as a different nick, and alerts what the old nick was in such cases.
2017-12-07 10:48:39 -06:00
Em Barry
1ce4360f3e
Merge pull request #304 from lykoss/split_piper
Split piper and convert it to new APIs
2017-12-05 20:51:10 -05: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
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
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
dfa310850f Fix silenced harlot breaking things 2017-10-21 11:41:22 -05: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
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
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
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
d04891346a More things 2017-09-18 16:45:33 -04: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
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
d89534f259 Update !myrole and its event 2017-09-01 10:10:26 -04:00
Vgr E. Barry
7d117fab6b Fix error in end-of-game deadchat 2017-08-30 13:52:20 -04:00
Em Barry
a9067bb8ca Change a bunch of things because we felt like it
* Convert the del_player event
* HAAAAAAAAAAAAAAANDS
* <insert snarky commit message here>
2017-08-30 10:09:31 -07:00
Vgr E. Barry
0f1d513daa Convert the transition_night_end event 2017-08-30 10:16:02 -04:00
Vgr E. Barry
e32e142742 Remove the cli parameter from night_acted 2017-08-29 20:00:33 -04:00