Commit Graph

48 Commits

Author SHA1 Message Date
Annika
d09e2d8354 Random Battles: April 2022 patch 2022-04-04 16:22:31 -07:00
Annika
d6f3a66484 Attempt to fix CI 2022-03-30 23:05:16 -07:00
Annika
4d73b897b6 Random Battles: Support more value rules
This adds support for `Max Move Count` and `Adjust Level`
2022-03-30 21:56:43 -07:00
Leonard Craft III
c9dfdb847b Fix failing tests using regex on Windows 2022-03-09 20:23:52 -06:00
pyuk-bot
a9bd134661
Gen 6 Randbats: Fix base forme abilities of megas (#8682)
* Gen 6 Randbats: Fix base forme abilities of megas

* Actually fix the ability pool
2022-03-05 12:35:48 -08:00
Annika
dce7f33b65 Random Battles: March 2022 balance patch 2022-03-03 18:26:01 -08:00
Annika
66c2f4b53a Random Battles updates 2022-02-04 20:08:27 -08:00
Annika
70aac0296e Random Battle: Account for nonexistent evolutions 2022-01-30 18:02:29 -08:00
pyuk-bot
60524b050e
Randbats: Don't count fixed damage as needing Atk (#8642) 2022-01-28 17:50:57 -08:00
Annika
5069ef4d55 Gen 1 Random Battle: Don't use bad Pokémon as leads 2022-01-15 14:17:01 -08:00
Annika
2b90aab258 Random Battle: Fix Gen 3 bugs 2022-01-10 12:25:35 -08:00
Annika
7a2da7b7bb Random Battles: Fix Breloom + Focus Punch 2022-01-02 21:31:17 -08:00
Annika
6fca9fed27 Random Battle updates 2022-01-02 21:09:20 -08:00
Annika
75ab25b160 Random Battles updates 2021-12-05 18:17:15 -08:00
Annika
4652c56020 Random Battles: Fix Hidden Power IVs
Fixes #8549
2021-12-04 18:10:38 -08:00
Annika
ae84fefa4a Random Battles: Fix item generation for Arceus 2021-11-26 12:10:42 -08:00
Annika
a3c4c696e8 Improvements to BD/SP Random Battles 2021-11-24 16:00:31 -08:00
Annika
357d20c5f7 BDSP Random Battles: Fix Choice item generation 2021-11-23 17:45:05 -08:00
Annika
7e7f25457e Test team validity for all randomized formats 2021-11-23 16:10:18 -08:00
Annika
f7cdeb5b20 November 2021 Random Battles updates
[Gen 8] Random Battle levels were nerfed or buffed for winrates greater than 7 or less than -7 deviations from the mean respectively.

[Gen 8] Random Doubles Battle levels were nerfed or buffed for winrates greater than 4 or less than -4 deviations from the mean respectively.
2021-11-07 18:40:58 -08:00
Annika
b626892dab Random Battles updates 2021-10-02 14:50:11 -07:00
ACakeWearingAHat
fc1c3e17c5
Random Battles updates (#8473) 2021-09-19 15:50:11 -07:00
Annika
1fc5e3a787 Random Battles updates 2021-09-06 20:46:44 -07:00
Annika
3aa9934e65 Random Battles updates 2021-08-02 14:20:38 -07:00
Annika
c134195915
Use ts-node instead of Sucrase (#8369) 2021-07-09 19:59:22 -07:00
Annika
82d21aa33c Random Battles: Fix Venusaur bug in Gen 5 2021-07-02 19:49:43 -07:00
Annika
33e82d85d5 Random Battles update 2021-07-01 16:33:40 -07:00
ACakeWearingAHat
92c932d35a
Random Battles updates (#8374) 2021-06-25 17:04:41 -07:00
Annika
6363a1854c Random Battles: Don't allow unreleased HAs 2021-06-07 18:45:22 -07:00
Annika
c55658ce06 Random Battles: Fix 3-move Pokemon 2021-06-05 20:33:44 -07:00
Annika
d8988bb250 Random Battles: Fix double-Hidden Power bug 2021-06-05 12:24:08 -07:00
Annika
8a6bb51c23 Random Battles update 2021-06-01 16:22:57 -07:00
Annika
c1c1f8976d Random Battles: Fix Hidden Power bug in Gen 6 2021-05-27 10:18:04 -07:00
Annika
a77db612c8 Random Battles updates 2021-05-23 16:11:54 -07:00
Annika
cb5bdd9ed8 Random Battles: Make tests use predictable seeds 2021-05-23 16:11:54 -07:00
Annika
e2d468b6b1 Random Battles: Bugfixes 2021-05-12 14:42:19 -07:00
Annika
27764ef5bf Random Battles: Unify tests 2021-05-07 10:19:45 -07:00
Annika
2b3741ec2f Random Battles: Support more Value Rules
Specifically, randomized formats will now support Max Team Size, Min Source Gen, Adjust Level, Adjust Level Down, and Force Monotype.

This fixes the issue with randomly-generated Multi Battle teams containing six Pokémon, instead of three as desired.
2021-05-06 22:45:08 -07:00
Annika
96574af8aa Random Battles: Add unit tests for PR #8270 2021-05-04 21:43:40 -07:00
Annika
d48c7a9ed6 Random Battles: Fix STAB enforcement 2021-05-03 15:16:57 -07:00
Annika
99cb226a4b Random Battles update 2021-05-01 18:37:52 -07:00
Annika
b4da54c6da Fix typo in comment 2021-04-09 17:22:25 -07:00
Annika
3ca947225f Random Battles updates 2021-04-09 17:13:18 -07:00
Annika
2baca9339d Random Battles: Fix STAB in 4-player battles 2021-04-09 16:23:23 -07:00
Guangcong Luo
13189fdb02
Update Dex API (#8181)
This is the change that renames:

- `Dex.getMove` -> `Dex.moves.get`
- `Dex.getAbility` -> `Dex.abilities.get`
- `Dex.getItem` -> `Dex.items.get`
- `Dex.getSpecies` -> `Dex.species.get`
- `Dex.getEffect` -> `Dex.conditions.get`
- `Dex.getNature` -> `Dex.natures.get`
- `Dex.getType` -> `Dex.types.get`
- `Dex.getFormat` -> `Dex.formats.get`

In addition, some other APIs have been updated:

- `getByID` methods have also been added to every other table.
- `Dex.moves.all()` now gets an array of all moves
  - Plus equivalent methods for `abilities`, `items`, `species`, `formats`, `natures`, `types`
  - Note: there's no `Dex.conditions.all()`
- new API: `Dex.stats` for naming/iterating stats
- `Dex.getEffectByID` -> `Dex.conditions.getByID`
- `Dex.getType` -> `Dex.types.get`
- `Dex.data.Formats` -> `Dex.data.Rulesets`
- `Dex.formats` -> now an array `Dex.formats.all()`
- `Dex.getRuleTable` -> `Dex.formats.getRuleTable`
- `Dex.validateFormat` -> `Dex.formats.validate`

Team functions have been split off into a new `sim/teams` package:

- `Dex.packTeam` -> `Teams.pack`
- `Dex.fastUnpackTeam` -> `Teams.unpack`
- `Dex.generateTeam` -> `Teams.generate`
- `Dex.stringifyTeam` -> `Teams.export`

`Teams.export` has also been rewritten to better match how it works in client.

This implements #8178
2021-04-08 03:00:37 -07:00
Annika
9e7074572e Random Battles update 2021-03-26 15:45:59 -07:00
Annika
ff56f7e503 Random Battles update 2021-03-19 18:28:08 -07:00
Annika
ffd0092bfb Random Battles: Add basic unit test framework
This will save me a lot of time typing in `/eval`s on localhost to test, and also hopefully catch regressions!
2021-03-18 18:17:25 -07:00