From 21d36bf7add74738befebe88b20fb5720db9f5d8 Mon Sep 17 00:00:00 2001 From: Dmitriy K Date: Fri, 12 Jul 2024 12:32:30 -0400 Subject: [PATCH] move status effect enum into separate file (#2998) --- src/data/status-effect.ts | 12 ++---------- src/enums/status-effect.ts | 10 ++++++++++ src/overrides.ts | 18 +++++++++--------- 3 files changed, 21 insertions(+), 19 deletions(-) create mode 100644 src/enums/status-effect.ts diff --git a/src/data/status-effect.ts b/src/data/status-effect.ts index 5949fb2f1301..65caf58ccb9a 100644 --- a/src/data/status-effect.ts +++ b/src/data/status-effect.ts @@ -1,16 +1,8 @@ import * as Utils from "../utils"; +import { StatusEffect } from "#enums/status-effect"; import i18next, { ParseKeys } from "i18next"; -export enum StatusEffect { - NONE, - POISON, - TOXIC, - PARALYSIS, - SLEEP, - FREEZE, - BURN, - FAINT -} +export { StatusEffect }; export class Status { public effect: StatusEffect; diff --git a/src/enums/status-effect.ts b/src/enums/status-effect.ts new file mode 100644 index 000000000000..b79951f530a9 --- /dev/null +++ b/src/enums/status-effect.ts @@ -0,0 +1,10 @@ +export enum StatusEffect { + NONE, + POISON, + TOXIC, + PARALYSIS, + SLEEP, + FREEZE, + BURN, + FAINT, +} diff --git a/src/overrides.ts b/src/overrides.ts index 8ee801cbf26f..0ef6732d98a9 100644 --- a/src/overrides.ts +++ b/src/overrides.ts @@ -1,23 +1,23 @@ import { Abilities } from "#enums/abilities"; -import { BerryType } from "#enums/berry-type"; +import { type BerryType } from "#enums/berry-type"; import { Biome } from "#enums/biome"; +import { EggTier } from "#enums/egg-type"; import { Moves } from "#enums/moves"; import { Nature } from "#enums/nature"; import { PokeballType } from "#enums/pokeball"; import { Species } from "#enums/species"; -import { Stat } from "#enums/stat"; +import { type Stat } from "#enums/stat"; +import { StatusEffect } from "#enums/status-effect"; import { TimeOfDay } from "#enums/time-of-day"; -import { WeatherType } from "#enums/weather-type"; import { VariantTier } from "#enums/variant-tiers"; -import { EggTier } from "#enums/egg-type"; +import { WeatherType } from "#enums/weather-type"; import { type PokeballCounts } from "./battle-scene"; import { Gender } from "./data/gender"; import { allSpecies } from "./data/pokemon-species"; // eslint-disable-line @typescript-eslint/no-unused-vars -import { StatusEffect } from "./data/status-effect"; -import { TempBattleStat } from "./data/temp-battle-stat"; -import { Type } from "./data/type"; -import { Variant } from "./data/variant"; -import { type SpeciesStatBoosterItem, type ModifierTypes } from "./modifier/modifier-type"; +import { type TempBattleStat } from "./data/temp-battle-stat"; +import { type Type } from "./data/type"; +import { type Variant } from "./data/variant"; +import { type ModifierTypes, type SpeciesStatBoosterItem } from "./modifier/modifier-type"; /** * Overrides for testing different in game situations