Commit Graph

240 Commits

Author SHA1 Message Date
Marty-D
bd6aaaff28
Gen VI-VII: Fix Toxic mechanic 2021-01-07 19:08:36 -05:00
The Immortal
a3ce567ae1 Gen 6/7: Random Battle fixes 2021-01-04 20:59:47 +04:00
LegoFigure11
cad1d25c4d
Add Gen 8 BSS Factory (#7843) 2020-12-31 02:09:29 +04:00
The Immortal
e0b3ade226 Gen 6/7: Random Battle improvements 2020-12-28 15:46:33 +04:00
The Immortal
788d0f5bc0 Gen 6/7: Random Battle updates 2020-12-25 14:24:46 +04:00
The Immortal
fda0ee61f4 Gen 7/6: Implement Toxic accuracy mechanics 2020-12-22 15:50:05 +04:00
The Immortal
0d306b9930 Ban illegal Zygarde-10% sets 2020-12-20 18:18:29 +04:00
MacChaeger
7d6da41e34
Factory sets: Add more EV validation (#7790) 2020-12-12 10:48:20 +04:00
The Immortal
bce1267fae Improve randoms generator 2020-12-10 15:33:08 +04:00
MacChaeger
fa4b7a19df
Fix Gen 7 UU Gligar Battle Factory EVs (#7780) 2020-12-08 20:33:59 +04:00
Leonard Craft III
12da66fb21
Correct Protean interactions & Gravity-blocked Status Z-Moves (#7729) 2020-11-30 16:30:51 -05:00
Kris Johnson
7877b95e67 Random Battle: Fix typo and remove redundant check 2020-11-16 22:40:48 -07:00
The Immortal
2bc4a51a50 Random Battle improvements 2020-11-03 19:43:57 +04:00
urkerab
ff0ca077b6
Update Lunar Dance to Gen 8 mechanics (#7576) 2020-10-26 19:39:39 +04:00
The Immortal
58e8e4203d Micle Berry is obtainable 2020-10-25 01:15:36 +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
cf3405210f Gen 7: Random Battle updates 2020-10-21 22:15:12 +04: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
The Immortal
84e0aeb8d1 Gen 7: Random Battle updates 2020-10-14 04:21:44 +04:00
The Immortal
61b484ee4a Past gens random battle updates 2020-10-01 17:51:20 +04:00
The Immortal
0d71ec82c3 Random Battle improvements 2020-09-22 11:56:21 +04: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
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
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
The Immortal
d25ec1cbca BF/CAP 1v1: Move sets loading outside constructor 2020-09-02 15:44:34 +04:00
Kris Johnson
5e255012bc
Add a 'bst' property to Species (#7138) 2020-08-12 12:06:09 -07:00
Mia
deeed6c789
Remove sim/ and data/'s globals (#7091) 2020-08-07 06:44:15 -07:00
The Immortal
1360f7d06d Random Battle updates 2020-08-01 17:31:16 +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
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
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
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
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
Mia
6839a1f4db
Add a library for utility functions (#6817) 2020-06-09 22:06:43 -07:00
The Immortal
f9791abba9 Random Battles: Fix cosmetic formes 2020-06-04 03:06:07 +04:00
SSlayer9
7f3b464bc2
Update Heal Bell interaction with Soundproof (#6771) 2020-05-30 16:04:57 -04:00
PartMan
775f1e4945
Update Howl flags (#6727) 2020-05-22 14:49:10 -04: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
Marty-D
31ed3f33ec
Gen VII: Fix Skill Swap description 2020-05-15 11:33:39 -04:00
Marty-D
c8c048a645 Update Curse targeting 2020-05-14 13:23:37 -04:00
The Immortal
1810c8e7b7 Random Battle: Improve Toxicroak 2020-05-14 07:51:35 +04:00
AnnikaCodes
a46d0a9844
Update move descriptions to account for Teleport's Gen 8 behavior (#6660) 2020-05-07 14:24:24 -04: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
Guangcong Luo
6c1992b067 Fix Metronome blacklists 2020-05-02 00:16:55 -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
Kirk Scheibelhut
4afdd7b947 Fix otherFormes capitalization in gen7/pokedex.ts 2020-04-29 23:31:45 -07:00
Kris Johnson
f7053eb7cd
Update Defog's description (#6624) 2020-04-26 16:27:43 -07:00
Kris Johnson
28bf388b98
Typescript data (#6553) 2020-04-23 09:16:09 -07:00
Marty-D
d9d345d8df Correct power modifier priorities
Thanks @dawoblefet!
2020-04-18 20:33:13 -04: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
Kirk Scheibelhut
ca69c8e6e3
Fix Minior-Meteor forme not being allowed in Gen 7 (#6563) 2020-04-12 16:25:13 +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
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
The Immortal
b5d9829e0e Random Battle improvements 2020-04-01 23:06:19 +04:00
Marty-D
76da207659 Update Metronome again 2020-03-31 12:04:28 -04:00
Marty-D
87838fb207 Update Metronome 2020-03-30 12:12:22 -04:00
Marty-D
1488b63482 Update Copycat, Instruct, and Sleep Talk 2020-03-30 11:30:57 -04:00
The Immortal
de2d80663e Random Battle improvements 2020-03-29 02:36:41 +04:00
The Immortal
659a878e5d Random Battle updates 2020-03-27 22:58:10 +04:00
Kris Johnson
ea1b028950
Rename cosmeticFormeName to forme (#6492) 2020-03-26 18:13:31 +04:00
Kris Johnson
994fc60aed
Rename Template to Species (#6478) 2020-03-25 23:29:27 -07:00
The Immortal
6dc9cb5e4f Gen 7: Fix broken entries in Formats-Data 2020-03-22 05:06:18 +04:00
Marty-D
0af4a07da4 Descriptions: Update move disabling effects 2020-03-21 12:11:45 -04:00
Marty-D
ca91a54a91 Explicitly block Yawn's effect with Electric/Misty Terrain 2020-03-19 10:12:50 -04:00
The Immortal
d7348167a9 Formats-Data: Do not inherit in older gens
It was used to inherit `eventPokemon` so as to not have duplicated data. Event data is now in Learnsets so this inheriting is unneeded.
2020-03-19 16:59:11 +04:00
Christopher Monsanto
3dfa720113 Fix isNonstandard on Genesect formes 2020-03-18 22:53:42 -04:00
The Immortal
c09044a777 Move gen property to Pokedex 2020-03-18 23:09:45 +04:00
The Immortal
bbb4da0131 Refactor forme data 2020-03-18 15:17:55 +04:00
Kris Johnson
3e26318758
Refactor learnsets.js (#6466) 2020-03-18 00:59:29 -07:00
The Immortal
ffc88e833f Random Battle: Improve error handling 2020-03-17 14:23:38 +04:00
Kris Johnson
83ebdb27da
Add Dex#getOutOfBattleSpecies (#6463) 2020-03-16 20:31:38 +04:00
The Immortal
a61d7080e3 Fix usage of inheritsFrom 2020-03-10 21:31:06 +04:00
Guangcong Luo
64ff1da81f Refactor more things to use inheritsFrom 2020-03-10 09:59:36 -07:00
Kris Johnson
a5988318de
Update Knock Off description (#6438) 2020-03-10 11:49:35 +04:00
The Immortal
a931c13bda Fix 5cf40b239 2020-02-17 16:46:46 +04:00
The Immortal
5cf40b239d Mail does not exist in Sw/Sh
It doesn't work either if you try to hack it.
2020-02-17 16:38:20 +04:00
The Immortal
9e70a66f2d Power is unusable in Sw/Sh 2020-02-14 23:56:18 +04:00
Guangcong Luo
652c7163cf
Refactor queue to new BattleQueue class (#6358)
Previously, battle queue stuff was just strewn around `battle.ts`.
This gives it a new home: `battle-queue.ts`.

This was intended to make `battle.ts` slightly more tractable, although
the difference is so small that maybe I shouldn't bother. Oh, well,
every little bit helps.
2020-02-12 16:20:17 -08:00
Kris Johnson
92c7d377a7
Add Pokemon Home support (#6349)
Co-authored-by: The Immortal <the_immortal123@live.com>
2020-02-12 14:54:55 +04:00
The Immortal
f24df5dd58 Correct Light of Ruin data 2020-02-12 14:27:45 +04:00
Guangcong Luo
55cbc52bba Fix bugs with secondary/ability order
Fixes #6346

The `AfterDamage` event has been replaced with `DamagingHit`, which
which happens for damaging moves after secondaries.

The `AfterHit` event has also been moved after `DamagingHit`, to make
sure Knock Off still procs after Rocky Helmet.

`AfterHit` is no longer a valid event on `secondary` and `self` blocks,
because it's meaningless in those blocks, anyway. All `self.onAfterHit`
and `secondary.onAfterHit` handlers have been moved to `onHit`, which
should have the same timing in practice.
2020-02-08 08:07:39 -08:00
The Immortal
e67a55d7ad Macho Brace is available in Sw/Sh 2020-02-07 14:21:36 +04:00