Bär Halberkamp
8c9abad529
Mafia: fix a stupid typo
2016-09-24 22:50:19 +02:00
Taylor Everding
1a1f64fe95
Remove .js extension from requires ( #2725 )
2016-08-30 00:04:40 -05:00
Ivo Julca
62a5397083
Lint: Use latest version and features of ESLint
2016-08-03 01:24:36 -05:00
Quinton Lee
b0cef1f17f
Follow all player renames in roomgames ( #2538 )
...
Fixes various crashes caused by roomgame players changing names outside
of the room
2016-04-30 02:03:05 -07:00
Ivo Julca
22779102cc
Lint: Add miscellaneous extra rules
...
Among the newly added rules, there are quite a few intended to enforce
compliance of CONTRIBUTING.md-blessed idioms, as well as ensure
safe usage of classes and constant bindings.
We are also now enforcing usage of early return in commands.js,
which has 100% compliance as of fd2c45c .
2016-04-25 21:52:21 -05:00
Bär Halberkamp
26beeaabcf
Mafia: Improve abstaining
2016-04-05 03:50:27 +02:00
Bär Halberkamp
7f4a18f90f
Mafia: add HTML escaping
...
thanks slayer95 for pointing this out
2016-03-30 13:37:31 +02:00
Bär Halberkamp
8efcad4e41
Mafia: Show list of players and roles every day
2016-03-30 02:46:09 +02:00
Bär Halberkamp
9ae7f1887a
Mafia: games start on day 1
2016-03-30 02:10:40 +02:00
Bär Halberkamp
e0598ff171
Mafia: fix oversights
2016-03-30 02:09:30 +02:00
Bär Halberkamp
998892332c
Mafia: change the pregame window when the game starts
2016-03-29 04:18:54 +02:00
Bär Halberkamp
0faca2d8da
Display pregame when users join
2016-03-29 04:18:54 +02:00
Bär Halberkamp
22b8349957
Mafia: Fix one mafia vote counting for everyone
2016-03-29 04:18:54 +02:00
Bär Halberkamp
d51b5041da
Mafia: make the game actually progress once day is reached
2016-03-29 04:18:54 +02:00
Bär Halberkamp
285462e9f2
Mafia: make the different cop variations show up in the pregame
2016-03-24 20:13:31 +01:00
Bär Halberkamp
ccdc293d9f
Mafia: add 'dethy' as a shortcut to make a dethy game
2016-03-23 21:01:50 +01:00
Bär Halberkamp
3465829e22
Add permissions for roomgames
2016-02-26 22:19:19 +01:00
Bär Halberkamp
f5a4e28205
Specify which game is in progress
2016-02-17 21:09:44 +01:00
Bär Halberkamp
4dd80754a4
Mafia: add an "autoModchat" option
2016-02-17 21:09:44 +01:00
Bär Halberkamp
370d49c078
Allow mafia roles with abilities that can only be used once
2016-02-17 21:09:44 +01:00
Guangcong Luo
b665660608
Refactor for more ES6 features
...
Now that nodejs/node#3072 is mostly fixed, we can finally start using
Node 4+ features.
This refactor:
- uses arrow functions where appropriate
Note that arrow functions still aren't used in Mocha, where `this`
is sometimes meaningful.
This also removes the need for .bind() nearly everywhere, as well
as the `self = this` trick.
- refactors Validator and Connection into ES6 classes
- no longer uses Array#forEach for iterating arrays
We strongly prefer for (let i = 0; i < arr.length; i++) because of
performance reasons. Most forEaches have been replaced with for..of,
though, which is 5x slower than the long-form loop but 2x faster
than forEach, which is good enough outside of most inner loops.
The only exception is tournaments, which is due for a more invasive
refactor soon anyway.
2016-02-10 17:40:21 -06:00
Bär Halberkamp
52fb36bcc2
Mafia: fix bug
2016-02-03 02:32:53 +01:00
Bär Halberkamp
01f93492b1
Mafia: implement new roles
2016-01-29 02:44:31 +01:00
Bär Halberkamp
8a9db339bc
Mafia: Allow players to have their vote count different amounts
2016-01-28 16:20:25 +01:00
Bär Halberkamp
f0c10298fd
Mafia: make the 10 seconds left message less intrusive
2016-01-23 20:48:30 +01:00
Bär Halberkamp
cf057f512c
Mafia: fix bugs
2016-01-23 20:46:52 +01:00
Bär Halberkamp
49e16d003a
Mafia: implement the latest changes to the RoomGame API
2016-01-20 19:10:08 +01:00
=
69495ebd07
Mafia plugin: Mafia scripts should not have the executable flag
2016-01-18 03:38:51 -04:00
Bär Halberkamp
97c9d96e89
Mafia: Update mafia with the new RoomGame features
2016-01-15 15:03:28 +01:00
Bär Halberkamp
6089893b3e
Mafia: Allow exporting of the current mafia game
2016-01-07 02:13:05 +01:00
Guangcong Luo
e624b9d5c7
Merge pull request #2350 from xfix/unify-style
...
Make code style consistent between files
2015-12-31 23:36:19 +00:00
Konrad Borowski
81f602b8d8
Always use trailing comma for multiline objects
2016-01-01 00:20:07 +01:00
Bär Halberkamp
f469c1bfa4
Mafia: set allowRenames to true
2015-12-28 23:35:27 +01:00
Bär Halberkamp
bdeb6b9a24
Mafia: allow JSON game setups to be used instead of lists of roles
2015-12-28 23:35:27 +01:00
Bär Halberkamp
ddb4a6f1b5
Mafia: Improve voting once again
2015-12-25 02:22:01 +01:00
Bär Halberkamp
b1276eda1e
Mafia: Fix copypaste error
2015-12-25 02:05:28 +01:00
Bär Halberkamp
a24815dd16
Mafia: Show the class image after voting
2015-12-24 18:28:46 +01:00
Bär Halberkamp
ad9af90c8f
Mafia: Make the game end if there's a single town member as well
2015-12-24 18:28:46 +01:00
Bär Halberkamp
c71d95d040
Mafia: Fix timer for cases where there's a vote but no event
2015-12-24 18:28:46 +01:00
Bär Halberkamp
ee8e442fdc
Mafia: Improve and fix voting
2015-12-24 18:28:46 +01:00
Bär Halberkamp
586eba1ad1
Mafia: allowed users to not target anyone and abstain from voting
2015-12-24 05:47:07 +01:00
Bär Halberkamp
fb90db7ab5
Mafia: properly decrease player counts
2015-12-22 07:44:40 +01:00
Bär Halberkamp
da28bff56b
Mafia: Make the town meeting show the right kill message
2015-12-22 07:42:48 +01:00
Bär Halberkamp
11b4fe0649
Mafia: improved handling of leaving and renaming players
2015-12-22 07:30:24 +01:00
Bär Halberkamp
6ff0a668c9
Mafia: fix the role string generation
2015-12-22 03:36:23 +01:00
Bär Halberkamp
034a7450c3
Mafia: Properly track name changes, not only userids
2015-12-22 03:36:23 +01:00
Bär Halberkamp
db5cc3270e
Mafia: add wills
2015-12-22 03:36:23 +01:00
Bär Halberkamp
bcebcb64d0
Mafia: Disallow players from changing their name
2015-12-21 04:11:10 +01:00
Bär Halberkamp
1f7167c189
Mafia: Center pregame window and add missing </div>
2015-12-21 02:59:46 +01:00
Bär Halberkamp
785a314b27
Mafia: display list of roles and players needed in pregame
2015-12-21 02:58:47 +01:00