Skip to content

Commit

Permalink
Changed new type name to SingleOrDoubleType
Browse files Browse the repository at this point in the history
  • Loading branch information
PigeonBar committed Nov 10, 2024
1 parent 6d2c4f3 commit 8cf3530
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -241,4 +241,4 @@ export default {
...overrides
} satisfies InstanceType<typeof DefaultOverrides>;

export type DoubleType = "double" | "single" | "even-doubles" | "odd-doubles";
export type SingleOrDoubleType = "double" | "single" | "even-doubles" | "odd-doubles";
4 changes: 2 additions & 2 deletions src/test/utils/helpers/overridesHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8cf3530

Please sign in to comment.