Commit Graph

330 Commits

Author SHA1 Message Date
HoeenHero
e25653b86a Escape HTML in punishment info (#3835) 2017-07-28 14:07:54 -04:00
Spandan Punwatkar
597416d3b2 Move /othermetas to othermetas.js (#3812) 2017-07-21 11:36:17 -05:00
Lionyx
7be5ec4ab6 Update /bugs (#3790)
This should lower the number of reports in the thread that just turn out to be misunderstood uncommon mechanics, and hopefully will lessen the number of reports in Dev
2017-07-16 19:40:55 -05:00
Quinton Lee
d54582d132 Check for name changes in /checkchallenges 2017-07-14 15:55:25 -05:00
urkerab
133e28488e Simplify coding for links to Snatchable and Mirrorable moves (#3753) 2017-07-12 01:19:37 +09:00
urkerab
f90a1d665c Show Gen as CAP instead of 0 in detail output (#3751) 2017-07-10 17:03:07 +09:00
urkerab
a274e08a8f Don't show bogus Fling message in Gen 2/3 (#3752) 2017-07-09 14:50:56 +04:00
Guangcong Luo
b78350c1ec Make /dt dex-number lookup stricter
Previously, passing anything that started with a number to /dt would
make it look it up as a dex number.

This made it impossible to look up "10,000,000 Volt Thunderbolt".

Now, it has to be exactly a number and nothing else, to be considered
a dex number for the /dt lookup.
2017-06-23 06:49:58 -04:00
Ben Davies
e46c32a4b9 Commands: fix /processes crash (#3678) 2017-06-22 21:33:02 -07:00
jumbowhales
fece2a7d50 Veekun: show help if no target is given (#3668) 2017-06-20 21:55:28 -07:00
Spandan Punwatkar
d1400f4644 Refactor /data to generate HTML (#3378) 2017-06-19 17:02:47 -07:00
Lionyx
00e7948313 Fix /smogdex for Ubers (#3660)
Linking to a Smogon format analysis containing /ubers would give a wrong link in the current situation
2017-06-19 14:02:47 -07:00
Bär Halberkamp
961ffc3f9b Upgrade eslint to 4.x (#3657) 2017-06-18 22:37:43 -07:00
Bär Halberkamp
c198612e05 Improve display of shared IPs in /ip 2017-06-18 13:52:34 -07:00
panpawn
1da511b6f0 Enhance the rules command (#3617)
- Don't send double errorReply for when trying to set a room's rules in PMs
- Allow a way to delete a room's rules link
2017-06-11 22:38:54 -05:00
urkerab
8ca39d65fc Properly report a near miss for an alias (#3532) 2017-05-14 07:22:20 -05:00
Jacob McLemore
925b40361d Add /damagecalc as alias of /calc (#3517) 2017-05-10 13:54:37 -05:00
Guangcong Luo
6dd58b40d3 Refactor simulator into new sim/ directory
This is a surprisingly minor refactor considering how many files it
touches, but most of this is only renames.

In terms of file renames:
- `tools.js` is now `sim/dex.js`
- `battle-engine.js` is now `sim/index.js` and its three classes are
  in `sim/battle.js`, `sim/side.js`, and `sim/pokemon.js`
- `prng.js` is now `sim/prng.js`

In terms of variable renames:
- `Tools` is now `Dex`
- `BattleEngine` is now `Sim`
- `BattleEngine.Battle` is now `Sim.Battle`
- `BattleEngine.BattleSide` is now `Sim.Side`
- `BattleEngine.BattlePokemon` is now `Sim.Pokemon`
2017-05-05 16:48:38 -05:00
Guangcong Luo
3716f360ff TypeScript!
Currently TypeScript is validating tools.js and is not particularly
strict about anything and we use 'any' a lot and it's not part of
'npm test' yet, but everything has to start somewhere!

tools.js has also been refactored majorly to use accessors rather
than loader functions. This basically means you don't need to do
Tools.includeData() or anything like that anymore. The new system is
also easier to make TypeScript-compatible.

See #3278
2017-05-03 16:19:49 -07:00
Ben Davies
8de4bdfecb Sockets: refactor to use maps (#3474) 2017-04-23 16:39:38 -07:00
Quinton Lee
91d163a29f Implement /checkchallenges (#3328) 2017-03-24 16:19:43 -04:00
Guangcong Luo
8b25a865b9 Support /groups room and /groups global
Closes #3086
2017-02-24 00:53:16 -06:00
Kris Johnson
621b737ca3 info.js: add Ash-Greninja exception (#3282) 2017-02-23 18:25:58 -06:00
sparktrain
ee5f31bc71 Fix /caphelp (#3275)
Switch the HTML to unicode so the é displays correctly
2017-02-22 22:37:45 -06:00
spekss
dded0aa952 Replace <b> with <strong> in /groups (#3237) 2017-02-15 23:38:14 -06:00
spekss
5b1ceae9df Add bold in /punishments (#3236) 2017-02-15 23:37:56 -06:00
spekss
38842e957d Add badge faq (#3084)
(http://www.smogon.com/badge_faq)
2017-02-10 16:50:28 -06:00
Guangcong Luo
6e100ee5b7 Add /punishments
This is just a generic punishments list. Feel free to pullreq
improvements.

Closes #3200
2017-02-10 17:11:06 -05:00
Guangcong Luo
81f13a18f1 Add user groups to /whoare
Specifically, user groups are now in /checkpunishment, which has been
renamed /offlinewhois. It doesn't actually function as an offline /whois
since it still requires auth.

Maybe making it not require auth should be a project to put in Ideas.
2017-02-10 17:10:15 -05:00
sparktrain
9568791e76 Update /cap (#3187)
Update with link to the current sample team thread
2017-01-25 02:42:27 -05:00
Kris Johnson
ed4227a22d info.js: update /smogdex (#3070) 2017-01-02 10:27:43 -08:00
Bär Halberkamp
0c4f648ba6 Make ip-based room punishments show up on /ip 2016-12-30 02:58:03 +01:00
Bär Halberkamp
37205d9b24 Implement /sharedip (#2870)
* Implement /markshared

* Refactor /whois ips to two lines

* Refactor splitTarget
2016-12-25 14:26:17 -08:00
Spandan
36c1e35626 Update /om (#3043)
This one links to the new OM C&C forum.
2016-12-22 23:52:41 +04:00
Spandan
6a1624603e Update /om (#3042)
It should redirect to the Gen 7 OM forums
2016-12-22 01:54:57 +04:00
Ana Rita Torres
8d9b980cb9 Add servertime command (#3038) 2016-12-19 07:53:17 -08:00
Marty-D
3c9d6c2687 Correct crit ratio boosting Z-Effect 2016-12-18 11:06:55 -05:00
urkerab
1f9a6193df Don't match against generation prefix if it wasn't provided (#3020) 2016-12-13 02:21:28 -08:00
panpawn
7b4a482373 Data: Remove unneeded constructor hack check (#3019) 2016-12-11 20:34:55 -08:00
spekss
21d6bd8521 Add /tour banlist in /roomhelp (#3006)
* Add /tour banlist in /roomhelp
2016-12-11 21:24:35 +01:00
panpawn
51c6567975 Standardize using <br /> instead of variations (#3009)
Across PS, in most places we use <br /> - however, in some other places we used <br> and in some <br/>.  This standardizes that to simply be <br />, since that's what we use in the majority of places.
2016-12-11 04:34:07 -05:00
panpawn
7c12efc594 Checkpunishments: Mark truly offline users only (#2995)
The user object could of just not yet expired, but they also might not be online, which is why this is necessary
2016-12-06 12:31:51 -06:00
Charlie Kobayashi
6a7d27e6ac checkpunishment: Fix checking for offline users (#2991)
- It returns nothing in the case the user does not exist in the map
2016-12-05 15:11:55 -06:00
asgdf
2d2c4d1f06 Fix room punishment checking (#2990) 2016-12-05 14:45:10 +01:00
Bär Halberkamp
71b8ee0f87 Don't display "(offline)" for online users in /checkpunishment 2016-12-03 17:55:28 +01:00
panpawn
62760c3836 Rename unclear variable in Chat#toDurationString (#2971)
This renames 'limit' -> 'precision'.
2016-11-30 19:56:19 -06:00
Marty-D
ed86f0bad4 Remove Contest categories from move details
They don't exist anymore.
2016-11-29 22:12:36 -05:00
Bär Halberkamp
8fce8c2633 Refactor /whois and /checkpunishment (#2967)
Also add a Punishment monitor
2016-11-29 19:18:24 -06:00
panpawn
62d6800eff Whois: Add hover room title to battle rooms (#2960)
This will tell a user who the battle is against (if it's a battle room) by hovering over it, kind of like how user-popups work.
2016-11-29 13:13:05 -06:00
Marty-D
1ddf9180b3 Add Z-Move info to /dt 2016-11-24 18:50:43 -05:00