Commit Graph

258 Commits

Author SHA1 Message Date
Ivo Julca
7fd8283600 Introduce requiredItems as an alternative to requiredItem
The list of acceptable items can always be retrieved from `requiredItems`.
2016-11-19 15:44:57 -05:00
Ivo Julca
00ced09ba3 Revert 4aaa3cb 2016-11-19 15:44:56 -05:00
Ivo Julca
4aaa3cb260 Move .templateRequiredItem to array everywhere 2016-11-19 15:23:42 -05:00
The Immortal
f4dc69acbd Gen 5 FormatsData: Only inherit those with events 2016-11-17 23:05:06 +04:00
Marty-D
83acbc578d Add preliminary Gen 7 changes 2016-11-17 11:06:12 -06:00
Marty-D
cd387d1847 Gen V, VI: Update several move descriptions
Also removes a handful of now-unnecessary base power callbacks from Gen
5.
2016-09-25 20:25:02 -04:00
Taylor Everding
1a1f64fe95 Remove .js extension from requires (#2725) 2016-08-30 00:04:40 -05:00
urkerab
51fab2d10f Fix client-side activation of Aromatherapy and Heal Bell for all gens (#2699) 2016-08-17 22:35:35 -04:00
The Immortal
f64388c8e3 BW LC: Ban Scraggy 2016-08-01 19:30:27 +04:00
Marty-D
bed6c187fd Fix Reflect/Light Screen modifier in Doubles+
Source: http://pokemon-trainer.net/bbs/patio.cgi?mode=view&no=702
2016-07-17 11:42:17 -04:00
Marty-D
1527fdbd8f Update some move failure conditions 2016-06-29 14:46:21 -04:00
Marty-D
4f5cdb92a9 Refactor Heal Block to use flags 2016-06-28 17:41:41 -04:00
Marty-D
d8e4fe8486 Display allies and statuses cured by Aromatherapy/Heal Bell
- Except prior to Gen 5
2016-06-22 11:35:10 -04:00
Marty-D
5ec02741ff Fix partial-trapping persistence
- Previously, the user could switch out and come back in during the same
turn and have the effect continue.
2016-06-12 14:52:38 -04:00
The Immortal
d1c510bdd3 Gen 5: Update Random Battle
- Fix Missingno
- Remove no longer needed Spiky-eared Pichu check
2016-05-16 18:12:50 +04:00
The Immortal
73b9155867 Gen 5: Inherit formats-data 2016-05-10 04:48:14 +04:00
The Immortal
7e33b0a855 Update Pokemon data
- Remove unneeded data
- Remove duplicate events
- Add possibly shiny gen 3 events
2016-05-08 21:27:28 +04:00
The Immortal
e8c8632805 Update Darkrai events
- Remove duplicate possibly shiny event
- Add new event
2016-05-08 02:52:37 +04:00
The Immortal
0a5dfd649e Set possible shiny events
This prevents having duplicate events for cases where it’s possible to
obtain both shiny and non-shiny.
2016-05-08 02:29:02 +04:00
The Immortal
778355fc94 Update gen 5 egg events 2016-05-08 01:01:28 +04: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
Marty-D
d0b2d75089 Correct recoil from substitutes in all gens 2016-04-18 16:28:31 -04:00
Ivo Julca
0281176fd1 Remove usage of Array|Object methods implemented by Sugar.js
Adds a dependency to shim Object.values until it's natively available.
2016-03-09 16:55:34 -05:00
The Immortal
f1624cd83e Gen 5 Random Battle: Fix Air Balloon
And moved the speed manipulation to the bottom.
2016-03-08 23:00:11 +04:00
The Immortal
6603f9703a Fix Secret Power interaction with Parental Bond 2016-02-12 20:32:41 +04: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
Guangcong Luo
8a8838552d Improve crashlogger
Crashlogger now supports passing in a dictionary of additional
information to report, so we no longer need to resort to making fake
errors.

The hadException parameter has now been removed entirely. I don't know
of a use case for it to be false.
2016-02-04 03:04:05 -06:00
Marty-D
2465c1d5b2 Add more event IV restrictions 2016-01-30 20:10:49 -05:00
The Immortal
b969cae689 Add support for specific IVs in event Pokemon 2016-01-25 22:05:58 +04:00
Marty-D
f248d191d5 Add shiny Jirachi, Darkrai, and Shaymin events
- Darkrai and Shaymin could be caught in the wild in Gen 4.
- WISHMKR Jirachi has a very small chance to be shiny (but only 9
possible Natures).
2016-01-21 18:56:33 -05:00
Marty-D
4c8ab041ce Fix Protean interaction with Toxic 2016-01-20 21:05:49 -05:00
Marty-D
c980475553 Gen V, VI: Fix Heal Bell's interaction with Soundproof 2016-01-05 15:32:17 -05:00
Guangcong Luo
ef34d9d41c Clarify Gen 5 Defog short description 2016-01-03 19:30:11 -06:00
Marty-D
3fabc949ce Fix Unnerve Mewtwo validation 2016-01-02 10:27:34 -05:00
Konrad Borowski
81f602b8d8 Always use trailing comma for multiline objects 2016-01-01 00:20:07 +01:00
Konrad Borowski
79a5b23f25 Modify data and mods files to follow style rules 2016-01-01 00:18:00 +01:00
Konrad Borowski
b7051bf0c0 Make learnsets and Pokedex more readable 2016-01-01 00:11:49 +01:00
Marty-D
cc447473a0 Allow shiny Manaphy
The one obtained from the Ranger games may be shiny if the egg is
hatched in a game other than the one it was transferred to.
2015-12-30 18:26:06 -05:00
The Immortal
9b1fd7ade9 Gen 5 Random Battle: Fix Plasmanta being allowed 2015-12-18 03:49:04 +04:00
The Immortal
437f99d80e Gen 5: Update Random Battle
Copied the gen 6 script updates, and some of the relevant Random Battle
improvements. Enabled the format for tournaments.
2015-12-18 03:23:30 +04:00
Marty-D
2e83e276ef Fix minimum recoil damage properly
- Recoil damage is always minimum 1
- Gen 5 is the only exception: if the move dealt 0 damage, no recoil
occurs
2015-12-13 23:17:49 -05:00
The Immortal
751ca009d8 Past gens: Add missing flags to Pokemon 2015-12-12 18:41:49 +04:00
The Immortal
fe33d2c4e5 Update past gen data
This utilizes the new `eventOnly` and `eventOnlyHidden` flags.
`unobtainableShiny` is not necessary for event only Pokemon.

This also includes various fixes such as duplicate events and missing
data entries.
2015-12-12 05:09:11 +04:00
Konrad Borowski
133595c70f Fix style issues in mods hidden by ESLint before 2015-12-10 23:14:32 +01:00
Ivo Julca
88c9902ebe Remove unused variables in old-gen random set builders
- Gen 2: `isSetup` is not even assigned a value.
- Gen 5: unmaintained.
2015-12-03 19:55:19 -05:00
Ivo Julca
47918a6d92 Replace remaining instances of var by block bindings 2015-12-03 19:45:35 -05:00
Marty-D
4d2eda1968 Fix Serene Grace's interaction with Secret Power 2015-11-26 11:45:04 -05:00
Ivo Julca
8619ba2022 Turn on strict mode globally for real 2015-11-08 15:38:15 -05:00
Guangcong Luo
ded9f1cd5d Fix duplicate cases in random set generators 2015-11-07 23:12:19 -06:00
Ivo Julca
2c2a3bdf58 Fix misplaced cases in random sets generators 2015-11-07 16:50:51 -05:00