nyuszika7h
051aff9476
fgame: Don't restrict what the default role can be
...
If it breaks, you get to keep the pieces. ;)
2015-07-11 23:51:38 +02:00
skizzerz
50752ccb5c
Remove unused variable
2015-07-11 13:49:56 -05:00
skizzerz
8299a2ee91
Force shaman to act at night
2015-07-11 13:43:50 -05:00
skizzerz
ee2a4ef2cf
Fix protection not working against assassin sometimes
2015-07-11 12:16:50 -05:00
nyuszika7h
130a859458
Actually fix restarting on excess flood
2015-07-10 00:07:10 +02:00
nyuszika7h
3649c82174
Fix auto-restart on excess flood
2015-07-09 23:55:04 +02:00
skizzerz
4e6b7ad372
Make !time report remaining wait time during join phase
2015-07-07 13:04:25 -05:00
skizzerz
627da811f8
Make fallen angel kill ALL of the protectors, not just the one that would have taken effect
2015-07-06 13:38:59 -05:00
skizzerz
51d747e7d1
Instantly end night if nobody can act during it
2015-07-06 13:38:59 -05:00
nyuszika7h
8d528bf047
Remove !fghost and !funghost
...
These commands are completely useless, they just confuse people. I just
had someone ask me whether it would bring them back to the game, with
their role and everything. If an op wants to talk in the middle of the
game, there are other ways to do that. This isn't even being used
anymore.
2015-07-06 20:12:01 +02:00
nyuszika7h
751a284f6d
Properly remove stasis on !fjoin
...
Previously, stasis would be removed locally but not from the database.
2015-07-05 00:23:35 +02:00
nyuszika7h
7f0623b4b0
Add partial role reveal
...
Roles are revealed upon death, but not shown in !stats.
This will be used for the random game mode with a 50% chance.
The variant used is displayed when the game is started, and
admins can force a specific variant with !fgame.
Also, ignore conceal_roles in !stats, because partial role reveal
handles that now.
2015-07-04 23:57:07 +02:00
skizzerz
649649a355
Fix hunter turning into some other nightrole prematurely ending night on occasion
2015-07-02 17:00:31 -05:00
nyuszika7h
b968f83e8b
Optimize var.get_role
...
It will now return as soon as it finds the role for the player,
instead of calling var.list_players_and_roles every single time.
I haven't tested in a real-world scenario, but in a test game
with 10000 players (don't ask), the speed improvement is very clear
(~1-2s per player when sending out nighttime PMs instead of ~10s).
2015-06-30 20:39:55 +02:00
nyuszika7h
ad26f0b693
Remove surrounding whitespace in fortunes
2015-06-30 12:59:14 +02:00
nyuszika7h
ca9b6a2009
Allow using !coin and !pony in PM
2015-06-28 11:11:08 +02:00
Vgr E.Barry
91e122f86d
Fix del_player to pass in an argument instead of using a list
2015-06-26 08:51:03 -04:00
skizzerz
2274e945a0
Disallow fallowing fsend
...
!fsend is a very dangerous command if abused (up there with exec), and
should be properly admin-only instead of allowed to be given out to
non-admins. Unlike fsay/fact, there is no easy way to restrict fsend
when a non-admin uses it.
2015-06-25 13:02:51 -05:00
nyuszika7h
4e53a3556b
Fix compatibility with Python 3.2 (no list.clear())
2015-06-25 17:53:06 +02:00
nyuszika7h
f849eb35c2
Remove debug print
2015-06-21 00:19:56 +02:00
Vgr E.Barry
a009eb4819
Fix issue where !roles would output the wrong number of players
2015-06-19 11:54:09 -04:00
Vgr E.Barry
5c6a14154e
Change !help to not display aliases
...
Also improve message splitting and remove string concatenation to use
faster and more memory-efficient methods
2015-06-18 23:20:56 -04:00
Vgr E.Barry
260918555d
Change del_player to devoice all at once in multiple-deaths scenarios
2015-06-18 22:48:48 -04:00
skizzerz
3cab412a9b
Fix silenced VG causing day transition to error out
2015-06-15 16:44:45 -05:00
nyuszika7h
7887b6b2d8
Looks like that op request wasn't so redundant.
...
I misread the code.
2015-06-15 20:36:43 +02:00
nyuszika7h
6f62831b8a
Join all channels at once and remove redundant op request
2015-06-15 20:21:55 +02:00
nyuszika7h
452c1b1ede
Fix capability negotiation to be more sane (and IRCv3.2-compliant)
2015-06-15 20:20:28 +02:00
skizzerz
1a506907c9
Wording fix
2015-06-15 11:04:50 -05:00
nyuszika7h
7cc2aaeb4d
Fix imports
2015-06-15 17:36:46 +02:00
Vgr E.Barry
106b1d61f3
Allow events to only partially determine roles to attribute
2015-06-15 10:30:44 -04:00
Vgr E.Barry
7f875d3b33
Remove the roles_check event
2015-06-15 10:29:04 -04:00
Vgr E.Barry
d8161271c7
Tweak template restrictions handling
2015-06-15 10:28:14 -04:00
Vgr E.Barry
95967b8633
Make events.remove_listener remove empty lists as well
2015-06-15 10:26:58 -04:00
nyuszika7h
0d5839ac6a
Remove redundant imports
2015-06-15 15:27:56 +02:00
nyuszika7h
dd2d82392d
Reorganize imports
2015-06-15 15:20:27 +02:00
Vgr E.Barry
4d8576481b
Change event dispatchers to not pass in mutable arguments
2015-06-14 23:24:48 -04:00
skizzerz
4d15ee0421
Revert "Speed up startup time a bit"
...
This reverts commit 77d1eda074
.
Let's not use "private" modules for nonexistent performance boosts.
2015-06-14 22:25:58 -05:00
Vgr E.Barry
77d1eda074
Speed up startup time a bit
...
_collections is the C implementation (and where defaultdict lies), and
is as such already loaded when the interpreter is launched. collections
imports a bunch of other useless stuff we're not interested in.
2015-06-14 23:13:49 -04:00
Vgr E.Barry
d069345c2c
Refactor of the random game mode to use the role_attribution event
2015-06-14 22:57:23 -04:00
Vgr E.Barry
a7a3b4a045
Add a role_attribution event dispatcher
2015-06-14 22:56:57 -04:00
Vgr E.Barry
3888c51da5
s/!roles was disabled/!roles is disabled/ again
...
Forgot one
2015-06-14 22:54:51 -04:00
Vgr E.Barry
5d8cd14db8
Add chk_traitor event (for the random game mode)
2015-06-14 16:35:14 -04:00
Vgr E.Barry
aaaf3df0f5
Add a roles check event for when game starts
...
Also remove `var.IGNORE_NO_WOLF` hack
2015-06-14 16:34:42 -04:00
Vgr E.Barry
a8984b6a56
Add event for amnesiac turning (for the random game mode)
2015-06-14 16:32:39 -04:00
Vgr E.Barry
5c4dcec8e6
Remove \x02 from console and file output
2015-06-14 16:31:29 -04:00
Vgr E.Barry
1d711b9cee
s/!roles was disabled/!roles is disabled/
2015-06-14 16:12:50 -04:00
Vgr E.Barry
81e3e688ab
Fix Event.dispatch to return True if execution is to proceed
2015-06-14 16:06:36 -04:00
Vgr E.Barry
28dc0a8e14
Fix corner case with multiple pipers
2015-06-14 12:06:52 -04:00
nyuszika7h
1591655c68
Log admin commands to audit.log as well
2015-06-14 17:45:46 +02:00
nyuszika7h
f8cc2aef1d
fallow/fdeny: Add -cmd to complement -cmds
...
You can use this to see which people are allowed or denied to use a
particular command, rather than listing all commands.
2015-06-14 16:14:39 +02:00