mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
fix and optimize imports (#4061)
- remove any `.js` extension imports - remove unncessary dynamic imports of `modifier.ts` file. The file was being imported statically & dynamically. Made it pure static - increase vite chunk-size warning limit Co-authored-by: Mumble <171087428+frutescens@users.noreply.github.com>
This commit is contained in:
parent
9fd34c95d5
commit
287d671cfd
@ -1,3 +1,3 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
|
||||
export type ConditionFn = (scene: BattleScene, args?: any[]) => boolean;
|
||||
|
2
src/@types/i18next.d.ts
vendored
2
src/@types/i18next.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { type enConfig } from "#app/locales/en/config.js";
|
||||
import { type enConfig } from "#app/locales/en/config";
|
||||
import { TOptions } from "i18next";
|
||||
|
||||
//TODO: this needs to be type properly in the future
|
||||
|
@ -63,7 +63,7 @@ import { Moves } from "#enums/moves";
|
||||
import { PlayerGender } from "#enums/player-gender";
|
||||
import { Species } from "#enums/species";
|
||||
import { UiTheme } from "#enums/ui-theme";
|
||||
import { TimedEventManager } from "#app/timed-event-manager.js";
|
||||
import { TimedEventManager } from "#app/timed-event-manager";
|
||||
import i18next from "i18next";
|
||||
import { TrainerType } from "#enums/trainer-type";
|
||||
import { battleSpecDialogue } from "./data/dialogue";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {SettingGamepad} from "#app/system/settings/settings-gamepad.js";
|
||||
import {SettingGamepad} from "#app/system/settings/settings-gamepad";
|
||||
import {Button} from "#enums/buttons";
|
||||
|
||||
/**
|
||||
|
@ -1,18 +1,18 @@
|
||||
import * as Utils from "../utils";
|
||||
import i18next from "i18next";
|
||||
import { defaultStarterSpecies, DexAttrProps, GameData } from "#app/system/game-data.js";
|
||||
import { defaultStarterSpecies, DexAttrProps, GameData } from "#app/system/game-data";
|
||||
import PokemonSpecies, { getPokemonSpecies, getPokemonSpeciesForm, speciesStarters } from "./pokemon-species";
|
||||
import Pokemon, { PokemonMove } from "#app/field/pokemon.js";
|
||||
import { BattleType, FixedBattleConfig } from "#app/battle.js";
|
||||
import Trainer, { TrainerVariant } from "#app/field/trainer.js";
|
||||
import { GameMode } from "#app/game-mode.js";
|
||||
import Pokemon, { PokemonMove } from "#app/field/pokemon";
|
||||
import { BattleType, FixedBattleConfig } from "#app/battle";
|
||||
import Trainer, { TrainerVariant } from "#app/field/trainer";
|
||||
import { GameMode } from "#app/game-mode";
|
||||
import { Type } from "./type";
|
||||
import { Challenges } from "#enums/challenges";
|
||||
import { Species } from "#enums/species";
|
||||
import { TrainerType } from "#enums/trainer-type";
|
||||
import { Nature } from "./nature";
|
||||
import { Moves } from "#app/enums/moves.js";
|
||||
import { TypeColor, TypeShadow } from "#app/enums/color.js";
|
||||
import { Moves } from "#app/enums/moves";
|
||||
import { TypeColor, TypeShadow } from "#app/enums/color";
|
||||
import { pokemonEvolutions } from "./pokemon-evolutions";
|
||||
import { pokemonFormChanges } from "./pokemon-forms";
|
||||
|
||||
|
@ -8,7 +8,7 @@ import { PlayerPokemon } from "#app/field/pokemon";
|
||||
import i18next from "i18next";
|
||||
import { EggTier } from "#enums/egg-type";
|
||||
import { Species } from "#enums/species";
|
||||
import { EggSourceType } from "#app/enums/egg-source-types.js";
|
||||
import { EggSourceType } from "#app/enums/egg-source-types";
|
||||
|
||||
export const EGG_SEED = 1073741824;
|
||||
|
||||
|
@ -8,7 +8,7 @@ import { Abilities } from "#enums/abilities";
|
||||
import { Moves } from "#enums/moves";
|
||||
import { Species } from "#enums/species";
|
||||
import { TimeOfDay } from "#enums/time-of-day";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import i18next from "i18next";
|
||||
import { WeatherType } from "./weather";
|
||||
|
||||
|
@ -4,7 +4,7 @@ import { Type } from "./type";
|
||||
import * as Utils from "../utils";
|
||||
import { ChangeMovePriorityAbAttr, applyAbAttrs } from "./ability";
|
||||
import { ProtectAttr } from "./move";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import i18next from "i18next";
|
||||
|
||||
export enum TerrainType {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { VariantTier } from "#app/enums/variant-tier.js";
|
||||
import { VariantTier } from "#app/enums/variant-tier";
|
||||
|
||||
export type Variant = 0 | 1 | 2;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { ArenaTagSide } from "#app/data/arena-tag.js";
|
||||
import { ArenaTagSide } from "#app/data/arena-tag";
|
||||
import { ArenaTagType } from "#enums/arena-tag-type";
|
||||
import { TerrainType } from "#app/data/terrain.js";
|
||||
import { WeatherType } from "#app/data/weather.js";
|
||||
import { TerrainType } from "#app/data/terrain";
|
||||
import { WeatherType } from "#app/data/weather";
|
||||
|
||||
/** Alias for all {@linkcode ArenaEvent} type strings */
|
||||
export enum ArenaEventType {
|
||||
|
@ -16,7 +16,7 @@ import {
|
||||
getIconForLatestInput, swap,
|
||||
} from "#app/configs/inputs/configHandler";
|
||||
import BattleScene from "./battle-scene";
|
||||
import {SettingGamepad} from "#app/system/settings/settings-gamepad.js";
|
||||
import {SettingGamepad} from "#app/system/settings/settings-gamepad";
|
||||
import {SettingKeyboard} from "#app/system/settings/settings-keyboard";
|
||||
import TouchControl from "#app/touch-controls";
|
||||
import { Button } from "#enums/buttons";
|
||||
|
@ -4,8 +4,8 @@ import InvertPostFX from "./pipelines/invert";
|
||||
import { version } from "../package.json";
|
||||
import UIPlugin from "phaser3-rex-plugins/templates/ui/ui-plugin";
|
||||
import BBCodeTextPlugin from "phaser3-rex-plugins/plugins/bbcodetext-plugin";
|
||||
import InputTextPlugin from "phaser3-rex-plugins/plugins/inputtext-plugin.js";
|
||||
import TransitionImagePackPlugin from "phaser3-rex-plugins/templates/transitionimagepack/transitionimagepack-plugin.js";
|
||||
import InputTextPlugin from "phaser3-rex-plugins/plugins/inputtext-plugin";
|
||||
import TransitionImagePackPlugin from "phaser3-rex-plugins/templates/transitionimagepack/transitionimagepack-plugin";
|
||||
import { LoadingScene } from "./loading-scene";
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@ import { BattlerTagType } from "#enums/battler-tag-type";
|
||||
import { BerryType } from "#enums/berry-type";
|
||||
import { Moves } from "#enums/moves";
|
||||
import { Species } from "#enums/species";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { PermanentStat, TEMP_BATTLE_STATS, TempBattleStat, Stat, getStatKey } from "#app/enums/stat";
|
||||
|
||||
const outputModifierData = false;
|
||||
|
@ -26,9 +26,9 @@ import i18next from "i18next";
|
||||
|
||||
import { allMoves } from "#app/data/move";
|
||||
import { Abilities } from "#app/enums/abilities";
|
||||
import { LearnMovePhase } from "#app/phases/learn-move-phase.js";
|
||||
import { LevelUpPhase } from "#app/phases/level-up-phase.js";
|
||||
import { PokemonHealPhase } from "#app/phases/pokemon-heal-phase.js";
|
||||
import { LearnMovePhase } from "#app/phases/learn-move-phase";
|
||||
import { LevelUpPhase } from "#app/phases/level-up-phase";
|
||||
import { PokemonHealPhase } from "#app/phases/pokemon-heal-phase";
|
||||
|
||||
export type ModifierPredicate = (modifier: Modifier) => boolean;
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { ModifierTier } from "#app/modifier/modifier-tier.js";
|
||||
import { regenerateModifierPoolThresholds, ModifierPoolType, getEnemyBuffModifierForWave } from "#app/modifier/modifier-type.js";
|
||||
import { EnemyPersistentModifier } from "#app/modifier/modifier.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { ModifierTier } from "#app/modifier/modifier-tier";
|
||||
import { regenerateModifierPoolThresholds, ModifierPoolType, getEnemyBuffModifierForWave } from "#app/modifier/modifier-type";
|
||||
import { EnemyPersistentModifier } from "#app/modifier/modifier";
|
||||
import { Phase } from "#app/phase";
|
||||
|
||||
export class AddEnemyBuffModifierPhase extends Phase {
|
||||
constructor(scene: BattleScene) {
|
||||
|
@ -1,17 +1,17 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { getPokeballCatchMultiplier, getPokeballAtlasKey, getPokeballTintColor, doPokeballBounceAnim } from "#app/data/pokeball.js";
|
||||
import { getStatusEffectCatchRateMultiplier } from "#app/data/status-effect.js";
|
||||
import { PokeballType } from "#app/enums/pokeball.js";
|
||||
import { StatusEffect } from "#app/enums/status-effect.js";
|
||||
import { addPokeballOpenParticles, addPokeballCaptureStars } from "#app/field/anims.js";
|
||||
import { EnemyPokemon } from "#app/field/pokemon.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { PokemonHeldItemModifier } from "#app/modifier/modifier.js";
|
||||
import { achvs } from "#app/system/achv.js";
|
||||
import { PartyUiMode, PartyOption } from "#app/ui/party-ui-handler.js";
|
||||
import { SummaryUiMode } from "#app/ui/summary-ui-handler.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { getPokeballCatchMultiplier, getPokeballAtlasKey, getPokeballTintColor, doPokeballBounceAnim } from "#app/data/pokeball";
|
||||
import { getStatusEffectCatchRateMultiplier } from "#app/data/status-effect";
|
||||
import { PokeballType } from "#app/enums/pokeball";
|
||||
import { StatusEffect } from "#app/enums/status-effect";
|
||||
import { addPokeballOpenParticles, addPokeballCaptureStars } from "#app/field/anims";
|
||||
import { EnemyPokemon } from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { PokemonHeldItemModifier } from "#app/modifier/modifier";
|
||||
import { achvs } from "#app/system/achv";
|
||||
import { PartyUiMode, PartyOption } from "#app/ui/party-ui-handler";
|
||||
import { SummaryUiMode } from "#app/ui/summary-ui-handler";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
import { VictoryPhase } from "./victory-phase";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { applyPostBattleAbAttrs, PostBattleAbAttr } from "#app/data/ability.js";
|
||||
import { LapsingPersistentModifier, LapsingPokemonHeldItemModifier } from "#app/modifier/modifier.js";
|
||||
import { applyPostBattleAbAttrs, PostBattleAbAttr } from "#app/data/ability";
|
||||
import { LapsingPersistentModifier, LapsingPokemonHeldItemModifier } from "#app/modifier/modifier";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import { GameOverPhase } from "./game-over-phase";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { TrainerSlot } from "#app/data/trainer-config.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { TrainerSlot } from "#app/data/trainer-config";
|
||||
import { Phase } from "#app/phase";
|
||||
|
||||
export class BattlePhase extends Phase {
|
||||
constructor(scene: BattleScene) {
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { applyAbAttrs, PreventBerryUseAbAttr, HealFromBerryUseAbAttr } from "#app/data/ability.js";
|
||||
import { CommonAnim } from "#app/data/battle-anims.js";
|
||||
import { BerryUsedEvent } from "#app/events/battle-scene.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { BerryModifier } from "#app/modifier/modifier.js";
|
||||
import { applyAbAttrs, PreventBerryUseAbAttr, HealFromBerryUseAbAttr } from "#app/data/ability";
|
||||
import { CommonAnim } from "#app/data/battle-anims";
|
||||
import { BerryUsedEvent } from "#app/events/battle-scene";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { BerryModifier } from "#app/modifier/modifier";
|
||||
import i18next from "i18next";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { FieldPhase } from "./field-phase";
|
||||
import { CommonAnimPhase } from "./common-anim-phase";
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattleStyle } from "#app/enums/battle-style.js";
|
||||
import { BattlerTagType } from "#app/enums/battler-tag-type.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattleStyle } from "#app/enums/battle-style";
|
||||
import { BattlerTagType } from "#app/enums/battler-tag-type";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import { PostSummonPhase } from "./post-summon-phase";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { CommonAnim, CommonBattleAnim } from "#app/data/battle-anims.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { CommonAnim, CommonBattleAnim } from "#app/data/battle-anims";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
|
||||
export class CommonAnimPhase extends PokemonPhase {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { BattleSpec } from "#app/enums/battle-spec.js";
|
||||
import { DamageResult, HitResult } from "#app/field/pokemon.js";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { BattleSpec } from "#app/enums/battle-spec";
|
||||
import { DamageResult, HitResult } from "#app/field/pokemon";
|
||||
import * as Utils from "#app/utils";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
|
||||
export class DamagePhase extends PokemonPhase {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { PlayerGender } from "#app/enums/player-gender.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { addTextObject, TextStyle } from "#app/ui/text.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { PlayerGender } from "#app/enums/player-gender";
|
||||
import { Phase } from "#app/phase";
|
||||
import { addTextObject, TextStyle } from "#app/ui/text";
|
||||
import i18next from "i18next";
|
||||
|
||||
export class EndCardPhase extends Phase {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Phase } from "#app/phase";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
|
||||
export class EndEvolutionPhase extends Phase {
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { EnemyPokemon } from "#app/field/pokemon.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { EnemyPokemon } from "#app/field/pokemon";
|
||||
import { PartyMemberPokemonPhase } from "./party-member-pokemon-phase";
|
||||
|
||||
export abstract class EnemyPartyMemberPokemonPhase extends PartyMemberPokemonPhase {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { ExpBoosterModifier } from "#app/modifier/modifier.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { ExpBoosterModifier } from "#app/modifier/modifier";
|
||||
import i18next from "i18next";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { PlayerPartyMemberPokemonPhase } from "./player-party-member-pokemon-phase";
|
||||
import { LevelUpPhase } from "./level-up-phase";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import Pokemon from "#app/field/pokemon.js";
|
||||
import Pokemon from "#app/field/pokemon";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
type PokemonFunc = (pokemon: Pokemon) => void;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { ModifierTypeFunc } from "#app/modifier/modifier-type.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { ModifierTypeFunc } from "#app/modifier/modifier-type";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
import { ModifierRewardPhase } from "./modifier-reward-phase";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
export class HidePartyExpBarPhase extends BattlePhase {
|
||||
|
@ -1,12 +1,12 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { initMoveAnim, loadMoveAnimAssets } from "#app/data/battle-anims.js";
|
||||
import { allMoves } from "#app/data/move.js";
|
||||
import { SpeciesFormChangeMoveLearnedTrigger } from "#app/data/pokemon-forms.js";
|
||||
import { Moves } from "#app/enums/moves.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import EvolutionSceneHandler from "#app/ui/evolution-scene-handler.js";
|
||||
import { SummaryUiMode } from "#app/ui/summary-ui-handler.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { initMoveAnim, loadMoveAnimAssets } from "#app/data/battle-anims";
|
||||
import { allMoves } from "#app/data/move";
|
||||
import { SpeciesFormChangeMoveLearnedTrigger } from "#app/data/pokemon-forms";
|
||||
import { Moves } from "#app/enums/moves";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import EvolutionSceneHandler from "#app/ui/evolution-scene-handler";
|
||||
import { SummaryUiMode } from "#app/ui/summary-ui-handler";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
import { PlayerPartyMemberPokemonPhase } from "./player-party-member-pokemon-phase";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
import { FieldPhase } from "./field-phase";
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { ExpNotification } from "#app/enums/exp-notification.js";
|
||||
import { EvolutionPhase } from "#app/phases/evolution-phase.js";
|
||||
import { PlayerPokemon } from "#app/field/pokemon.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { LevelAchv } from "#app/system/achv.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { ExpNotification } from "#app/enums/exp-notification";
|
||||
import { EvolutionPhase } from "#app/phases/evolution-phase";
|
||||
import { PlayerPokemon } from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { LevelAchv } from "#app/system/achv";
|
||||
import i18next from "i18next";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { PlayerPartyMemberPokemonPhase } from "./player-party-member-pokemon-phase";
|
||||
import { LearnMovePhase } from "./learn-move-phase";
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { updateUserInfo } from "#app/account.js";
|
||||
import BattleScene, { bypassLogin } from "#app/battle-scene.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { handleTutorial, Tutorial } from "#app/tutorial.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import { updateUserInfo } from "#app/account";
|
||||
import BattleScene, { bypassLogin } from "#app/battle-scene";
|
||||
import { Phase } from "#app/phase";
|
||||
import { handleTutorial, Tutorial } from "#app/tutorial";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next, { t } from "i18next";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { SelectGenderPhase } from "./select-gender-phase";
|
||||
import { UnavailablePhase } from "./unavailable-phase";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Phase } from "#app/phase";
|
||||
|
||||
export class MessagePhase extends Phase {
|
||||
private text: string;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { ModifierType, ModifierTypeFunc, getModifierType } from "#app/modifier/modifier-type.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { ModifierType, ModifierTypeFunc, getModifierType } from "#app/modifier/modifier-type";
|
||||
import i18next from "i18next";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { ArenaTagType } from "#app/enums/arena-tag-type.js";
|
||||
import { MoneyMultiplierModifier } from "#app/modifier/modifier.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { ArenaTagType } from "#app/enums/arena-tag-type";
|
||||
import { MoneyMultiplierModifier } from "#app/modifier/modifier";
|
||||
import i18next from "i18next";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
export class MoneyRewardPhase extends BattlePhase {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { initMoveAnim, loadMoveAnimAssets, MoveAnim } from "#app/data/battle-anims.js";
|
||||
import { allMoves, SelfStatusMove } from "#app/data/move.js";
|
||||
import { Moves } from "#app/enums/moves.js";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { initMoveAnim, loadMoveAnimAssets, MoveAnim } from "#app/data/battle-anims";
|
||||
import { allMoves, SelfStatusMove } from "#app/data/move";
|
||||
import { Moves } from "#app/enums/moves";
|
||||
import * as Utils from "#app/utils";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
export class MoveAnimTestPhase extends BattlePhase {
|
||||
|
@ -1,18 +1,18 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { applyPreAttackAbAttrs, AddSecondStrikeAbAttr, IgnoreMoveEffectsAbAttr, applyPostDefendAbAttrs, PostDefendAbAttr, applyPostAttackAbAttrs, PostAttackAbAttr, MaxMultiHitAbAttr, AlwaysHitAbAttr } from "#app/data/ability.js";
|
||||
import { ArenaTagSide, ConditionalProtectTag } from "#app/data/arena-tag.js";
|
||||
import { MoveAnim } from "#app/data/battle-anims.js";
|
||||
import { BattlerTagLapseType, ProtectedTag, SemiInvulnerableTag } from "#app/data/battler-tags.js";
|
||||
import { MoveTarget, applyMoveAttrs, OverrideMoveEffectAttr, MultiHitAttr, AttackMove, FixedDamageAttr, VariableTargetAttr, MissEffectAttr, MoveFlags, applyFilteredMoveAttrs, MoveAttr, MoveEffectAttr, MoveEffectTrigger, ChargeAttr, MoveCategory, NoEffectAttr, HitsTagAttr } from "#app/data/move.js";
|
||||
import { SpeciesFormChangePostMoveTrigger } from "#app/data/pokemon-forms.js";
|
||||
import { BattlerTagType } from "#app/enums/battler-tag-type.js";
|
||||
import { Moves } from "#app/enums/moves.js";
|
||||
import Pokemon, { PokemonMove, MoveResult, HitResult } from "#app/field/pokemon.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { PokemonMultiHitModifier, FlinchChanceModifier, EnemyAttackStatusEffectChanceModifier, ContactHeldItemTransferChanceModifier, HitHealModifier } from "#app/modifier/modifier.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { applyPreAttackAbAttrs, AddSecondStrikeAbAttr, IgnoreMoveEffectsAbAttr, applyPostDefendAbAttrs, PostDefendAbAttr, applyPostAttackAbAttrs, PostAttackAbAttr, MaxMultiHitAbAttr, AlwaysHitAbAttr } from "#app/data/ability";
|
||||
import { ArenaTagSide, ConditionalProtectTag } from "#app/data/arena-tag";
|
||||
import { MoveAnim } from "#app/data/battle-anims";
|
||||
import { BattlerTagLapseType, ProtectedTag, SemiInvulnerableTag } from "#app/data/battler-tags";
|
||||
import { MoveTarget, applyMoveAttrs, OverrideMoveEffectAttr, MultiHitAttr, AttackMove, FixedDamageAttr, VariableTargetAttr, MissEffectAttr, MoveFlags, applyFilteredMoveAttrs, MoveAttr, MoveEffectAttr, MoveEffectTrigger, ChargeAttr, MoveCategory, NoEffectAttr, HitsTagAttr } from "#app/data/move";
|
||||
import { SpeciesFormChangePostMoveTrigger } from "#app/data/pokemon-forms";
|
||||
import { BattlerTagType } from "#app/enums/battler-tag-type";
|
||||
import { Moves } from "#app/enums/moves";
|
||||
import Pokemon, { PokemonMove, MoveResult, HitResult } from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { PokemonMultiHitModifier, FlinchChanceModifier, EnemyAttackStatusEffectChanceModifier, ContactHeldItemTransferChanceModifier, HitHealModifier } from "#app/modifier/modifier";
|
||||
import i18next from "i18next";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
|
||||
export class MoveEffectPhase extends PokemonPhase {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { BattlerTagLapseType } from "#app/data/battler-tags.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { BattlerTagLapseType } from "#app/data/battler-tags";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
|
||||
export class MoveEndPhase extends PokemonPhase {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { applyMoveAttrs, MoveHeaderAttr } from "#app/data/move.js";
|
||||
import Pokemon, { PokemonMove } from "#app/field/pokemon.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { applyMoveAttrs, MoveHeaderAttr } from "#app/data/move";
|
||||
import Pokemon, { PokemonMove } from "#app/field/pokemon";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
export class MoveHeaderPhase extends BattlePhase {
|
||||
|
@ -1,21 +1,21 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { applyAbAttrs, applyPostMoveUsedAbAttrs, applyPreAttackAbAttrs, BlockRedirectAbAttr, IncreasePpAbAttr, PokemonTypeChangeAbAttr, PostMoveUsedAbAttr, RedirectMoveAbAttr } from "#app/data/ability.js";
|
||||
import { CommonAnim } from "#app/data/battle-anims.js";
|
||||
import { BattlerTagLapseType, CenterOfAttentionTag } from "#app/data/battler-tags.js";
|
||||
import { allMoves, applyMoveAttrs, BypassRedirectAttr, BypassSleepAttr, ChargeAttr, CopyMoveAttr, HealStatusEffectAttr, MoveFlags, PreMoveMessageAttr } from "#app/data/move.js";
|
||||
import { SpeciesFormChangePreMoveTrigger } from "#app/data/pokemon-forms.js";
|
||||
import { getStatusEffectActivationText, getStatusEffectHealText } from "#app/data/status-effect.js";
|
||||
import { Type } from "#app/data/type.js";
|
||||
import { getTerrainBlockMessage } from "#app/data/weather.js";
|
||||
import { Abilities } from "#app/enums/abilities.js";
|
||||
import { BattlerTagType } from "#app/enums/battler-tag-type.js";
|
||||
import { Moves } from "#app/enums/moves.js";
|
||||
import { StatusEffect } from "#app/enums/status-effect.js";
|
||||
import { MoveUsedEvent } from "#app/events/battle-scene.js";
|
||||
import Pokemon, { MoveResult, PokemonMove, TurnMove } from "#app/field/pokemon.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { applyAbAttrs, applyPostMoveUsedAbAttrs, applyPreAttackAbAttrs, BlockRedirectAbAttr, IncreasePpAbAttr, PokemonTypeChangeAbAttr, PostMoveUsedAbAttr, RedirectMoveAbAttr } from "#app/data/ability";
|
||||
import { CommonAnim } from "#app/data/battle-anims";
|
||||
import { BattlerTagLapseType, CenterOfAttentionTag } from "#app/data/battler-tags";
|
||||
import { allMoves, applyMoveAttrs, BypassRedirectAttr, BypassSleepAttr, ChargeAttr, CopyMoveAttr, HealStatusEffectAttr, MoveFlags, PreMoveMessageAttr } from "#app/data/move";
|
||||
import { SpeciesFormChangePreMoveTrigger } from "#app/data/pokemon-forms";
|
||||
import { getStatusEffectActivationText, getStatusEffectHealText } from "#app/data/status-effect";
|
||||
import { Type } from "#app/data/type";
|
||||
import { getTerrainBlockMessage } from "#app/data/weather";
|
||||
import { Abilities } from "#app/enums/abilities";
|
||||
import { BattlerTagType } from "#app/enums/battler-tag-type";
|
||||
import { Moves } from "#app/enums/moves";
|
||||
import { StatusEffect } from "#app/enums/status-effect";
|
||||
import { MoveUsedEvent } from "#app/events/battle-scene";
|
||||
import Pokemon, { MoveResult, PokemonMove, TurnMove } from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import * as Utils from "#app/utils";
|
||||
import i18next from "i18next";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import { CommonAnimPhase } from "./common-anim-phase";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { applyAbAttrs, PostBiomeChangeAbAttr } from "#app/data/ability.js";
|
||||
import { getRandomWeatherType } from "#app/data/weather.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { applyAbAttrs, PostBiomeChangeAbAttr } from "#app/data/ability";
|
||||
import { getRandomWeatherType } from "#app/data/weather";
|
||||
import { NextEncounterPhase } from "./next-encounter-phase";
|
||||
|
||||
export class NewBiomeEncounterPhase extends NextEncounterPhase {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { EncounterPhase } from "./encounter-phase";
|
||||
|
||||
export class NextEncounterPhase extends EncounterPhase {
|
||||
|
@ -1,10 +1,10 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { CommonBattleAnim, CommonAnim } from "#app/data/battle-anims.js";
|
||||
import { getStatusEffectObtainText, getStatusEffectOverlapText } from "#app/data/status-effect.js";
|
||||
import { StatusEffect } from "#app/enums/status-effect.js";
|
||||
import Pokemon from "#app/field/pokemon.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { CommonBattleAnim, CommonAnim } from "#app/data/battle-anims";
|
||||
import { getStatusEffectObtainText, getStatusEffectOverlapText } from "#app/data/status-effect";
|
||||
import { StatusEffect } from "#app/enums/status-effect";
|
||||
import Pokemon from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
import { PostTurnStatusEffectPhase } from "./post-turn-status-effect-phase";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Phase } from "#app/phase";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
|
||||
export class OutdatedPhase extends Phase {
|
||||
constructor(scene: BattleScene) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import * as Utils from "#app/utils";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
export class PartyHealPhase extends BattlePhase {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import Pokemon from "#app/field/pokemon.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import Pokemon from "#app/field/pokemon";
|
||||
import { FieldPhase } from "./field-phase";
|
||||
|
||||
export abstract class PartyMemberPokemonPhase extends FieldPhase {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Abilities } from "#app/enums/abilities.js";
|
||||
import Pokemon from "#app/field/pokemon.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Abilities } from "#app/enums/abilities";
|
||||
import Pokemon from "#app/field/pokemon";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import { ShowAbilityPhase } from "./show-ability-phase";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { PlayerPokemon } from "#app/field/pokemon.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { PlayerPokemon } from "#app/field/pokemon";
|
||||
import { PartyMemberPokemonPhase } from "./party-member-pokemon-phase";
|
||||
|
||||
export abstract class PlayerPartyMemberPokemonPhase extends PartyMemberPokemonPhase {
|
||||
|
@ -1,14 +1,14 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { CommonAnim } from "#app/data/battle-anims.js";
|
||||
import { getStatusEffectHealText } from "#app/data/status-effect.js";
|
||||
import { StatusEffect } from "#app/enums/status-effect.js";
|
||||
import { HitResult, DamageResult } from "#app/field/pokemon.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { HealingBoosterModifier } from "#app/modifier/modifier.js";
|
||||
import { HealAchv } from "#app/system/achv.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { CommonAnim } from "#app/data/battle-anims";
|
||||
import { getStatusEffectHealText } from "#app/data/status-effect";
|
||||
import { StatusEffect } from "#app/enums/status-effect";
|
||||
import { HitResult, DamageResult } from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { HealingBoosterModifier } from "#app/modifier/modifier";
|
||||
import { HealAchv } from "#app/system/achv";
|
||||
import i18next from "i18next";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { CommonAnimPhase } from "./common-anim-phase";
|
||||
|
||||
export class PokemonHealPhase extends CommonAnimPhase {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import Pokemon from "#app/field/pokemon.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import Pokemon from "#app/field/pokemon";
|
||||
import { FieldPhase } from "./field-phase";
|
||||
|
||||
export abstract class PokemonPhase extends FieldPhase {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Phase } from "#app/phase";
|
||||
import { EndCardPhase } from "./end-card-phase";
|
||||
import { TitlePhase } from "./title-phase";
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { applyPostSummonAbAttrs, PostSummonAbAttr } from "#app/data/ability.js";
|
||||
import { ArenaTrapTag } from "#app/data/arena-tag.js";
|
||||
import { StatusEffect } from "#app/enums/status-effect.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { applyPostSummonAbAttrs, PostSummonAbAttr } from "#app/data/ability";
|
||||
import { ArenaTrapTag } from "#app/data/arena-tag";
|
||||
import { StatusEffect } from "#app/enums/status-effect";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
|
||||
export class PostSummonPhase extends PokemonPhase {
|
||||
|
@ -1,12 +1,12 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { applyAbAttrs, BlockNonDirectDamageAbAttr, BlockStatusDamageAbAttr, ReduceBurnDamageAbAttr } from "#app/data/ability.js";
|
||||
import { CommonBattleAnim, CommonAnim } from "#app/data/battle-anims.js";
|
||||
import { getStatusEffectActivationText } from "#app/data/status-effect.js";
|
||||
import { BattleSpec } from "#app/enums/battle-spec.js";
|
||||
import { StatusEffect } from "#app/enums/status-effect.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { applyAbAttrs, BlockNonDirectDamageAbAttr, BlockStatusDamageAbAttr, ReduceBurnDamageAbAttr } from "#app/data/ability";
|
||||
import { CommonBattleAnim, CommonAnim } from "#app/data/battle-anims";
|
||||
import { getStatusEffectActivationText } from "#app/data/status-effect";
|
||||
import { BattleSpec } from "#app/enums/battle-spec";
|
||||
import { StatusEffect } from "#app/enums/status-effect";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import * as Utils from "#app/utils";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
|
||||
export class PostTurnStatusEffectPhase extends PokemonPhase {
|
||||
|
@ -1,10 +1,10 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { SemiInvulnerableTag } from "#app/data/battler-tags.js";
|
||||
import { SpeciesFormChange, getSpeciesFormChangeMessage } from "#app/data/pokemon-forms.js";
|
||||
import { getTypeRgb } from "#app/data/type.js";
|
||||
import { BattleSpec } from "#app/enums/battle-spec.js";
|
||||
import Pokemon, { EnemyPokemon } from "#app/field/pokemon.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { SemiInvulnerableTag } from "#app/data/battler-tags";
|
||||
import { SpeciesFormChange, getSpeciesFormChangeMessage } from "#app/data/pokemon-forms";
|
||||
import { getTypeRgb } from "#app/data/type";
|
||||
import { BattleSpec } from "#app/enums/battle-spec";
|
||||
import Pokemon, { EnemyPokemon } from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import { MovePhase } from "./move-phase";
|
||||
import { PokemonHealPhase } from "./pokemon-heal-phase";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Phase } from "#app/phase";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import * as Utils from "#app/utils";
|
||||
|
||||
export class ReloadSessionPhase extends Phase {
|
||||
private systemDataStr: string | null;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { SpeciesFormChangeActiveTrigger } from "#app/data/pokemon-forms.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { SpeciesFormChangeActiveTrigger } from "#app/data/pokemon-forms";
|
||||
import { SwitchSummonPhase } from "./switch-summon-phase";
|
||||
|
||||
export class ReturnPhase extends SwitchSummonPhase {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import PokemonSpecies from "#app/data/pokemon-species.js";
|
||||
import { ModifierTypeFunc } from "#app/modifier/modifier-type.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import PokemonSpecies from "#app/data/pokemon-species";
|
||||
import { ModifierTypeFunc } from "#app/modifier/modifier-type";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
import { ModifierRewardPhase } from "./modifier-reward-phase";
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { CommonBattleAnim, CommonAnim } from "#app/data/battle-anims.js";
|
||||
import { Stat } from "#app/enums/stat.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { getTextColor, TextStyle } from "#app/ui/text.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { CommonBattleAnim, CommonAnim } from "#app/data/battle-anims";
|
||||
import { Stat } from "#app/enums/stat";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { getTextColor, TextStyle } from "#app/ui/text";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { biomeLinks, getBiomeName } from "#app/data/biomes.js";
|
||||
import { Biome } from "#app/enums/biome.js";
|
||||
import { MoneyInterestModifier, MapModifier } from "#app/modifier/modifier.js";
|
||||
import { OptionSelectItem } from "#app/ui/abstact-option-select-ui-handler.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { biomeLinks, getBiomeName } from "#app/data/biomes";
|
||||
import { Biome } from "#app/enums/biome";
|
||||
import { MoneyInterestModifier, MapModifier } from "#app/modifier/modifier";
|
||||
import { OptionSelectItem } from "#app/ui/abstact-option-select-ui-handler";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { PartyHealPhase } from "./party-heal-phase";
|
||||
import { SwitchBiomePhase } from "./switch-biome-phase";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Phase } from "#app/phase";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
|
||||
export class SelectChallengePhase extends Phase {
|
||||
constructor(scene: BattleScene) {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { PlayerGender } from "#app/enums/player-gender.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { SettingKeys } from "#app/system/settings/settings.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { PlayerGender } from "#app/enums/player-gender";
|
||||
import { Phase } from "#app/phase";
|
||||
import { SettingKeys } from "#app/system/settings/settings";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
|
||||
export class SelectGenderPhase extends Phase {
|
||||
|
@ -1,12 +1,12 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { ModifierTier } from "#app/modifier/modifier-tier.js";
|
||||
import { regenerateModifierPoolThresholds, ModifierTypeOption, ModifierType, getPlayerShopModifierTypeOptionsForWave, PokemonModifierType, FusePokemonModifierType, PokemonMoveModifierType, TmModifierType, RememberMoveModifierType, PokemonPpRestoreModifierType, PokemonPpUpModifierType, ModifierPoolType, getPlayerModifierTypeOptions } from "#app/modifier/modifier-type.js";
|
||||
import { ExtraModifierModifier, Modifier, PokemonHeldItemModifier } from "#app/modifier/modifier.js";
|
||||
import ModifierSelectUiHandler, { SHOP_OPTIONS_ROW_LIMIT } from "#app/ui/modifier-select-ui-handler.js";
|
||||
import PartyUiHandler, { PartyUiMode, PartyOption } from "#app/ui/party-ui-handler.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { ModifierTier } from "#app/modifier/modifier-tier";
|
||||
import { regenerateModifierPoolThresholds, ModifierTypeOption, ModifierType, getPlayerShopModifierTypeOptionsForWave, PokemonModifierType, FusePokemonModifierType, PokemonMoveModifierType, TmModifierType, RememberMoveModifierType, PokemonPpRestoreModifierType, PokemonPpUpModifierType, ModifierPoolType, getPlayerModifierTypeOptions } from "#app/modifier/modifier-type";
|
||||
import { ExtraModifierModifier, Modifier, PokemonHeldItemModifier } from "#app/modifier/modifier";
|
||||
import ModifierSelectUiHandler, { SHOP_OPTIONS_ROW_LIMIT } from "#app/ui/modifier-select-ui-handler";
|
||||
import PartyUiHandler, { PartyUiMode, PartyOption } from "#app/ui/party-ui-handler";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import Overrides from "#app/overrides";
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { applyChallenges, ChallengeType } from "#app/data/challenge.js";
|
||||
import { Gender } from "#app/data/gender.js";
|
||||
import { SpeciesFormChangeMoveLearnedTrigger } from "#app/data/pokemon-forms.js";
|
||||
import { getPokemonSpecies } from "#app/data/pokemon-species.js";
|
||||
import { Species } from "#app/enums/species.js";
|
||||
import { PlayerPokemon } from "#app/field/pokemon.js";
|
||||
import { overrideModifiers, overrideHeldItems } from "#app/modifier/modifier.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { SaveSlotUiMode } from "#app/ui/save-slot-select-ui-handler.js";
|
||||
import { Starter } from "#app/ui/starter-select-ui-handler.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { applyChallenges, ChallengeType } from "#app/data/challenge";
|
||||
import { Gender } from "#app/data/gender";
|
||||
import { SpeciesFormChangeMoveLearnedTrigger } from "#app/data/pokemon-forms";
|
||||
import { getPokemonSpecies } from "#app/data/pokemon-species";
|
||||
import { Species } from "#app/enums/species";
|
||||
import { PlayerPokemon } from "#app/field/pokemon";
|
||||
import { overrideModifiers, overrideHeldItems } from "#app/modifier/modifier";
|
||||
import { Phase } from "#app/phase";
|
||||
import { SaveSlotUiMode } from "#app/ui/save-slot-select-ui-handler";
|
||||
import { Starter } from "#app/ui/starter-select-ui-handler";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import SoundFade from "phaser3-rex-plugins/plugins/soundfade";
|
||||
import { TitlePhase } from "./title-phase";
|
||||
import Overrides from "#app/overrides";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { Command } from "#app/ui/command-ui-handler.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { Command } from "#app/ui/command-ui-handler";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import { CommandPhase } from "./command-phase";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
|
||||
export class ShinySparklePhase extends PokemonPhase {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { PokemonPhase } from "./pokemon-phase";
|
||||
|
||||
export class ShowAbilityPhase extends PokemonPhase {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { ExpNotification } from "#app/enums/exp-notification.js";
|
||||
import { ExpBoosterModifier } from "#app/modifier/modifier.js";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { ExpNotification } from "#app/enums/exp-notification";
|
||||
import { ExpBoosterModifier } from "#app/modifier/modifier";
|
||||
import * as Utils from "#app/utils";
|
||||
import { HidePartyExpBarPhase } from "./hide-party-exp-bar-phase";
|
||||
import { LevelUpPhase } from "./level-up-phase";
|
||||
import { PlayerPartyMemberPokemonPhase } from "./player-party-member-pokemon-phase";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { PlayerGender } from "#app/enums/player-gender.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { PlayerGender } from "#app/enums/player-gender";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
export class ShowTrainerPhase extends BattlePhase {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import i18next from "i18next";
|
||||
import { SummonPhase } from "./summon-phase";
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattleType } from "#app/battle.js";
|
||||
import { getPokeballAtlasKey, getPokeballTintColor } from "#app/data/pokeball.js";
|
||||
import { SpeciesFormChangeActiveTrigger } from "#app/data/pokemon-forms.js";
|
||||
import { TrainerSlot } from "#app/data/trainer-config.js";
|
||||
import { PlayerGender } from "#app/enums/player-gender.js";
|
||||
import { addPokeballOpenParticles } from "#app/field/anims.js";
|
||||
import Pokemon, { FieldPosition } from "#app/field/pokemon.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattleType } from "#app/battle";
|
||||
import { getPokeballAtlasKey, getPokeballTintColor } from "#app/data/pokeball";
|
||||
import { SpeciesFormChangeActiveTrigger } from "#app/data/pokemon-forms";
|
||||
import { TrainerSlot } from "#app/data/trainer-config";
|
||||
import { PlayerGender } from "#app/enums/player-gender";
|
||||
import { addPokeballOpenParticles } from "#app/field/anims";
|
||||
import Pokemon, { FieldPosition } from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import i18next from "i18next";
|
||||
import { PartyMemberPokemonPhase } from "./party-member-pokemon-phase";
|
||||
import { PostSummonPhase } from "./post-summon-phase";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Biome } from "#app/enums/biome.js";
|
||||
import { getBiomeKey } from "#app/field/arena.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Biome } from "#app/enums/biome";
|
||||
import { getBiomeKey } from "#app/field/arena";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
export class SwitchBiomePhase extends BattlePhase {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import PartyUiHandler, { PartyUiMode, PartyOption } from "#app/ui/party-ui-handler.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import PartyUiHandler, { PartyUiMode, PartyOption } from "#app/ui/party-ui-handler";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import { SwitchSummonPhase } from "./switch-summon-phase";
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { applyPreSwitchOutAbAttrs, PreSwitchOutAbAttr } from "#app/data/ability.js";
|
||||
import { allMoves, ForceSwitchOutAttr } from "#app/data/move.js";
|
||||
import { getPokeballTintColor } from "#app/data/pokeball.js";
|
||||
import { SpeciesFormChangeActiveTrigger } from "#app/data/pokemon-forms.js";
|
||||
import { TrainerSlot } from "#app/data/trainer-config.js";
|
||||
import Pokemon from "#app/field/pokemon.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { SwitchEffectTransferModifier } from "#app/modifier/modifier.js";
|
||||
import { Command } from "#app/ui/command-ui-handler.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { applyPreSwitchOutAbAttrs, PreSwitchOutAbAttr } from "#app/data/ability";
|
||||
import { allMoves, ForceSwitchOutAttr } from "#app/data/move";
|
||||
import { getPokeballTintColor } from "#app/data/pokeball";
|
||||
import { SpeciesFormChangeActiveTrigger } from "#app/data/pokemon-forms";
|
||||
import { TrainerSlot } from "#app/data/trainer-config";
|
||||
import Pokemon from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { SwitchEffectTransferModifier } from "#app/modifier/modifier";
|
||||
import { Command } from "#app/ui/command-ui-handler";
|
||||
import i18next from "i18next";
|
||||
import { PostSummonPhase } from "./post-summon-phase";
|
||||
import { SummonPhase } from "./summon-phase";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { MessagePhase } from "./message-phase";
|
||||
|
||||
export class TestMessagePhase extends MessagePhase {
|
||||
|
@ -1,21 +1,21 @@
|
||||
import { loggedInUser } from "#app/account.js";
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattleType } from "#app/battle.js";
|
||||
import { getDailyRunStarters, fetchDailyRunSeed } from "#app/data/daily-run.js";
|
||||
import { Gender } from "#app/data/gender.js";
|
||||
import { getBiomeKey } from "#app/field/arena.js";
|
||||
import { GameModes, GameMode, getGameMode } from "#app/game-mode.js";
|
||||
import { regenerateModifierPoolThresholds, ModifierPoolType, modifierTypes, getDailyRunStarterModifiers } from "#app/modifier/modifier-type.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { SessionSaveData } from "#app/system/game-data.js";
|
||||
import { Unlockables } from "#app/system/unlockables.js";
|
||||
import { vouchers } from "#app/system/voucher.js";
|
||||
import { OptionSelectItem, OptionSelectConfig } from "#app/ui/abstact-option-select-ui-handler.js";
|
||||
import { SaveSlotUiMode } from "#app/ui/save-slot-select-ui-handler.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import { loggedInUser } from "#app/account";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattleType } from "#app/battle";
|
||||
import { getDailyRunStarters, fetchDailyRunSeed } from "#app/data/daily-run";
|
||||
import { Gender } from "#app/data/gender";
|
||||
import { getBiomeKey } from "#app/field/arena";
|
||||
import { GameModes, GameMode, getGameMode } from "#app/game-mode";
|
||||
import { regenerateModifierPoolThresholds, ModifierPoolType, modifierTypes, getDailyRunStarterModifiers } from "#app/modifier/modifier-type";
|
||||
import { Phase } from "#app/phase";
|
||||
import { SessionSaveData } from "#app/system/game-data";
|
||||
import { Unlockables } from "#app/system/unlockables";
|
||||
import { vouchers } from "#app/system/voucher";
|
||||
import { OptionSelectItem, OptionSelectConfig } from "#app/ui/abstact-option-select-ui-handler";
|
||||
import { SaveSlotUiMode } from "#app/ui/save-slot-select-ui-handler";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import { Modifier } from "#app/modifier/modifier.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { Modifier } from "#app/modifier/modifier";
|
||||
import { CheckSwitchPhase } from "./check-switch-phase";
|
||||
import { EncounterPhase } from "./encounter-phase";
|
||||
import { SelectChallengePhase } from "./select-challenge-phase";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { FieldPosition } from "#app/field/pokemon.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { FieldPosition } from "#app/field/pokemon";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
|
||||
export class ToggleDoublePositionPhase extends BattlePhase {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { trainerConfigs } from "#app/data/trainer-config.js";
|
||||
import { TrainerType } from "#app/enums/trainer-type.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { trainerConfigs } from "#app/data/trainer-config";
|
||||
import { TrainerType } from "#app/enums/trainer-type";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import { TestMessagePhase } from "./test-message-phase";
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { getCharVariantFromDialogue } from "#app/data/dialogue.js";
|
||||
import { TrainerType } from "#app/enums/trainer-type.js";
|
||||
import { modifierTypes } from "#app/modifier/modifier-type.js";
|
||||
import { vouchers } from "#app/system/voucher.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { getCharVariantFromDialogue } from "#app/data/dialogue";
|
||||
import { TrainerType } from "#app/enums/trainer-type";
|
||||
import { modifierTypes } from "#app/modifier/modifier-type";
|
||||
import { vouchers } from "#app/system/voucher";
|
||||
import i18next from "i18next";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import * as Utils from "#app/utils";
|
||||
import { BattlePhase } from "./battle-phase";
|
||||
import { ModifierRewardPhase } from "./modifier-reward-phase";
|
||||
import { MoneyRewardPhase } from "./money-reward-phase";
|
||||
|
@ -1,12 +1,12 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { applyPostTurnAbAttrs, PostTurnAbAttr } from "#app/data/ability.js";
|
||||
import { BattlerTagLapseType } from "#app/data/battler-tags.js";
|
||||
import { TerrainType } from "#app/data/terrain.js";
|
||||
import { WeatherType } from "#app/enums/weather-type.js";
|
||||
import { TurnEndEvent } from "#app/events/battle-scene.js";
|
||||
import Pokemon from "#app/field/pokemon.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { TurnHealModifier, EnemyTurnHealModifier, EnemyStatusEffectHealChanceModifier, TurnStatusEffectModifier, TurnHeldItemTransferModifier } from "#app/modifier/modifier.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { applyPostTurnAbAttrs, PostTurnAbAttr } from "#app/data/ability";
|
||||
import { BattlerTagLapseType } from "#app/data/battler-tags";
|
||||
import { TerrainType } from "#app/data/terrain";
|
||||
import { WeatherType } from "#app/enums/weather-type";
|
||||
import { TurnEndEvent } from "#app/events/battle-scene";
|
||||
import Pokemon from "#app/field/pokemon";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import { TurnHealModifier, EnemyTurnHealModifier, EnemyStatusEffectHealChanceModifier, TurnStatusEffectModifier, TurnHeldItemTransferModifier } from "#app/modifier/modifier";
|
||||
import i18next from "i18next";
|
||||
import { FieldPhase } from "./field-phase";
|
||||
import { PokemonHealPhase } from "./pokemon-heal-phase";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { TurnInitEvent } from "#app/events/battle-scene.js";
|
||||
import { PlayerPokemon } from "#app/field/pokemon.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import { TurnInitEvent } from "#app/events/battle-scene";
|
||||
import { PlayerPokemon } from "#app/field/pokemon";
|
||||
import i18next from "i18next";
|
||||
import { FieldPhase } from "./field-phase";
|
||||
import { ToggleDoublePositionPhase } from "./toggle-double-position-phase";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Phase } from "#app/phase";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import { LoginPhase } from "./login-phase";
|
||||
|
||||
export class UnavailablePhase extends Phase {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { Phase } from "#app/phase.js";
|
||||
import { Unlockables, getUnlockableName } from "#app/system/unlockables.js";
|
||||
import { Mode } from "#app/ui/ui.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { Phase } from "#app/phase";
|
||||
import { Unlockables, getUnlockableName } from "#app/system/unlockables";
|
||||
import { Mode } from "#app/ui/ui";
|
||||
import i18next from "i18next";
|
||||
|
||||
export class UnlockPhase extends Phase {
|
||||
|
@ -1,8 +1,8 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import { BattlerIndex, BattleType } from "#app/battle.js";
|
||||
import { modifierTypes } from "#app/modifier/modifier-type.js";
|
||||
import { ExpShareModifier, ExpBalanceModifier, MultipleParticipantExpBonusModifier, PokemonExpBoosterModifier } from "#app/modifier/modifier.js";
|
||||
import * as Utils from "#app/utils.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { BattlerIndex, BattleType } from "#app/battle";
|
||||
import { modifierTypes } from "#app/modifier/modifier-type";
|
||||
import { ExpShareModifier, ExpBalanceModifier, MultipleParticipantExpBonusModifier, PokemonExpBoosterModifier } from "#app/modifier/modifier";
|
||||
import * as Utils from "#app/utils";
|
||||
import Overrides from "#app/overrides";
|
||||
import { BattleEndPhase } from "./battle-end-phase";
|
||||
import { NewBattlePhase } from "./new-battle-phase";
|
||||
|
@ -2,7 +2,7 @@ import BattleScene from "#app/battle-scene";
|
||||
import { applyPreWeatherEffectAbAttrs, SuppressWeatherEffectAbAttr, PreWeatherDamageAbAttr, applyAbAttrs, BlockNonDirectDamageAbAttr, applyPostWeatherLapseAbAttrs, PostWeatherLapseAbAttr } from "#app/data/ability.js";
|
||||
import { CommonAnim } from "#app/data/battle-anims";
|
||||
import { Weather, getWeatherDamageMessage, getWeatherLapseMessage } from "#app/data/weather";
|
||||
import { BattlerTagType } from "#app/enums/battler-tag-type.js";
|
||||
import { BattlerTagType } from "#app/enums/battler-tag-type";
|
||||
import { WeatherType } from "#app/enums/weather-type";
|
||||
import Pokemon, { HitResult } from "#app/field/pokemon";
|
||||
import * as Utils from "#app/utils";
|
||||
|
@ -2,17 +2,17 @@ import i18next from "i18next";
|
||||
import LanguageDetector from "i18next-browser-languagedetector";
|
||||
import processor, { KoreanPostpositionProcessor } from "i18next-korean-postposition-processor";
|
||||
|
||||
import { caEsConfig} from "#app/locales/ca_ES/config.js";
|
||||
import { deConfig } from "#app/locales/de/config.js";
|
||||
import { enConfig } from "#app/locales/en/config.js";
|
||||
import { esConfig } from "#app/locales/es/config.js";
|
||||
import { frConfig } from "#app/locales/fr/config.js";
|
||||
import { itConfig } from "#app/locales/it/config.js";
|
||||
import { koConfig } from "#app/locales/ko/config.js";
|
||||
import { jaConfig } from "#app/locales/ja/config.js";
|
||||
import { ptBrConfig } from "#app/locales/pt_BR/config.js";
|
||||
import { zhCnConfig } from "#app/locales/zh_CN/config.js";
|
||||
import { zhTwConfig } from "#app/locales/zh_TW/config.js";
|
||||
import { caEsConfig} from "#app/locales/ca_ES/config";
|
||||
import { deConfig } from "#app/locales/de/config";
|
||||
import { enConfig } from "#app/locales/en/config";
|
||||
import { esConfig } from "#app/locales/es/config";
|
||||
import { frConfig } from "#app/locales/fr/config";
|
||||
import { itConfig } from "#app/locales/it/config";
|
||||
import { koConfig } from "#app/locales/ko/config";
|
||||
import { jaConfig } from "#app/locales/ja/config";
|
||||
import { ptBrConfig } from "#app/locales/pt_BR/config";
|
||||
import { zhCnConfig } from "#app/locales/zh_CN/config";
|
||||
import { zhTwConfig } from "#app/locales/zh_TW/config";
|
||||
|
||||
interface LoadingFontFaceProperty {
|
||||
face: FontFace,
|
||||
|
@ -2,7 +2,7 @@ import { Arena } from "../field/arena";
|
||||
import { ArenaTag } from "../data/arena-tag";
|
||||
import { Biome } from "#enums/biome";
|
||||
import { Weather } from "../data/weather";
|
||||
import { Terrain } from "#app/data/terrain.js";
|
||||
import { Terrain } from "#app/data/terrain";
|
||||
|
||||
export default class ArenaData {
|
||||
public biome: Biome;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Challenge, copyChallenge } from "#app/data/challenge.js";
|
||||
import { Challenge, copyChallenge } from "#app/data/challenge";
|
||||
|
||||
export default class ChallengeData {
|
||||
public id: integer;
|
||||
|
@ -2,7 +2,7 @@ import { EggTier } from "#enums/egg-type";
|
||||
import { Species } from "#enums/species";
|
||||
import { VariantTier } from "#enums/variant-tiers";
|
||||
import { EGG_SEED, Egg } from "../data/egg";
|
||||
import { EggSourceType } from "#app/enums/egg-source-types.js";
|
||||
import { EggSourceType } from "#app/enums/egg-source-types";
|
||||
|
||||
export default class EggData {
|
||||
public id: integer;
|
||||
|
@ -30,20 +30,20 @@ import { TrainerVariant } from "../field/trainer";
|
||||
import { Variant } from "#app/data/variant";
|
||||
import {setSettingGamepad, SettingGamepad, settingGamepadDefaults} from "./settings/settings-gamepad";
|
||||
import {setSettingKeyboard, SettingKeyboard} from "#app/system/settings/settings-keyboard";
|
||||
import { TerrainChangedEvent, WeatherChangedEvent } from "#app/events/arena.js";
|
||||
import { EnemyAttackStatusEffectChanceModifier } from "../modifier/modifier";
|
||||
import { StatusEffect } from "#app/data/status-effect.js";
|
||||
import { TerrainChangedEvent, WeatherChangedEvent } from "#app/events/arena";
|
||||
import * as Modifier from "../modifier/modifier";
|
||||
import { StatusEffect } from "#app/data/status-effect";
|
||||
import ChallengeData from "./challenge-data";
|
||||
import { Device } from "#enums/devices";
|
||||
import { GameDataType } from "#enums/game-data-type";
|
||||
import { Moves } from "#enums/moves";
|
||||
import { PlayerGender } from "#enums/player-gender";
|
||||
import { Species } from "#enums/species";
|
||||
import { applyChallenges, ChallengeType } from "#app/data/challenge.js";
|
||||
import { WeatherType } from "#app/enums/weather-type.js";
|
||||
import { TerrainType } from "#app/data/terrain.js";
|
||||
import { OutdatedPhase } from "#app/phases/outdated-phase.js";
|
||||
import { ReloadSessionPhase } from "#app/phases/reload-session-phase.js";
|
||||
import { applyChallenges, ChallengeType } from "#app/data/challenge";
|
||||
import { WeatherType } from "#app/enums/weather-type";
|
||||
import { TerrainType } from "#app/data/terrain";
|
||||
import { OutdatedPhase } from "#app/phases/outdated-phase";
|
||||
import { ReloadSessionPhase } from "#app/phases/reload-session-phase";
|
||||
import { RUN_HISTORY_LIMIT } from "#app/ui/run-history-ui-handler";
|
||||
import { applySessionDataPatches, applySettingsDataPatches, applySystemDataPatches } from "./version-converter";
|
||||
|
||||
@ -1065,10 +1065,8 @@ export class GameData {
|
||||
// TODO
|
||||
//scene.arena.tags = sessionData.arena.tags;
|
||||
|
||||
const modifiersModule = await import("../modifier/modifier");
|
||||
|
||||
for (const modifierData of sessionData.modifiers) {
|
||||
const modifier = modifierData.toModifier(scene, modifiersModule[modifierData.className]);
|
||||
const modifier = modifierData.toModifier(scene, Modifier[modifierData.className]);
|
||||
if (modifier) {
|
||||
scene.addModifier(modifier, true);
|
||||
}
|
||||
@ -1077,7 +1075,7 @@ export class GameData {
|
||||
scene.updateModifiers(true);
|
||||
|
||||
for (const enemyModifierData of sessionData.enemyModifiers) {
|
||||
const modifier = enemyModifierData.toModifier(scene, modifiersModule[enemyModifierData.className]);
|
||||
const modifier = enemyModifierData.toModifier(scene, Modifier[enemyModifierData.className]);
|
||||
if (modifier) {
|
||||
scene.addEnemyModifier(modifier, true);
|
||||
}
|
||||
@ -1233,7 +1231,7 @@ export class GameData {
|
||||
if (md?.className === "ExpBalanceModifier") { // Temporarily limit EXP Balance until it gets reworked
|
||||
md.stackCount = Math.min(md.stackCount, 4);
|
||||
}
|
||||
if (md instanceof EnemyAttackStatusEffectChanceModifier && md.effect === StatusEffect.FREEZE || md.effect === StatusEffect.SLEEP) {
|
||||
if (md instanceof Modifier.EnemyAttackStatusEffectChanceModifier && md.effect === StatusEffect.FREEZE || md.effect === StatusEffect.SLEEP) {
|
||||
continue;
|
||||
}
|
||||
ret.push(new PersistentModifierData(md, player));
|
||||
|
@ -8,7 +8,7 @@ import SettingsUiHandler from "#app/ui/settings/settings-ui-handler";
|
||||
import { EaseType } from "#enums/ease-type";
|
||||
import { MoneyFormat } from "#enums/money-format";
|
||||
import { PlayerGender } from "#enums/player-gender";
|
||||
import { getIsInitialized, initI18n } from "#app/plugins/i18n.js";
|
||||
import { getIsInitialized, initI18n } from "#app/plugins/i18n";
|
||||
import { ShopCursorTarget } from "#app/enums/shop-cursor-target";
|
||||
|
||||
function getTranslation(key: string): string {
|
||||
|
@ -3,8 +3,8 @@ import i18next from "i18next";
|
||||
import { AchvTier, achvs, getAchievementDescription } from "./achv";
|
||||
import { PlayerGender } from "#enums/player-gender";
|
||||
import { TrainerType } from "#enums/trainer-type";
|
||||
import { ConditionFn } from "#app/@types/common.js";
|
||||
import { trainerConfigs } from "#app/data/trainer-config.js";
|
||||
import { ConditionFn } from "#app/@types/common";
|
||||
import { trainerConfigs } from "#app/data/trainer-config";
|
||||
|
||||
export enum VoucherType {
|
||||
REGULAR,
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Abilities } from "#app/enums/abilities";
|
||||
import { Moves } from "#app/enums/moves";
|
||||
import { Species } from "#app/enums/species";
|
||||
import { HitResult } from "#app/field/pokemon.js";
|
||||
import { HitResult } from "#app/field/pokemon";
|
||||
import GameManager from "#test/utils/gameManager";
|
||||
import Phaser from "phaser";
|
||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { DamagePhase } from "#app/phases/damage-phase.js";
|
||||
import { DamagePhase } from "#app/phases/damage-phase";
|
||||
import { toDmgValue } from "#app/utils";
|
||||
import { Abilities } from "#enums/abilities";
|
||||
import { ArenaTagType } from "#enums/arena-tag-type";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { BattlerIndex } from "#app/battle.js";
|
||||
import { BattlerIndex } from "#app/battle";
|
||||
import GameManager from "#app/test/utils/gameManager";
|
||||
import { Moves } from "#enums/moves";
|
||||
import { Species } from "#enums/species";
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { StatusEffect } from "#app/enums/status-effect.js";
|
||||
import { CommandPhase } from "#app/phases/command-phase.js";
|
||||
import { StatusEffect } from "#app/enums/status-effect";
|
||||
import { CommandPhase } from "#app/phases/command-phase";
|
||||
import { Abilities } from "#enums/abilities";
|
||||
import { Moves } from "#enums/moves";
|
||||
import { Species } from "#enums/species";
|
||||
|
@ -1,12 +1,12 @@
|
||||
import { StatusEffect } from "#app/data/status-effect.js";
|
||||
import { StatusEffect } from "#app/data/status-effect";
|
||||
import { Weather, WeatherType } from "#app/data/weather";
|
||||
import { Abilities } from "#app/enums/abilities.js";
|
||||
import { Abilities } from "#app/enums/abilities";
|
||||
import { Biome } from "#app/enums/biome";
|
||||
import { Moves } from "#app/enums/moves.js";
|
||||
import { Species } from "#app/enums/species.js";
|
||||
import { Moves } from "#app/enums/moves";
|
||||
import { Species } from "#app/enums/species";
|
||||
import * as GameMode from "#app/game-mode";
|
||||
import { GameModes, getGameMode } from "#app/game-mode";
|
||||
import { ModifierOverride } from "#app/modifier/modifier-type.js";
|
||||
import { ModifierOverride } from "#app/modifier/modifier-type";
|
||||
import Overrides from "#app/overrides";
|
||||
import { vi } from "vitest";
|
||||
import { GameManagerHelper } from "./gameManagerHelper";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Moves } from "#app/enums/moves.js";
|
||||
import { Moves } from "#app/enums/moves";
|
||||
import i18next, { type ParseKeys } from "i18next";
|
||||
import { vi } from "vitest";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { getPokemonNameWithAffix } from "#app/messages.js";
|
||||
import { getPokemonNameWithAffix } from "#app/messages";
|
||||
import BattleScene from "../battle-scene";
|
||||
import Pokemon from "../field/pokemon";
|
||||
import { TextStyle, addTextObject } from "./text";
|
||||
|
@ -1,9 +1,9 @@
|
||||
import BattleScene from "#app/battle-scene.js";
|
||||
import BattleScene from "#app/battle-scene";
|
||||
import { ModalConfig } from "./modal-ui-handler";
|
||||
import { Mode } from "./ui";
|
||||
import * as Utils from "../utils";
|
||||
import { FormModalUiHandler } from "./form-modal-ui-handler";
|
||||
import { Button } from "#app/enums/buttons.js";
|
||||
import { Button } from "#app/enums/buttons";
|
||||
|
||||
export default class AdminUiHandler extends FormModalUiHandler {
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user