Gen IX: Add Challenge Cup formats

This commit is contained in:
Annika 2022-12-04 16:21:23 -08:00
parent 7ef58a8b71
commit ce201bb761
4 changed files with 33 additions and 4 deletions

View File

@ -114,6 +114,29 @@ export const Formats: FormatList = [
ruleset: ['HP Percentage Mod', 'Cancel Mod'],
banlist: ['Nonexistent'],
},
{
name: "[Gen 9] Challenge Cup 1v1",
mod: 'gen9',
team: 'randomCC',
ruleset: ['Obtainable', 'HP Percentage Mod', 'Cancel Mod', 'Team Preview', 'Dynamax Clause', 'Picked Team Size = 1'],
},
{
name: "[Gen 9] Challenge Cup 2v2",
mod: 'gen9',
team: 'randomCC',
gameType: 'doubles',
ruleset: ['[Gen 9] Challenge Cup 1v1', '!! Picked Team Size = 2'],
},
{
name: "[Gen 9] Challenge Cup 6v6",
mod: 'gen9',
team: 'randomCC',
searchShow: false,
ruleset: ['[Gen 9] Challenge Cup 1v1', '!Picked Team Size'],
},
{
name: "[Gen 9] Custom Game",

View File

@ -46,8 +46,8 @@ export const Aliases: {[alias: string]: string} = {
gen6aaa: "[Gen 6] Almost Any Ability",
gen6ph: "[Gen 6] Pure Hackmons",
gen6hackmons: "[Gen 6] Pure Hackmons",
cc1v1: "[Gen 8] Challenge Cup 1v1",
cc2v2: "[Gen 8] Challenge Cup 2v2",
cc1v1: "[Gen 9] Challenge Cup 1v1",
cc2v2: "[Gen 9] Challenge Cup 2v2",
hc: "[Gen 9] Hackmons Cup",
hackmons: "[Gen 8] Pure Hackmons",
monorandom: "[Gen 8] Monotype Random Battle",

View File

@ -511,7 +511,7 @@ export class RandomTeams {
// Random shininess
const shiny = this.randomChance(1, 1024);
team.push({
const set: RandomTeamsTypes.RandomSet = {
name: species.baseSpecies,
species: species.name,
gender: species.gender,
@ -524,7 +524,12 @@ export class RandomTeams {
level,
happiness,
shiny,
});
};
if (this.gen === 9) {
// Tera type
set.teraType = this.sample(this.dex.types.all()).name;
}
team.push(set);
}
return team;

View File

@ -522,6 +522,7 @@ namespace RandomTeamsTypes {
happiness?: number;
dynamaxLevel?: number;
gigantamax?: boolean;
teraType?: string;
}
export interface RandomFactorySet {
name: string;