mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Merged interfaces
into @types
; removed several instances of orphaned moudles
This commit is contained in:
parent
c5db827381
commit
97eabbf6ba
@ -2,8 +2,8 @@ import type { EnemyPokemon } from "#app/field/pokemon";
|
||||
import type { PersistentModifier } from "#app/modifier/modifier";
|
||||
import type { PartyMemberStrength } from "#enums/party-member-strength";
|
||||
import type { SpeciesId } from "#enums/species-id";
|
||||
import type { TrainerConfig } from "./trainer-config";
|
||||
import type { TrainerPartyTemplate } from "./TrainerPartyTemplate";
|
||||
import type { TrainerConfig } from "../data/trainers/trainer-config";
|
||||
import type { TrainerPartyTemplate } from "../data/trainers/TrainerPartyTemplate";
|
||||
|
||||
export type PartyTemplateFunc = () => TrainerPartyTemplate;
|
||||
export type PartyMemberFunc = (level: number, strength: PartyMemberStrength) => EnemyPokemon;
|
@ -120,7 +120,7 @@ import { SceneBase } from "#app/scene-base";
|
||||
import CandyBar from "#app/ui/candy-bar";
|
||||
import type { Variant } from "#app/sprites/variant";
|
||||
import { variantData, clearVariantData } from "#app/sprites/variant";
|
||||
import type { Localizable } from "#app/interfaces/locales";
|
||||
import type { Localizable } from "#app/@types/locales";
|
||||
import Overrides from "#app/overrides";
|
||||
import { InputsController } from "#app/inputs-controller";
|
||||
import { UiInputs } from "#app/ui-inputs";
|
||||
@ -169,7 +169,7 @@ import {
|
||||
import { MysteryEncounterSaveData } from "#app/data/mystery-encounters/mystery-encounter-save-data";
|
||||
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
||||
import { MysteryEncounterTier } from "#enums/mystery-encounter-tier";
|
||||
import type HeldModifierConfig from "#app/interfaces/held-modifier-config";
|
||||
import type HeldModifierConfig from "#app/@types/held-modifier-config";
|
||||
import { ExpPhase } from "#app/phases/exp-phase";
|
||||
import { ShowPartyExpBarPhase } from "#app/phases/show-party-exp-bar-phase";
|
||||
import { MysteryEncounterMode } from "#enums/mystery-encounter-mode";
|
||||
|
@ -33,7 +33,7 @@ import {
|
||||
} from "#app/data/mystery-encounters/utils/encounter-pokemon-utils";
|
||||
import { TrainerSlot } from "#enums/trainer-slot";
|
||||
import { PokeballType } from "#enums/pokeball";
|
||||
import type HeldModifierConfig from "#app/interfaces/held-modifier-config";
|
||||
import type HeldModifierConfig from "#app/@types/held-modifier-config";
|
||||
import type { BerryType } from "#enums/berry-type";
|
||||
import { StatStageChangePhase } from "#app/phases/stat-stage-change-phase";
|
||||
import { Stat } from "#enums/stat";
|
||||
|
@ -25,7 +25,7 @@ import { MysteryEncounterOptionBuilder } from "#app/data/mystery-encounters/myst
|
||||
import { queueEncounterMessage, showEncounterText } from "#app/data/mystery-encounters/utils/encounter-dialogue-utils";
|
||||
import { MysteryEncounterTier } from "#enums/mystery-encounter-tier";
|
||||
import { MysteryEncounterOptionMode } from "#enums/mystery-encounter-option-mode";
|
||||
import type HeldModifierConfig from "#app/interfaces/held-modifier-config";
|
||||
import type HeldModifierConfig from "#app/@types/held-modifier-config";
|
||||
import i18next from "i18next";
|
||||
import { getStatKey } from "#enums/stat";
|
||||
import { CLASSIC_MODE_MYSTERY_ENCOUNTER_WAVES } from "#app/constants";
|
||||
|
@ -39,7 +39,7 @@ import { PlayerGender } from "#enums/player-gender";
|
||||
import { TrainerType } from "#enums/trainer-type";
|
||||
import PokemonData from "#app/system/pokemon-data";
|
||||
import { Nature } from "#enums/nature";
|
||||
import type HeldModifierConfig from "#app/interfaces/held-modifier-config";
|
||||
import type HeldModifierConfig from "#app/@types/held-modifier-config";
|
||||
import { trainerConfigs } from "#app/data/trainers/trainer-config";
|
||||
import { TrainerPartyTemplate } from "#app/data/trainers/TrainerPartyTemplate";
|
||||
import { PartyMemberStrength } from "#enums/party-member-strength";
|
||||
|
@ -50,7 +50,7 @@ import type PokemonSpecies from "#app/data/pokemon-species";
|
||||
import type { IEggOptions } from "#app/data/egg";
|
||||
import { Egg } from "#app/data/egg";
|
||||
import type { CustomPokemonData } from "#app/data/custom-pokemon-data";
|
||||
import type HeldModifierConfig from "#app/interfaces/held-modifier-config";
|
||||
import type HeldModifierConfig from "#app/@types/held-modifier-config";
|
||||
import { MovePhase } from "#app/phases/move-phase";
|
||||
import { EggLapsePhase } from "#app/phases/egg-lapse-phase";
|
||||
import { TrainerVictoryPhase } from "#app/phases/trainer-victory-phase";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type { TrainerTierPools } from "#app/data/trainers/typedefs";
|
||||
import type { TrainerTierPools } from "#app/@types/trainer-funcs";
|
||||
import { TrainerPoolTier } from "#enums/trainer-pool-tier";
|
||||
import { SpeciesId } from "#enums/species-id";
|
||||
|
||||
|
@ -48,7 +48,7 @@ import type {
|
||||
TrainerTierPools,
|
||||
TrainerConfigs,
|
||||
PartyMemberFuncs,
|
||||
} from "./typedefs";
|
||||
} from "../../@types/trainer-funcs";
|
||||
|
||||
/** Minimum BST for Pokemon generated onto the Elite Four's teams */
|
||||
const ELITE_FOUR_MINIMUM_BST = 460;
|
||||
|
17
src/debug.js
17
src/debug.js
@ -1,17 +0,0 @@
|
||||
export function getData() {
|
||||
const dataStr = localStorage.getItem("data");
|
||||
if (!dataStr) {
|
||||
return null;
|
||||
}
|
||||
return JSON.parse(atob(dataStr), (k, v) =>
|
||||
k.endsWith("Attr") && !["natureAttr", "abilityAttr", "passiveAttr"].includes(k) ? BigInt(v) : v,
|
||||
);
|
||||
}
|
||||
|
||||
export function getSession() {
|
||||
const sessionStr = localStorage.getItem("sessionData");
|
||||
if (!sessionStr) {
|
||||
return null;
|
||||
}
|
||||
return JSON.parse(atob(sessionStr));
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
export const starterColors: StarterColors = {};
|
||||
interface StarterColors {
|
||||
export const starterColors: {
|
||||
[key: string]: [string, string];
|
||||
}
|
||||
} = {};
|
||||
|
@ -1,4 +0,0 @@
|
||||
export const starterColors: StarterColors = {};
|
||||
interface StarterColors {
|
||||
[key: string]: [string, string];
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
import type { GameModes } from "../game-mode";
|
||||
import type PokemonData from "./pokemon-data";
|
||||
import type PersistentModifierData from "./modifier-data";
|
||||
|
||||
export enum SessionHistoryResult {
|
||||
ACTIVE,
|
||||
WIN,
|
||||
LOSS,
|
||||
}
|
||||
|
||||
export interface SessionHistory {
|
||||
seed: string;
|
||||
playTime: number;
|
||||
result: SessionHistoryResult;
|
||||
gameMode: GameModes;
|
||||
party: PokemonData[];
|
||||
modifiers: PersistentModifierData[];
|
||||
money: number;
|
||||
waveIndex: number;
|
||||
gameVersion: string;
|
||||
timestamp: number;
|
||||
}
|
Loading…
Reference in New Issue
Block a user