Skip to content

Commit

Permalink
move status effect enum into separate file (#2998)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeRed authored Jul 12, 2024
1 parent 3a1d41a commit 21d36bf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
12 changes: 2 additions & 10 deletions src/data/status-effect.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
10 changes: 10 additions & 0 deletions src/enums/status-effect.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export enum StatusEffect {
NONE,
POISON,
TOXIC,
PARALYSIS,
SLEEP,
FREEZE,
BURN,
FAINT,
}
18 changes: 9 additions & 9 deletions src/overrides.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 21d36bf

Please sign in to comment.