Commit Graph

681 Commits

Author SHA1 Message Date
urkerab
5d714fbb56
Replace @ts-ignore with type assertions or other less unsafe constructs (#7390) 2020-09-19 02:07:48 -07:00
ACakeWearingAHat
e3b9b95283
Random Battles updates (#7358) 2020-09-14 01:29:48 +04:00
Marty-D
35033203e8 CAP: Update Equilibra line's Abilities 2020-09-13 12:56:47 -04:00
urkerab
bcc6fddff5
Remove duplicate fail message from Encore (#7339) 2020-09-09 04:32:28 +04:00
Strahm, Jeffrey S.(S&T-Student)
188426490b Rename FormatsData to FormatData
(The name FormatsData is inconsistent with how we name other things;
especially since it's supposed to be data for a single format. It was
probably originally a typo. -Zarel)
2020-09-07 19:35:14 -07:00
urkerab
1bf873018c
Remove outdated getAwakeningValues function (#7331) 2020-09-07 17:00:53 -07:00
Instruct
c5b6622bc6
SSB: Remove Ashe (#7332) 2020-09-07 16:59:59 -07:00
Kris Johnson
43ec001996
CAP: Nerf Equilibra (#7328) 2020-09-06 22:15:05 -07:00
Guangcong Luo
ea8f52ce97
Move descriptions to data/text/ files (#7036)
This adds some new `data/text/` files, which are the new home for
item/move/ability descriptions, as well as in-game messages, in one
place for ease of translation.
2020-09-06 22:00:11 -07:00
Kris Johnson
8656d633ac
Format volatiles consistently (#7314) 2020-09-05 08:12:24 -07:00
Kris Johnson
c5d68ce16c
Megamax: Add newest updates (#7313)
https://www.smogon.com/forums/threads/megamax-pet-mod-of-the-season-ladder-tour-post-408.3658623/page-16#post-8571322
2020-09-04 21:44:42 -04:00
Kris Johnson
fb36d5275d
Remove Gen 7 Mix and Mega (#7298) 2020-09-03 01:15:59 +04:00
The Immortal
d25ec1cbca BF/CAP 1v1: Move sets loading outside constructor 2020-09-02 15:44:34 +04:00
The Immortal
78d85c6790 Gen 3: Fix Lightning Rod rating 2020-09-02 12:43:12 +04:00
Marty-D
edcbf6a483 Gens 4-6 OU: Put consistently low usage Pokemon in OU by technicality
https://www.smogon.com/forums/posts/8525878/
2020-08-29 10:41:55 -04:00
Kris Johnson
324ad0425a
Fix various GSC/ADV mechanics (#7247) 2020-08-22 01:29:41 -07:00
Kris Johnson
5e255012bc
Add a 'bst' property to Species (#7138) 2020-08-12 12:06:09 -07:00
Kris Johnson
03326bf0a0
Fix crash caused by missed instance of toID (#7193) 2020-08-10 00:18:19 -07:00
Mia
deeed6c789
Remove sim/ and data/'s globals (#7091) 2020-08-07 06:44:15 -07:00
Kris Johnson
5fb36bcc62
SSB: Remove Flare (#7170) 2020-08-07 12:36:12 +04:00
Leonard Craft III
9e82f05ebb
Gen 3-4: Fix Camouflage to change to Normal-type (#7130) 2020-08-06 14:54:57 -04:00
Kris Johnson
f96ec4fb05
Add strict types to tiers (#7135) 2020-08-06 00:41:42 -07:00
Kris Johnson
9952709171
Add some QoL improvements for Pet Mods (#7118) 2020-08-01 23:20:26 -07:00
The Immortal
1360f7d06d Random Battle updates 2020-08-01 17:31:16 +04:00
Kris Johnson
274e5ef267
Add August OM and RoA Spotlight ladders (#7111) 2020-08-01 16:46:04 +04:00
Leonard Craft III
95243cdb00
Don't leak target of two-turn charge moves (#7104) 2020-07-31 17:55:28 -07:00
Marty-D
7e33b3647a
Gen I: Fix Sludge poison chance 2020-07-31 20:07:18 -04:00
Annika
05a9f9a1e5
Minor code quality improvements based on LGTM (#7092) 2020-07-30 14:24:37 -07:00
Kris Johnson
70edfaa64c
Add support for more OMs (#7084) 2020-07-30 05:22:21 +04:00
Guangcong Luo
4d09f7acde Rename more instances of Effect to Condition 2020-07-26 11:26:23 -07:00
Guangcong Luo
2f805c93a2
Remove "Battle" prefix from data exports (#7039)
`BattlePokedex` is now `Pokedex`, `BattleItems` is now `Items`, etc.

I also renamed `Movedex` to `Moves` and `Statuses` to `Conditions`.

`TypeChart` isn't `Types` yet, because unlike the others, it's not
indexed by ID. That should probably be fixed one day.
2020-07-24 12:42:26 -07:00
The Immortal
e4e375b19b Random Battle updates 2020-07-24 17:41:05 +04:00
Kris Johnson
00b88b521d
Handle Gigantamaxing properly (#7001) 2020-07-23 13:27:42 -07:00
Marty-D
10e4ecdc84 Clean up event priorities 2020-07-21 10:43:12 -04:00
PartMan
356c06593b
Update Damp (#7025) 2020-07-20 09:58:49 -04:00
The Immortal
10bf212816 Battle Factory: Fix Raikou 2020-07-20 13:54:33 +04:00
Kris Johnson
d54985c70f
Optimons: Add new optimizations (#7022) 2020-07-20 13:36:28 +04:00
The Immortal
5e250e7e86 Gen 6: Update Random Battle 2020-07-19 18:43:14 +04:00
The Immortal
4d22a0f87e Move Magikarp's Revenge to NEXT mod 2020-07-19 15:00:40 +04:00
Marty-D
cad644bd84
Gen I: Add Counter short description 2020-07-17 14:00:33 -04:00
Guangcong Luo
e14c327f4e
Fix typo in SSB set 2020-07-16 05:14:07 -07:00
Kris Johnson
1a92b731a0
Pet Mods: Add new buffs/QoL improvements (#7002) 2020-07-13 21:09:12 -07:00
Kris Johnson
028797257c
Add SM Mix and Mega (#6997) 2020-07-13 15:03:35 +04:00
Slayer95
0afd86221b
Linked: Fix priority of linked moves (#6990)
Second move in a chain ignores Gen 8 dynamic turn-order mechanic.
2020-07-09 23:17:28 -07:00
Kris Johnson
255cd33635
Fix Megamax and NatDex BH (#6977) 2020-07-07 15:33:48 -07:00
Annika
2037764dd4
Porygon doesn't learn Defense Curl in Gen 2 (#6976) 2020-07-07 17:25:07 -04:00
Kris Johnson
4703cb76f3
Megamax: Add Hone Claws to Grimmsnarl (#6969)
https://www.smogon.com/forums/threads/megamax-pet-mod-of-the-season.3658623/page-11#post-8525900
2020-07-06 17:15:26 -07:00
Kris Johnson
947a055e47
Megamax: Add new nerfs (#6963)
https://www.smogon.com/forums/threads/megamax-pet-mod-of-the-season.3658623/page-11#post-8528007
2020-07-06 02:36:56 +04:00
The Immortal
b2387ad20d Gen 3: Random Battle updates 2020-07-05 19:34:41 +04:00
Kris Johnson
6e05586846
Add the other Pet Mod formats (#6960) 2020-07-04 21:10:41 -07:00
The Immortal
45329dd44c Gen 3: Random Battle updates 2020-07-03 14:30:12 +04:00
Kris Johnson
bf21d8fd0a
Add new Pet Mod of the Season (#6939) 2020-07-02 14:37:20 +04:00
Guangcong Luo
8fd572f1f6 Refactor BattleQueue to wrap Array
The old decision to make it extend Array was wrong, as clearly
illustrated by the problems with slice/splice.
2020-07-01 16:37:36 -07:00
Kris Johnson
f126b5aa6f
Fix typo (#6937) 2020-07-01 15:27:18 +04:00
Kris Johnson
7010e0286f
Add OMotM and RoA Spotlight for July 2020 (#6936) 2020-07-01 12:59:10 +04:00
urkerab
17e4cb49a4
Adjust fractional priority for latest research (#6928) 2020-06-29 12:09:10 -07:00
urkerab
f69ebf4f77
Fix Gen 3 Metal Coat's description (#6919) 2020-06-26 04:52:42 -07:00
Kris Johnson
06971ebdd9
RBY: Move Clefairy to NFE (#6904)
Clefairy isn't available at or below level 5 from RBY or from trading back from GSC
2020-06-23 01:25:42 +04:00
The Immortal
fb2ac9502a Random Battle updates 2020-06-22 15:24:43 +04:00
The Immortal
6ef15d4a9b Fix Adrenaline Orb 2020-06-19 16:52:56 +04:00
The Immortal
8817ca88c7 Move unreleasedHidden and maleOnlyHidden to Pokedex 2020-06-18 17:44:44 +04:00
ACakeWearingAHat
e72b3ae165
Gen 7 Random Doubles Battle Updates (#6810) 2020-06-18 16:33:41 +04:00
Kris Johnson
4a80a56193
Update evolution methods (#6851) 2020-06-17 15:53:47 -07:00
The Immortal
f37d7471c3 Random Battle: Set improvements 2020-06-17 22:09:03 +04:00
The Immortal
472688ef33 Update moves usable in Sw/Sh 2020-06-17 18:45:20 +04:00
Enigami
21685eb661
Fix various Stadium issues (#6838) 2020-06-16 14:27:09 -07:00
Mia
6839a1f4db
Add a library for utility functions (#6817) 2020-06-09 22:06:43 -07:00
DeltaCoderr
f447333bdd
SSB: Batch Update (#6797) 2020-06-07 12:12:18 -07:00
The Immortal
0199852386 Gen 3: Random Battle improvements 2020-06-04 16:57:55 +04:00
The Immortal
f9791abba9 Random Battles: Fix cosmetic formes 2020-06-04 03:06:07 +04:00
ACakeWearingAHat
f797cdd98b
Update Gen 5 Random Battle (#6773) 2020-06-04 02:57:35 +04:00
Kris Johnson
73a84a43ec
Fix remaining learnsets inconsistencies (#6795) 2020-06-02 21:31:48 -07:00
Kris Johnson
960721aef6
Fix Mandibuzz's Gen 5 tier (#6785) 2020-06-01 22:21:34 -07:00
SSlayer9
7f3b464bc2
Update Heal Bell interaction with Soundproof (#6771) 2020-05-30 16:04:57 -04:00
The Immortal
d8364dc952 Gen 3: Random Battle updates 2020-05-28 02:08:28 +04:00
Marty-D
324a5bfa1a Gen III-IV: Fix Abilities' interaction with 0 damage
Thanks BKC for pointing out Rough Skin
2020-05-23 11:52:52 -04:00
PartMan
775f1e4945
Update Howl flags (#6727) 2020-05-22 14:49:10 -04:00
The Immortal
f8ecce8096 Gen 3: Random Battle improvements 2020-05-21 22:45:38 +04:00
Nol
fecb2f3cb8
SSB: Batch Update (#6594)
* SSB: Name change Salamander to Instruct

* Promote Kipkluif and Psynergy to Driver

* Demote xfix to voice

* Demote Pluviometer to voice
2020-05-20 12:39:32 -07:00
Leonard Craft III
3496491d4f
Fix Farfetch'd / Sirfetch'd with new apostrophe (#6721)
Also fixes Stick's behavior
2020-05-19 21:56:35 -07:00
Konrad Borowski
b0f0cb28a8
Gen I: Add HP hint for Rest (#6701) 2020-05-16 08:34:22 -07:00
The Immortal
0e80285a5e Gen 3 Random Battle: More improvements 2020-05-16 08:13:27 +04:00
Marty-D
6311dd7f0b Fix Binding Band implementation 2020-05-15 16:20:59 -04:00
Marty-D
31ed3f33ec
Gen VII: Fix Skill Swap description 2020-05-15 11:33:39 -04:00
The Immortal
0227db4ba4 Gen 3: Random Battle fixes 2020-05-15 01:12:20 +04:00
Marty-D
c8c048a645 Update Curse targeting 2020-05-14 13:23:37 -04:00
The Immortal
8be031bb6d Gen 3 Random Battle: Overhaul set generation 2020-05-14 07:58:36 +04:00
The Immortal
1810c8e7b7 Random Battle: Improve Toxicroak 2020-05-14 07:51:35 +04:00
The Immortal
073672962c Gen 3: Update random battle moves
This is the first part of the gen 3 random battle overhaul. A complete rewrite of the set generator will follow.
2020-05-12 07:44:47 +04:00
Kirk Scheibelhut
fa65ed4979
Add alt form index data to dex (#6669)
AltForm index info obtained from kwsch/PKHeX's FormConverter.cs (thanks Kurt).
Thanks to @Lusamine (Anubis) for help with the peculiarities.
2020-05-10 12:20:40 -07:00
Guangcong Luo
3a1fe75b13 Remove isViable from moves
It's a judgment call that doesn't belong among the other factual
information in `moves.ts`.

The information is still around; in the client's `battle-dex-search.ts`
in `BattleMoveSearch#moveIsNotUseless`. But now it's all in one place.

fb18721e82
2020-05-08 19:25:51 -07:00
Guangcong Luo
79091f6362 SSB: Fix Next Level Strats
Fixes #6663
2020-05-08 18:06:49 -07:00
Marty-D
1bc6ed4bf4
Gen IV: Fix Griseous Orb interaction with Ability manipulation
Thanks Snackhound!
2020-05-07 16:27:49 -04:00
AnnikaCodes
a46d0a9844
Update move descriptions to account for Teleport's Gen 8 behavior (#6660) 2020-05-07 14:24:24 -04:00
Marty-D
339f516a2b Gen II: Fix residual damage when opponent is KOed 2020-05-06 15:41:18 -04:00
fart
8efbbda576
Fix Glitch Out bug (#6656) 2020-05-05 18:49:19 -07:00
fart
fa9775bcf9
Fix Glitzer Popping bug (#6655) 2020-05-05 16:16:00 -07:00
Kirk Scheibelhut
2af7040270
Group zMove and maxMove attributes (#6652)
This mostly serves to provide cleaner and more consistent field
naming. maxMove currently doesn't have boosts or effects to group
together but who knows what will be thrown at us via DLC, and being
symmetrical with zMoves is a nice.
2020-05-04 20:21:27 -07:00
Leonard Craft III
04e40f0864
Update Struggle's Gen 4 description (#6651) 2020-05-03 17:35:12 -07:00
The Immortal
fc62da963a Random Battle: Adjust Pokemon rates 2020-05-03 02:31:15 +04:00
Guangcong Luo
6c1992b067 Fix Metronome blacklists 2020-05-02 00:16:55 -07:00
Guangcong Luo
23b59de881 Fix Metronome 2020-05-01 13:22:16 -07:00
The Immortal
6d2aa411ed Gen 7: Fix formatting inside randomSet 2020-05-01 09:08:59 +04:00
Guangcong Luo
e0f6453b60 Refactor data definitions
- `Modded[Effect]Data` are now correctly defined: they must either have
  `inherit: true` and be partial, or not have `inherit: true` and be a
	complete `[Effect]Data` entry

- `id` is no longer allowed; instead, it's calculated directly from
  `toID(name)`. The one exception, Hidden Power, gets a `realMove`
	property to track this (it's still used to set `.id`, though;
	TODO: really fix it properly).

- `num` is still required in `data/pokedex.ts` (dex number),
  `data/moves.ts` (move index number, for Metronome), and
	`data/items.ts` (minisprite sprite-sheet location). It's still not
	required for mod-only items and moves.

- `num` is no longer allowed for PureEffects (in `statuses.ts`) where
  it's always been meaningless.

- `color` and `heightm`, being completely flavor, are still not
  required for `pokedex.ts` in mods. They're still required in the base
	pokedex.
2020-04-30 21:39:29 -07:00
The Immortal
9bb97f0228 Random Battle: Update forme generation 2020-05-01 08:18:29 +04:00
Guangcong Luo
826e544b65 Refactor random set generation
The whole `checkBattleForme` system, introduced in 4410843e5a
and currently used in Gen 6 and 7, seems to have always been bugged.

As TI mentions in #5970, we already use `getPokemonPool` for alternate
forme handling.

I've replaced it with a roll for cosmetic formes.
2020-04-30 17:52:04 -07:00
Marty-D
294a44b943 Gen II: Don't check for secondary effects if the target fainted
This includes self-boost secondaries like Metal Claw.

Thanks again, UPC!
2020-04-30 13:33:21 -04:00
Kirk Scheibelhut
4afdd7b947 Fix otherFormes capitalization in gen7/pokedex.ts 2020-04-29 23:31:45 -07:00
Kirk Scheibelhut
edddcb5c38
Correct Self-Destruct and Explosion base power (#6630)
As confirmed by SadisticMystic, base power cannot be above 255, so
this move data is clearly incorrect and results in downstream users
of the data files such as the Smogon or PS dex or the tooltips
displaying misleading information.
2020-04-29 14:59:59 -07:00
Kris Johnson
8b9f24e8c1
Remove redundant code from mods/gen1/pokedex.ts (#6629) 2020-04-28 22:17:07 -07:00
Guangcong Luo
800d8bd8f3 Remove Dex.getForme etc
The server now uses the same approach as the client of treating
cosmetic formes as real formes, as documented in `FORMES.md`.

This eliminates the need for the `.forme` and `.speciesid` properties
of `Pokemon`.

`pokemon.id` has also been removed: useful, since it turns out half
of its uses were bugs that should have used `pokemon.species.id`.
2020-04-28 17:38:54 -07:00
Guangcong Luo
42f949a0ed Remove egg group info from Gen 1 Pokédex 2020-04-28 16:25:35 -07:00
Guangcong Luo
bfe651bd12 Fix Gen 1 gender
It was apparently broken by the TypeScript refactor.
2020-04-26 17:52:06 -07:00
Kris Johnson
f7053eb7cd
Update Defog's description (#6624) 2020-04-26 16:27:43 -07:00
Guangcong Luo
c5faebd739 Remove extraneous properties from BasicEffect
BasicEffect always had a `status` property to support the pattern of
testing it to see if it's a move that sets status directly.

This is just a situation that TypeScript is bad at.

Another possibility would be to set `status: undefined` on PureEffect,
Ability, Item, and Species, but I think that's also ugly. Casting to
Move is probably the best approach, so that's what we do now.
2020-04-25 12:57:46 -07:00
Guangcong Luo
549ef7edb1 Fix MoveData interface definition
For historical reasons, move property definitions have been very blurry
across `EffectData`. Fortunately, recent refactors have made it
possible to put them all where they're supposed to be.
2020-04-25 12:57:46 -07:00
Kirk Scheibelhut
66e4bac94c
Give Struggle 10 PP in Gen 1 (#6609) 2020-04-25 09:53:58 -04:00
Guangcong Luo
31a81a91a2 Fix @type in .ts files
Some JSDoc type assertions failed to get converted during various .ts
refactors. This commit takes care of them.
2020-04-24 14:19:08 -07:00
Marty-D
e03d6e9020
Gen III: Remove obsolete code 2020-04-24 15:03:04 -04:00
Guangcong Luo
5d63b16d4d Fix botched merge in data/.ts refactor
The data/.ts refactor left a few .js files in, which weren't deleted
between 13 and 3 days ago:

c85f5bccb0

Because of this, the corresponding `.ts` files were considered new,
rather than renamed, and changes to the `.js` files got deleted rather
than merged.

Fortunately, this only affected `moves.js`, which has now been manually
re-merged with the changes.
2020-04-23 11:22:21 -07:00
Kris Johnson
28bf388b98
Typescript data (#6553) 2020-04-23 09:16:09 -07:00
Marty-D
4997963c8b Gen I & Stadium: Fix accuracy calculations 2020-04-19 15:02:04 -04:00
Nol
a3b8db05f7
SSB: Update several ranks (#6556) 2020-04-18 22:03:42 -07:00
Marty-D
d9d345d8df Correct power modifier priorities
Thanks @dawoblefet!
2020-04-18 20:33:13 -04:00
scoopapa
c32997cb51
Roulettemons: Update movepools (#6551) 2020-04-16 04:36:40 -07:00
Guangcong Luo
6884c7ee81 Remove unnecessarily quoted keys in data/
(By pulling this out from the rest of the TypeScript refactor, this
should make the diffs for the TypeScript refactor more readable.)
2020-04-16 01:32:18 -07:00
fart
9fda11310a
Fix activeMoveActions bug (#6570)
Bar Fight is supposed to act like Fake Out and only work on turn 1. This line added in this PR was missing from the runMove function, so Bar Fight and Fake Out were usable past turn 1.
2020-04-12 22:28:39 -07:00
The Immortal
af353fa46f Update BW LC 2020-04-12 17:16:12 +04:00
Kirk Scheibelhut
ca69c8e6e3
Fix Minior-Meteor forme not being allowed in Gen 7 (#6563) 2020-04-12 16:25:13 +04:00
The Immortal
c60df55907 Gen 6 Randoms: Fix Trick Pokemon
And remove outdated priority rejection.
2020-04-12 00:07:51 +04:00
The Immortal
b99c238b20 Gen 5 Randoms: Fix Medicham 2020-04-12 00:05:07 +04:00
The Immortal
5202df1921 Gen 5 Randoms: Fix NFE level 2020-04-11 10:20:00 +04:00
HoeenHero
3458bdd454 Gen 5: Normal Gem should inherit from base data. 2020-04-10 22:15:16 -04:00
The Immortal
e6682bfb07 Gen 5 Randoms: Fix Mandibuzz 2020-04-11 03:05:06 +04:00
scoopapa
86d8495522
Roulettemons move legality and update cont'd (#6540) 2020-04-09 11:46:15 -07:00
urkerab
d32aa6f8d6
Properly override onFractionalPriority in past gens (#6542) 2020-04-08 15:31:39 -07:00
scoopapa
5ba6b3ee2d
Add Roulettemons final pokemon (#6539) 2020-04-08 10:48:01 -07:00
The Immortal
8a38da0023 Delete Clean State Micro mod 2020-04-08 07:24:11 +04:00
charizard8888
d759fb1b0d
Add new PMOTS: Roulettemons (#6508) 2020-04-08 07:22:57 +04:00
Guangcong Luo
5abdb88e55 Refactor EventListener
Renames:
- .status -> .effect
- .statusData -> .state
- .thing -> .effectHolder

`thing` was always a really weird "I don't know what to call this"
variable name, but it's been renamed `effectHolder`, which should be
much clearer. `status` -> `effect` is I think the last remnant of old
PS code which called all effects "statuses". `statusData` -> `state`,
on the other hand, is the very first step in an initiative to calling
less things "data".
2020-04-07 17:05:19 -07:00
The Immortal
90b1597548 Gen 5/6 Randoms: Update levels 2020-04-08 02:06:37 +04:00
Leonard Craft III
dd566f3eeb
Ban Hidden Abilities unreleased in VGC17 (#6533) 2020-04-06 21:39:42 -07:00
The Immortal
634658a5ba Refactor unreleased Pokemon
Pokemon that are not available in-game are now consolidated into `isNonstandard`. 'Past' indicates that the Pokemon no longer works in the current generation. 'Unobtainable' indicates that the Pokemon works but can only be obtained through hacking.
2020-04-06 20:53:03 +04:00
The Immortal
78fde78f19 Refactor unavailable moves
Moves that are not available in-game are now consolidated into `isNonstandard`. 'Past' indicates that the item no longer works in the current generation. 'Unobtainable' indicates that the item works but can only be obtained through hacking.
2020-04-06 20:26:10 +04:00
The Immortal
441d2961dc VGC17: Fix items 2020-04-06 20:25:22 +04:00
The Immortal
2b17e3bb92 Gen 5 Randoms: Fix Zangoose 2020-04-06 03:41:37 +04:00
The Immortal
6a057e733c Gen 5 Random: Fix Belly Drum 2020-04-06 03:01:42 +04:00
The Immortal
9db0c00375 Use double quotes 2020-04-06 00:09:07 +04:00
The Immortal
387dd7ce2d Refactor unavailable items
Items that are not available in-game are now consolidated into `isNonstandard`. 'Past' indicates that the item no longer works in the current generation. 'Unobtainable' indicates that the item works but can only be obtained through hacking.

Credit to @lusamine for testing many of these items in Sw/Sh.
2020-04-05 23:54:57 +04:00
Leonard Craft III
64d42624b8
Mark Plates (except Pixie Plate) as past gen items (#6524) 2020-04-05 11:09:16 -04:00