Skip to content

Commit

Permalink
Add [Gen 9] Draft Factory (#10702)
Browse files Browse the repository at this point in the history
* Add [Gen 9] Draft Factory

* lint

* show tera types of captains

* fix tests

* why did it pass locally

* Update data/random-battles/gen9/teams.ts

* Update formats.ts

---------

Co-authored-by: Kris Johnson <[email protected]>
  • Loading branch information
Karthik99999 and KrisXV authored Dec 4, 2024
1 parent 0af6322 commit b68fc72
Show file tree
Hide file tree
Showing 4 changed files with 751 additions and 0 deletions.
22 changes: 22 additions & 0 deletions config/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2619,6 +2619,28 @@ export const Formats: import('../sim/dex-formats').FormatList = [
team: 'randomBSSFactory',
ruleset: ['Flat Rules', 'VGC Timer'],
},
{
name: "[Gen 9] Draft Factory",
mod: 'gen9',
team: 'randomDraftFactory',
ruleset: ['Obtainable', 'Team Preview', 'Species Clause', 'HP Percentage Mod', 'Cancel Mod'],
onBegin() {
for (const pokemon of this.getAllPokemon()) {
if (!(pokemon.set as any).teraCaptain) pokemon.canTerastallize = null;
}
},
onTeamPreview() {
for (const side of this.sides) {
let buf = ``;
for (const pokemon of side.pokemon) {
if (!(pokemon.set as any).teraCaptain) continue;
buf += buf ? ` / ` : `raw|${side.name}'s Tera Captains:<br />`;
buf += `<psicon pokemon="${pokemon.species.id}" /><psicon type="${pokemon.teraType}" />`;
}
this.add(`${buf}`);
}
},
},
{
name: "[Gen 9] Baby Random Battle",
mod: 'gen9',
Expand Down
Loading

0 comments on commit b68fc72

Please sign in to comment.