pokemon-showdown/test
Guangcong Luo ed454ef76a
Refactor scripts to battle-actions (#8138)
This introduces a new class, BattleActions, available as `battle.actions`,
moving all functions from `data/scripts.ts` to `sim/battle-actions.ts`.

This makes it so that "go to definition" will now work correctly for
functions previously in scripts; we no longer need UnimplementedError,
and there's now a clean conceptual separation between `battle` and
`battle-actions` (whereas the previous distinction between `battle` and
`scripts` was basically nonexistent).

This will be a difficult migration if you maintain a fork with custom
scripted mods. I'm sorry! Migration instructions are here:

https://github.com/smogon/pokemon-showdown/pull/8138
2021-03-28 12:01:38 -07:00
..
lib Add more style linting rules (#7537) 2020-10-19 02:42:28 -07:00
random-battles Random Battles update 2021-03-26 15:45:59 -07:00
replays Tests: Add a function to save a battle replay (#7692) 2020-11-29 22:08:01 +00:00
server Trivia: Implement a /trivia unrankednew command 2021-03-20 12:30:46 -07:00
sim Refactor scripts to battle-actions (#8138) 2021-03-28 12:01:38 -07:00
tools/modlog Modlog: FIx converter bug in action-taker regex 2021-02-06 11:42:07 -08:00
assert.js Stop using assert.strict.strictEqual (#7515) 2020-10-14 01:19:03 -07:00
common.js Rename Stadium to Gen 1 Stadium 2021-02-15 21:03:47 -08:00
main.js Chat monitor: Support unit tests (#7710) 2020-11-26 01:33:09 -08:00
users-utils.js Support destroying rooms in unit tests 2021-01-10 03:39:01 -08:00