move status effect enum into separate file (#2998)

This commit is contained in:
Dmitriy K 2024-07-12 12:32:30 -04:00 committed by GitHub
parent 3a1d41a676
commit 21d36bf7ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 21 additions and 19 deletions

View File

@ -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;

View File

@ -0,0 +1,10 @@
export enum StatusEffect {
NONE,
POISON,
TOXIC,
PARALYSIS,
SLEEP,
FREEZE,
BURN,
FAINT,
}

View File

@ -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