Skip to content

Commit

Permalink
Switch default to Rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Slayer95 authored Nov 1, 2024
1 parent 040cc83 commit a82650c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sim/dex-formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type ModdedFormatData = FormatData | Omit<FormatData, 'name'> & {inherit:
export interface FormatDataTable {[id: IDEntry]: FormatData}
export interface ModdedFormatDataTable {[id: IDEntry]: ModdedFormatData}

type FormatEffectType = 'Condition' | 'Format' | 'Ruleset' | 'Rule' | 'ValidatorRule';
type FormatEffectType = 'Format' | 'Rule' | 'ValidatorRule';

/** rule, source, limit, bans */
export type ComplexBan = [string, string, number, string[]];
Expand Down Expand Up @@ -482,7 +482,7 @@ export class Format extends BasicEffect implements Readonly<BasicEffect> {
data = this;

this.mod = Utils.getString(data.mod) || 'gen9';
this.effectType = Utils.getString(data.effectType) as FormatEffectType || 'Condition';
this.effectType = Utils.getString(data.effectType) as FormatEffectType || 'Rule';
this.debug = !!data.debug;
this.rated = (typeof data.rated === 'string' ? data.rated : data.rated !== false);
this.gameType = data.gameType || 'singles';
Expand Down

0 comments on commit a82650c

Please sign in to comment.