Commit Graph

638 Commits

Author SHA1 Message Date
Marty-D
5cbaefbf71
Gen III-IV: Air Lock / Cloud Nine have no message 2020-11-22 17:38:23 -05:00
Marty-D
8325b6300f
Gen III-IV: Fix Reflect / Light Screen in Doubles 2020-11-21 18:55:28 -05:00
Marty-D
1ed4d58b7e
Gen III: Fix Weather Ball
I realize this isn't actually correct, but at least it's less incorrect for now.
2020-11-20 18:24:29 -05:00
The Immortal
944d27ff55 Gen 2 Random: Prevent crashes with Monotype rule
Gen 2 has types with less than 6 Pokemon. These are fine to be rolled if someone plays this format via custom challenge and shouldn't crash.
2020-11-19 05:00:16 +04:00
The Immortal
6f44c6b4f8 Allow Same Type Clause in gens 3 & 2 Randoms 2020-11-19 02:41:48 +04:00
May Evans
9b8e34bc48
Gen 1: Announce Desync Clause Mod, fix Stadium Sleep Clause (#7702) 2020-11-16 23:52:39 -08:00
Kris Johnson
7877b95e67 Random Battle: Fix typo and remove redundant check 2020-11-16 22:40:48 -07:00
The Immortal
201842c421 Allow Same Type Clause to work in gen 5/4 Random 2020-11-15 16:47:03 +04:00
ACakeWearingAHat
1aafb31a6d
Update Gen 2/Gen 8 Doubles Random Battle (#7693) 2020-11-15 15:02:07 +04:00
May Evans
8c369ee995
Rename "Desync Clause" to "Desync Clause Mod" (#7694)
This was a minor mistake when I was writing this thing up. Since Desync Clause isn't something you replicate in RBY, it is more accurate to describe it as a Mod, in line with the ADV Switch thing.
2020-11-14 19:54:33 -08:00
Guangcong Luo
3336decb79 Implement Desync Clause Mod for Gen 1 Counter 2020-11-15 02:18:37 +00:00
urkerab
ec8cd25d59
Properly update Diamond Storm boosts for Gen 7 (#7638) 2020-11-12 10:27:18 -05:00
May Evans
370da46cb9
Fix Gen 1 Psywave mechanics (#7685) 2020-11-11 18:56:06 -08:00
Marty-D
2d0e06e497 Past Gens: Fix Fury Cutter 2020-11-09 18:10:05 -05:00
ACakeWearingAHat
155cf001f5
Gen 2 Random Battle improvements (#7651) 2020-11-06 17:54:28 +04:00
Guangcong Luo
9b5217ab70
Split up dex-data into more files (#7634)
* Split up dex-data over individual files

This commit introduces:
- `dex-abilities.ts`
- `dex-conditions.ts`
- `dex-formats.ts`
- `dex-items.ts`
- `dex-moves.ts`
- `dex-species.ts`

These files centralize definitions from `dex-data` and `global-types`.

* Inherit ItemData from Item etc

Previously, Condition inherited from ConditionData. Now, ConditionData
inherits from Condition. The advantage of the new approach is that now,
Condition and DataCondition no longer need to be separate types, and
there should be much less duplication of type definitions in general.

This has also been done for

- ItemData/Item/DataItem
- AbilityData/Ability/DataAbility
- FormatData/Format/DataFormat

Species and DataSpecies was already merged, but this also reverses
their inheritance (saving a lot of duplicated definitions in the
process!)

The only one left is MoveData, which is just super complicated and
will need its own commit.
2020-11-05 05:00:13 -08:00
The Immortal
2bc4a51a50 Random Battle improvements 2020-11-03 19:43:57 +04:00
Leonard Craft III
920af21aac
Abilities: Add isPermanent flag (#7614) 2020-11-03 10:31:11 -05:00
The Immortal
c15663508b Gen 2 Random: Fix typo 2020-11-02 02:40:34 +04:00
The Immortal
a36bda12e7 Gen 2 Random: Fix Rest + Sleep Talk 2020-11-02 02:29:01 +04:00
Kris Johnson
2db0a1fdb2 Mark other Genesect formes as unreleased in DLC1 2020-11-01 15:25:53 -07:00
ACakeWearingAHat
3037781e1d
Revamp Gen 2 Random Battle (#7610) 2020-11-02 01:13:11 +04:00
Kris Johnson
ba4c9d7a2a
Add November's OMotM, LCotM and RoA Spotlight (#7615) 2020-11-01 15:36:24 +04:00
Mia
d625976216
Rulesets: Fix crash in CCAPM2 (#7582) 2020-10-26 22:33:08 +04:00
urkerab
ff0ca077b6
Update Lunar Dance to Gen 8 mechanics (#7576) 2020-10-26 19:39:39 +04:00
May Evans
e102416793
Ban Japanese Gen 1 Events in Int Formats: Part 2 (#7581)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2020-10-26 06:00:35 -07:00
The Immortal
f1d82ee1e0 Add gift Toxel event data 2020-10-26 06:15:51 +04:00
urkerab
b90f03b77e
Calculate natures with 16-bit truncation (#7540)
Also fixes Let's Go! which wanted to override these but couldn't.
2020-10-25 16:54:43 -07:00
The Immortal
a832a0f4c5 Add event Porygon 2020-10-25 01:27:45 +04:00
The Immortal
58e8e4203d Micle Berry is obtainable 2020-10-25 01:15:36 +04:00
Kris Johnson
a1058ac29c
Convert VGC 2020's mod to a pre-DLC2 mod (#7564) 2020-10-24 06:00:29 +04:00
The Immortal
5b83c5b15e Update learnsets
Added legendary dynamax events.
Removed multiple level up entries.
Copy corrections to VGC20 mod.
2020-10-24 05:47:51 +04:00
The Immortal
ada31d73b6 Soul Dew is available 2020-10-24 03:45:42 +04:00
The Immortal
24afc0f57e Show Genesect forme in Team Preview 2020-10-23 20:51:16 +04:00
The Immortal
8d7b72c606 Release the berries 2020-10-23 19:41:40 +04:00
The Immortal
b4f3c98630 Update obtainable items
Haven't seen confirmation of Soul Dew yet.
2020-10-23 18:52:15 +04:00
Kris Johnson
41ed00002f
Fix oversights from adding Crown Tundra DLC (#7559) 2020-10-23 07:45:12 +04:00
The Immortal
ed347748d5 Missed this file in 42e918a78 2020-10-23 06:50:14 +04:00
The Immortal
42e918a781 Add VGC 2020 mod 2020-10-23 06:47:00 +04:00
The Immortal
cf3405210f Gen 7: Random Battle updates 2020-10-21 22:15:12 +04:00
Guangcong Luo
a55d3cd530 Fix crashes from using moves with no target
Specifically, if you target your ally and your ally uses Ally Switch
(causing you to target yourself), certain moves (including Thunder,
Hurricane, and SSA) crash. This has been fixed.
2020-10-19 18:10:25 +01:00
Guangcong Luo
9d87616176
Add more style linting rules (#7537)
* Lint arrow-body-style

* Lint prefer-object-spread

Object spread is faster _and_ more readable.

This also fixes a few unnecessary object clones.

* Enable no-parameter-properties

This isn't currently used, but this makes clear that it shouldn't be.

* Refactor more Promises to async/await

* Remove unnecessary code from getDataMoveHTML etc

* Lint prefer-string-starts-ends-with

* Stop using no-undef

According to the typescript-eslint FAQ, this is redundant with
TypeScript, and they're not wrong. This will save us from needing to
specify globals in two different places which will be nice.
2020-10-19 02:42:28 -07:00
May Evans
0ee6e5f3ce
Fix Stadium Struggle vs Ghost-types (#7527)
Struggle should deal neutral damage to Ghost-types in Stad1 exclusively. I'm not exactly a "programmer", but if I can help fix this sim improve then that's good enough for me.

Source: https://www.smogon.com/forums/threads/stadium-format-is-now-available-on-ps.3526616/post-8517229

Thanks to Kris for helping me figure out what to do, it means a lot.
2020-10-19 00:59:34 -07:00
Kris Johnson
6699a57f4d
Fix spread move mechanics in ADV Doubles (#7523) 2020-10-16 11:22:48 -04:00
The Immortal
845b8f1458
Gen 1 Random: Give Magikarp Splash 2020-10-16 10:27:30 +04:00
May Evans
049ccaf368
Remove illegal moves from RBY Random Battles (#7528)
This removes Harden from Kakuna and Dragon Rage from Magikarp.

Harden is incompatible with Poison Sting and String Shot, as Kakuna doesn't learn it upon evolving like Metapod. 
https://www.smogon.com/forums/threads/random-battles.3526564/post-8577809

Magikarp only gets Dragon Rage via a Japanese event, and since international RBY mechanics are used, it's impossible for this to be used. 

As far as I know, these are the only incompatibilities.
2020-10-16 04:53:36 +04:00
The Immortal
84e0aeb8d1 Gen 7: Random Battle updates 2020-10-14 04:21:44 +04:00
Kris Johnson
4ea47cb308
Gen 4: Move Arceus to AG (#7511) 2020-10-12 03:01:50 +04:00
PartMan
52f67edd0d
Fix typo (#7491)
Obligatory Hacktoberfest typofix.
2020-10-07 23:36:16 -07:00
Kris Johnson
84f37bed2c
ViAbilities: Fix Vespiquen's moves 2020-10-03 20:26:36 -06:00