[Bug] Fix Circular Dependency with BerryType (#1802)
* Fix Potential Circular Dependency with BerryType * remove .js
This commit is contained in:
parent
1c73b3b084
commit
6dbf99cc72
|
@ -7,20 +7,7 @@ import { getStatusEffectHealText } from "./status-effect";
|
|||
import * as Utils from "../utils";
|
||||
import { DoubleBerryEffectAbAttr, ReduceBerryUseThresholdAbAttr, applyAbAttrs } from "./ability";
|
||||
import i18next from "../plugins/i18n";
|
||||
|
||||
export enum BerryType {
|
||||
SITRUS,
|
||||
LUM,
|
||||
ENIGMA,
|
||||
LIECHI,
|
||||
GANLON,
|
||||
PETAYA,
|
||||
APICOT,
|
||||
SALAC,
|
||||
LANSAT,
|
||||
STARF,
|
||||
LEPPA
|
||||
}
|
||||
import { BerryType } from "./enums/berry-type";
|
||||
|
||||
export function getBerryName(berryType: BerryType): string {
|
||||
return i18next.t(`berry:${BerryType[berryType]}.name`);
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
export enum BerryType {
|
||||
SITRUS,
|
||||
LUM,
|
||||
ENIGMA,
|
||||
LIECHI,
|
||||
GANLON,
|
||||
PETAYA,
|
||||
APICOT,
|
||||
SALAC,
|
||||
LANSAT,
|
||||
STARF,
|
||||
LEPPA
|
||||
}
|
|
@ -44,7 +44,7 @@ import { SpeciesFormChange, SpeciesFormChangeActiveTrigger, SpeciesFormChangeMov
|
|||
import { TerrainType } from "../data/terrain";
|
||||
import { TrainerSlot } from "../data/trainer-config";
|
||||
import * as Overrides from "../overrides";
|
||||
import { BerryType } from "../data/berry";
|
||||
import { BerryType } from "../data/enums/berry-type";
|
||||
import i18next from "../plugins/i18n";
|
||||
import { speciesEggMoves } from "../data/egg-moves";
|
||||
import { ModifierTier } from "../modifier/modifier-tier";
|
||||
|
|
|
@ -11,7 +11,8 @@ import { Type } from "../data/type";
|
|||
import PartyUiHandler, { PokemonMoveSelectFilter, PokemonSelectFilter } from "../ui/party-ui-handler";
|
||||
import * as Utils from "../utils";
|
||||
import { TempBattleStat, getTempBattleStatBoosterItemName, getTempBattleStatName } from "../data/temp-battle-stat";
|
||||
import { BerryType, getBerryEffectDescription, getBerryName } from "../data/berry";
|
||||
import { getBerryEffectDescription, getBerryName } from "../data/berry";
|
||||
import { BerryType } from "../data/enums/berry-type";
|
||||
import { Unlockables } from "../system/unlockables";
|
||||
import { StatusEffect, getStatusEffectDescriptor } from "../data/status-effect";
|
||||
import { SpeciesFormKey } from "../data/pokemon-species";
|
||||
|
|
|
@ -12,7 +12,8 @@ import { FusionSpeciesFormEvolution, pokemonEvolutions, pokemonPrevolutions } fr
|
|||
import { getPokemonMessage } from "../messages";
|
||||
import * as Utils from "../utils";
|
||||
import { TempBattleStat } from "../data/temp-battle-stat";
|
||||
import { BerryType, getBerryEffectFunc, getBerryPredicate } from "../data/berry";
|
||||
import { getBerryEffectFunc, getBerryPredicate } from "../data/berry";
|
||||
import { BerryType } from "../data/enums/berry-type";
|
||||
import { StatusEffect, getStatusEffectHealText } from "../data/status-effect";
|
||||
import { achvs } from "../system/achv";
|
||||
import { VoucherType } from "../system/voucher";
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Biome } from "./data/enums/biome";
|
|||
import { Moves } from "./data/enums/moves";
|
||||
import { WeatherType } from "./data/weather";
|
||||
import { Variant } from "./data/variant";
|
||||
import { BerryType } from "./data/berry";
|
||||
import { BerryType } from "./data/enums/berry-type";
|
||||
import { TempBattleStat } from "./data/temp-battle-stat";
|
||||
import { Nature } from "./data/nature";
|
||||
import { Type } from "./data/type";
|
||||
|
|
Loading…
Reference in New Issue