From 8cf3530f17729a0c1c51d102f39bd1b821af7e39 Mon Sep 17 00:00:00 2001 From: Michael Li Date: Sun, 10 Nov 2024 16:55:26 -0500 Subject: [PATCH] Changed new type name to `SingleOrDoubleType` --- src/overrides.ts | 4 ++-- src/test/utils/helpers/overridesHelper.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/overrides.ts b/src/overrides.ts index c2e34015a86..88e8b343c10 100644 --- a/src/overrides.ts +++ b/src/overrides.ts @@ -58,7 +58,7 @@ class DefaultOverrides { * * If `"odd-doubles"`, follow the `"double"` rule on odd wave numbers, and follow the `"single"` rule on even wave numbers. */ - readonly BATTLE_TYPE_OVERRIDE: DoubleType | null = null; + readonly BATTLE_TYPE_OVERRIDE: SingleOrDoubleType | null = null; readonly STARTING_WAVE_OVERRIDE: number = 0; readonly STARTING_BIOME_OVERRIDE: Biome = Biome.TOWN; readonly ARENA_TINT_OVERRIDE: TimeOfDay | null = null; @@ -241,4 +241,4 @@ export default { ...overrides } satisfies InstanceType; -export type DoubleType = "double" | "single" | "even-doubles" | "odd-doubles"; +export type SingleOrDoubleType = "double" | "single" | "even-doubles" | "odd-doubles"; diff --git a/src/test/utils/helpers/overridesHelper.ts b/src/test/utils/helpers/overridesHelper.ts index 767c19a6544..b5073236df6 100644 --- a/src/test/utils/helpers/overridesHelper.ts +++ b/src/test/utils/helpers/overridesHelper.ts @@ -4,7 +4,7 @@ import { Abilities } from "#app/enums/abilities"; import * as GameMode from "#app/game-mode"; import { GameModes, getGameMode } from "#app/game-mode"; import { ModifierOverride } from "#app/modifier/modifier-type"; -import Overrides, { DoubleType } from "#app/overrides"; +import Overrides, { SingleOrDoubleType } from "#app/overrides"; import { Unlockables } from "#app/system/unlockables"; import { Biome } from "#enums/biome"; import { Moves } from "#enums/moves"; @@ -243,7 +243,7 @@ export class OverridesHelper extends GameManagerHelper { * @param battleType battle type to set * @returns `this` */ - public battleType(battleType: DoubleType): this { + public battleType(battleType: SingleOrDoubleType): this { vi.spyOn(Overrides, "BATTLE_TYPE_OVERRIDE", "get").mockReturnValue(battleType); this.log(`Battle type set to ${battleType} only!`); return this;