Commit Graph

23714 Commits

Author SHA1 Message Date
Guangcong Luo
88159c41bc Refactor BattleRoom -> GameRoom
BattleRoom is now GameRoom, a slightly more abstract room type capable
of holding any of a number of possible roomgames. Currently, battles
are the only such roomgame, but any future roomgame could possibly use
it.

Differences between ChatRoom and GameRoom:

- GameRooms start at the left, ChatRooms start at the right
- GameRooms have chat on the right, and a game area on the left, with a
  view area at the top left and a controls area at the bottom left
- GameRooms retain all their logs, ChatRooms only retain the latest 100
  lines
- GameRooms expire after 40 minutes of inactivity or 10 minutes of zero
  online users (configurable in the future)
- GameRooms are guaranteed to have an associated game, while ChatRooms
  may or may not
2017-10-18 05:41:03 -05:00
Guangcong Luo
49abf3d8f6 Set TICK_TIME to 5 seconds
Should produce slightly more accurate battle timing.
2017-10-18 05:41:03 -05:00
Guangcong Luo
feeefa5b24 Timer: Define TICK_TIME in seconds
Unfortunately, the rest of the codebase is inconsistent about whether
time is in seconds or milliseconds, but since it's seconds in the
rest of the file, we may as well be consistent here.
2017-10-18 05:41:03 -05:00
Insist
68061c3a6b PROTOCOL.md: Fix Markdown header style (#4066) 2017-10-18 05:15:51 -05:00
Jeremy Piemonte
2edb92273f Mitigate mutes that don't expire when they should (#4065)
Note: The actual cause for why some mutes not expiring when they should is still unknown; this is not a fix.
2017-10-17 21:27:39 -05:00
QuiteQuiet
6651c5dadb Fix confusion interaction with HP-checking items (#4045) 2017-10-17 09:26:27 -04:00
The Immortal
f2671fa219 Remove 1v1 suspect test 2017-10-17 03:36:25 +04:00
The Immortal
ffd2e8da21 Add Sketchmons suspect test 2017-10-17 01:01:48 +04:00
The Immortal
0c5251ff26 Move Weavile to BL 2017-10-16 06:02:18 +04:00
Insist
bc2af390f7 Correct Tsareena's evolution condition (#4063) 2017-10-15 19:21:32 -04:00
Insist
fc59f4c628 Tests: Moltres doesn't get Intimidate (#4061)
Minor improvement
2017-10-15 19:13:30 +04:00
QuiteQuiet
398c7b66fe Fix inconsistent indentation (#4060) 2017-10-15 05:43:19 -05:00
Charlie Kobayashi
da0242a3f4 Scavenger games: fix timer (#4058)
- return the value of the timer duration in a scav game so it does not end up as ``undefined``
2017-10-15 01:38:01 -05:00
Charlie Kobayashi
7ed94ad3c4 Fix ending hunts within a parent game (#4056) 2017-10-14 21:22:06 -05:00
Jeremy Piemonte
c2b0b48795 Modchat: Remove unnecessary curly brackets (#4057) 2017-10-14 21:21:41 -05:00
Jeremy Piemonte
c0d65d488b Datacenters: Add a range (#4054) 2017-10-13 23:48:34 -05:00
The Immortal
987630dd9d Remove UU suspect test 2017-10-14 05:40:32 +04:00
whales
35c42de6f6 tcg: update to use https, fix error with bulba (#4053)
seems like bulbapedia requires https now, which was breaking ptcg requests
2017-10-13 05:38:46 +02:00
Marty-D
df05e12f59 Correct confusion prevention messages 2017-10-12 09:36:41 -04:00
Marty-D
9ed34665ab Add new event Pokemon 2017-10-12 08:58:42 -04:00
Guangcong Luo
0fde4b0afe Update CONTRIBUTING.md
V8 6.1 and Node 8.7 fix performance for basically everything I care about.
2017-10-11 19:27:10 -05:00
urkerab
83dc4b07d9 /ds<N> single result details should be for gen<N> (#4051) 2017-10-11 19:15:19 -05:00
The Immortal
cd2e1491fe Remove AAA suspect test 2017-10-12 02:50:53 +04:00
Bär Halberkamp
8e4ce924b7 Wifi: Fix formatting in popups 2017-10-11 23:09:23 +02:00
Marty-D
2697814e71 Gen III: Fix Enigma Berry 2017-10-11 10:14:01 -04:00
Guangcong Luo
be486bfb1e Standardize on/off commands 2017-10-11 03:08:56 -05:00
Kris Johnson
2b67af932b Don't send people to HTTPS links on smogon (#4050)
Smogon doesn't support HTTPS.
2017-10-10 23:32:06 -05:00
Kris Johnson
33445f19e6 Don't send people with HTTPS pages with /smogdex (#4049)
People have reported getting errors like https://i.gyazo.com/778739472cf16b75377bef1c506a493d.png when using `/smogdex`. While this is a smogon-side issue, this is a temporary fix to that error.
2017-10-10 22:43:56 -05:00
Guangcong Luo
278b4d80f6 README: Update David-DM devDependencies link 2017-10-10 19:38:42 -05:00
Guangcong Luo
7503275208 Rename user.ioNext -> user.inviteOnlyNextBattle 2017-10-10 19:36:41 -05:00
Guangcong Luo
b0611ecdfe Implement /ionext
Sets your next battle as invite-only.
2017-10-10 19:34:52 -05:00
Jeremy Piemonte
7150974860 Roomunban: Clarify not banned error message (#4048) 2017-10-10 18:14:14 -05:00
Kevin Lau
b340edda02 Random Doubles: Update Necrozma (#4047) 2017-10-10 22:40:47 +04:00
Kris Johnson
0ca1709302 Add Monotype suspect test (#4046) 2017-10-10 16:47:38 +04:00
Marty-D
ea05191949 Gen II: Fix Beat Up again 2017-10-08 11:56:34 -04:00
The Immortal
63b435a403 Remove PU suspect test 2017-10-08 15:13:06 +04:00
Guangcong Luo
ccac3add6e Make eslint rules stricter 2017-10-08 04:41:11 -05:00
Guangcong Luo
3b2ada7c43 Update misc dependencies 2017-10-08 03:43:12 -05:00
Guangcong Luo
110b6a5511 Implement tiebreaker
This is the tiebreaker used for timeouts in Gen 6-7 (I think), but it's
not currently used anywhere.
2017-10-08 03:39:58 -05:00
Guangcong Luo
dcffa2a37d Update Mocha dependency 2017-10-08 03:36:04 -05:00
Guangcong Luo
839e9d1a83 Force linebreaks at the ends of files 2017-10-08 03:05:29 -05:00
Guangcong Luo
c4e13fc4fa Update dependencies
Mocha 4 has a weird issue where it doesn't terminate, so we can't use
it for now.
2017-10-07 23:59:52 -05:00
Guangcong Luo
4098383f65 Fix Gen 2 paralysis Spe 2017-10-07 23:39:56 -05:00
Guangcong Luo
0a27167425 Support tracking rating in uploaded replays 2017-10-07 23:30:31 -05:00
Guangcong Luo
cf2244d8ad Fix whitespace in HF chat plugin 2017-10-07 23:30:12 -05:00
Marty-D
7b5bd035e9 Gen II: Hardcode Beat Up stat replacement
Fixes the `ModifyAtk` bug and brings it in line with every other effect in Gen 2, plus actually implements the level part of Beat Up.
2017-10-07 20:28:00 -04:00
Spherical Ice
46634c5382 Properly format the word Pokémon in datasearch (#4043) 2017-10-07 16:23:43 -05:00
asgdf
a25da567ad Modlog: fix result count display being off by one (#4044) 2017-10-07 16:20:00 -05:00
The Immortal
252aaeaaa5 Guzzlord is NU 2017-10-07 19:27:18 +04:00
The Immortal
fb2e397f4e Update Sketchmons 2017-10-07 16:58:18 +04:00