Commit Graph

23714 Commits

Author SHA1 Message Date
HoeenHero
851058398b Gen 3 randbats: minor changes (#3831) 2017-07-25 19:51:22 +04:00
Guangcong Luo
0e792dad80 Update default gen for formats to gen 7 2017-07-25 03:37:55 -04:00
Guangcong Luo
eb6fe5ce41 Improve tests 2017-07-25 03:25:25 -04:00
Guangcong Luo
6e7aa9c8dd Remove mock-fs-require-fix from dependencies 2017-07-25 03:01:15 -04:00
Guangcong Luo
4cdf39f13c Remove prototype hack for Battle
Simulator instances still get their scripts included somewhat hackily,
but it's overall much less hacky than before. In particular, the
init code is now an actual constructor, allowing TypeScript to perhaps
validate it one future day.
2017-07-25 02:59:59 -04:00
Guangcong Luo
0ba508bbd3 Support ./pokemon-showdown generate-team
I might regret supporting this syntax, but it's now possible to make
PS generate teams on the commandline using:

./pokemon-showdown generate-team [optional format name] [optional seed]

The output will be in packed team format (which can be pasted into
a teambuilder import box).

The seed-passing should make it significantly more straightforward to
debug team generation weirdness.
2017-07-25 02:59:59 -04:00
Guangcong Luo
3b4d8b3ff0 Split random-teams.js out of scripts.js
Random team generation scripts are no longer in scripts.js, but instead
in a new file random-teams.js.

The scripts are now also no longer run from inside battles, but in a
new team generator object. This makes it easier for external scripts
to generate random teams by running Dex.generateTeam(format).
2017-07-25 02:59:59 -04:00
asgdf
e9e66afa0c Fix priority shorthand parameter in movesearch (#3828)
'priority+' now includes priority +1, and 'priority-' includes -1
2017-07-24 15:33:27 -07:00
The Immortal
e775bd909a Remove OU Theorymon 2017-07-25 01:07:25 +04:00
HoeenHero
a264c4f955 Revert a9e28b0 (#3830) 2017-07-24 15:21:47 -04:00
Konrad Borowski
b91c3cff90 Make battle rule clauses work recursively
This is an ugly fix, there is likely a better one, but this fixes
a problem with clauses like Species Clause not working.
2017-07-24 20:27:11 +02:00
Insist
9422859161 Gen 7 Doubles OU: Add Swagger Clause (#3827) 2017-07-24 19:55:33 +04:00
The Immortal
a9e28b0f45 Fix formats
d79e348 prevents the Pokemon ruleset from being inherited.
2017-07-24 18:38:40 +04:00
HoeenHero
11b93ec467 Alola Pokedex rule: Dont reject alola formes (#3826) 2017-07-24 18:35:23 +04:00
n10sit
268fd70bc7 Random Doubles: Movepool updates (#3744) 2017-07-24 17:39:28 +04:00
The Immortal
d36ba3bf36 Random Battle: Shuffle Pokemon 2017-07-24 17:20:51 +04:00
The Immortal
51bffce3cd Add 1v1 suspect test 2017-07-24 17:03:47 +04:00
Charlie Kobayashi
8a70763a76 UNO: make uno less subtle, allow player to uno before next player plays. (#3822) 2017-07-23 22:24:28 -07:00
Guangcong Luo
a86762e4ea Fix in-battle clauses 2017-07-23 22:20:42 -07:00
Guangcong Luo
f38de6d775 Remove padStart shim
The padStart shim is currently unused and commented out. If we ever do
need it, we should increase the minimum Node version to 8.0.
2017-07-23 22:17:07 -07:00
Insist
83e89672a0 Add CAP LC and NFE to the Allow CAP clause (#3823) 2017-07-23 19:40:13 -04:00
Insist
b661ed9c90 Add "CAP NFE's" (#3821)
Turns out there is indeed some of these that are not LC but indeed CAP NFE's so I will make this a rank to clarify the difference and will make a PR on the client in tandem shortly
2017-07-23 13:48:56 -07:00
The Immortal
06fa24cf2e Update Almost Any Ability 2017-07-23 14:57:08 +04:00
Honko
39fcae7b18 Gen 4 Random Battle improvements (#3806) 2017-07-23 07:19:28 +04:00
panpawn
225e5c6ae4 Users: Add lastCommand to constructor (#3818)
This is used in several parts of the sim where commands carryout potentially dangerous actions.  For this reason, it should be apart of a user's constructor.
2017-07-22 19:16:31 -07:00
panpawn
f724b355f4 Modlog: Enable command in private messages (#3817)
When dealing with reports, especially when in single panel mode, this can be useful
2017-07-22 14:00:44 -07:00
Spandan Punwatkar
597416d3b2 Move /othermetas to othermetas.js (#3812) 2017-07-21 11:36:17 -05:00
Insist
445c2f65d7 Make CAP LC CAPmons show as CAP LC (#3813) 2017-07-21 11:13:44 -05:00
Marty-D
1f983407e4 Release Aggronite 2017-07-21 08:29:53 -04:00
sahil agarwal
7f03cb0165 Fix spelling in mods/gen1/README.md (#3810) 2017-07-21 01:25:45 -05:00
Charlie Kobayashi
542ae1507d Remove lastCommand check after the command goes through (#3808) 2017-07-21 01:10:41 -05:00
Guangcong Luo
a2e907ef43 Remove stray test code 2017-07-21 01:09:25 -05:00
Guangcong Luo
5faccd045a Rephrase CONTRIBUTING.md 2017-07-21 00:30:24 -05:00
Guangcong Luo
04f10a5550 Add help for /bash
Fixes #3809
2017-07-21 00:30:23 -05:00
Guangcong Luo
6c1a60df2e Fix limit rules in ruleTable team validation 2017-07-20 19:35:02 -05:00
Guangcong Luo
1856bb1ff9 Fix Config.pmmodchat to allow PMing auth 2017-07-20 18:22:06 -04:00
panpawn
24e2bff47d Add !code: a multi-line code broadcasting command (#3802) 2017-07-20 17:10:05 -05:00
Charlie Kobayashi
4b10453f02 Roomevents: Split 'add' into 'add' and 'edit' (#3804) 2017-07-20 17:00:55 -05:00
Guangcong Luo
2b1d7b2cc3 Properly fix crash in /learn 2017-07-20 16:33:40 -05:00
Guangcong Luo
155d8ee314 Fix crash in Validator 2017-07-20 13:13:28 -05:00
Guangcong Luo
6c40884426 Make modlog non-modal 2017-07-20 12:50:41 -05:00
Guangcong Luo
d79e348ebc Refactor banlistTable -> ruleTable
PS's rule table has been renamed from banlistTable, and works a bit
differently now. It's a Map instead of an object now, and the keys
work a bit differently.

The original banlistTable was designed to store bans, and later
additions shoved rules and then unbans in there. The new table is
designed to support all of these.
2017-07-20 12:50:41 -05:00
HoeenHero
341648c8ea Modlog: Use a popup for no results (#3807) 2017-07-20 11:22:03 -05:00
Charlie Kobayashi
d20ec7e322 Scavengers: fix/enhance queue, hunt ending, status box (#3805) 2017-07-19 23:45:13 -05:00
panpawn
022a86a3c5 Punishments#checkLockExpiration: Don't show 0 days (#3707)
If there were less than 12 hours left on a lock, it would display as (expires in around 0 days).

If there are 12 hours or less left on a lock, this will instead display the number of hours remaining rounded
2017-07-19 20:36:06 -05:00
HoeenHero
ee0e086c0e Dont use Dex in mods (#3803) 2017-07-19 16:58:18 -05:00
The Immortal
ae5b135dbe Update BH bans 2017-07-19 04:41:23 +04:00
The Immortal
e489e7af79 Add UU suspect test 2017-07-19 04:38:38 +04:00
HoeenHero
48c7e9e05a Timer: log messages to the chat (#3800) 2017-07-18 10:30:19 -05:00
LegoFigure11
532c869125 Battle Spot Special 5 requires pentagon (#3801)
As per this post: https://www.smogon.com/forums/threads/3608900/#post-7435126
2017-07-18 09:42:05 -05:00