Skip to content

Commit b15dcdd

Browse files
committed
champions reg m-a support
1 parent 41b6882 commit b15dcdd

12 files changed

Lines changed: 5364 additions & 2 deletions

File tree

import

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ const MOD_IMPORTS = {
256256
'data/mods/champions/scripts.ts': [
257257
'ModdedBattleScriptsData', 'Pokemon', 'ActiveMove', 'toID', 'Condition',
258258
],
259+
260+
// championsregma
261+
'data/mods/championsregma/formats-data.ts': ['ModdedSpeciesFormatsDataTable'],
262+
'data/mods/championsregma/items.ts': ['ModdedItemDataTable'],
263+
'data/mods/championsregma/scripts.ts': ['ModdedBattleScriptsData'],
259264
};
260265
const RANDOMS_IMPORTS = {
261266
'data/random-battles/gen9/teams.ts': [
@@ -519,6 +524,7 @@ const MOD_OVERRIDDEN = new Set([
519524
'data/mods/gen9predlc/index.ts',
520525
'data/mods/gen9dlc1/index.ts',
521526
'data/mods/champions/index.ts',
527+
'data/mods/championsregma/index.ts',
522528
'data/mods/index.test.ts',
523529
'data/mods/index.ts',
524530
]);

mods/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ This package contains data and logic for several mods:
3636
(ie. Generation 9 **without** the data from the Teal Mask or the Indigo Disk DLC)
3737
- `gen9dlc1`: A mod on top of Generation 9 which contains data from just Pokémon Scarlet and Violet
3838
and the Teal Mask DLC (ie. Generation 9 **without** the data from the Indigo Disk DLC)
39+
- `champions`: A mod on top of Generation 9 which contains the data and logic for Pokémon Champions
40+
- `championsregma`: A mod on top of Generation 9 which applies the Regulation M-A restrictions to
41+
Pokémon Champions data
3942

4043
These mods can be applied to a `Dex` implementation by passing the data as an argument to the `mod`
4144
method. Because of type inconsistencies between `@pkmn/sim` and `@pkmn/dex`, to typecheck **the

mods/eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export default [...pkmn, {
1515
"src/gen8dlc1/*.ts",
1616
"src/gen9predlc/*.ts",
1717
"src/gen9dlc1/*.ts",
18-
"src/champions/*.ts"
18+
"src/champions/*.ts",
19+
"src/championsregma/*.ts"
1920
],
2021
rules: {
2122
"@stylistic/eol-last": "off",

mods/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@
7373
"./champions": {
7474
"require": "./build/champions/index.js",
7575
"import": "./build/champions/index.mjs"
76+
},
77+
"./championsregma": {
78+
"require": "./build/championsregma/index.js",
79+
"import": "./build/championsregma/index.mjs"
7680
}
7781
},
7882
"typesVersions": {
@@ -118,6 +122,9 @@
118122
],
119123
"champions": [
120124
"./build/champions/index.d.ts"
125+
],
126+
"championsregma": [
127+
"./build/championsregma/index.d.ts"
121128
]
122129
}
123130
},

0 commit comments

Comments
 (0)