mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 01:06:09 +00:00
undo broken load changes
This commit is contained in:
parent
ca443708e0
commit
7bbebb32e2
@ -92,9 +92,9 @@ import { Species } from "#enums/species";
|
|||||||
import { UiTheme } from "#enums/ui-theme";
|
import { UiTheme } from "#enums/ui-theme";
|
||||||
import { TimedEventManager } from "#app/timed-event-manager.js";
|
import { TimedEventManager } from "#app/timed-event-manager.js";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import MysteryEncounter, { MysteryEncounterTier, MysteryEncounterVariant } from "./data/mystery-encounter";
|
import MysteryEncounter, { MysteryEncounterTier, MysteryEncounterVariant } from "./data/mystery-encounters/mystery-encounter";
|
||||||
import { mysteryEncountersByBiome, allMysteryEncounters, BASE_MYSTERY_ENCOUNTER_WEIGHT, AVERAGE_ENCOUNTERS_PER_RUN_TARGET, WIGHT_INCREMENT_ON_SPAWN_MISS } from "./data/mystery-encounters/mystery-encounters";
|
import { mysteryEncountersByBiome, allMysteryEncounters, BASE_MYSTERY_ENCOUNTER_SPAWN_WEIGHT, AVERAGE_ENCOUNTERS_PER_RUN_TARGET, WIGHT_INCREMENT_ON_SPAWN_MISS } from "./data/mystery-encounters/mystery-encounters";
|
||||||
import { MysteryEncounterFlags } from "#app/data/mystery-encounter-flags";
|
import { MysteryEncounterData } from "#app/data/mystery-encounters/mystery-encounter-data";
|
||||||
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
||||||
|
|
||||||
export const bypassLogin = import.meta.env.VITE_BYPASS_LOGIN === "1";
|
export const bypassLogin = import.meta.env.VITE_BYPASS_LOGIN === "1";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { MysteryEncounterTier } from "#app/data/mystery-encounters/mystery-encounter";
|
import { MysteryEncounterTier } from "#app/data/mystery-encounters/mystery-encounter";
|
||||||
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
||||||
import { BASE_MYSTERY_ENCOUNTER_SPAWN_WEIGHT } from "#app/data/mystery-encounters/encounters/mystery-encounters";
|
import { BASE_MYSTERY_ENCOUNTER_SPAWN_WEIGHT } from "#app/data/mystery-encounters/mystery-encounters";
|
||||||
import { isNullOrUndefined } from "#app/utils";
|
import { isNullOrUndefined } from "#app/utils";
|
||||||
|
|
||||||
export class MysteryEncounterData {
|
export class MysteryEncounterData {
|
||||||
|
@ -37,11 +37,6 @@ export default class MysteryEncounterDialogue {
|
|||||||
outro?: TextDisplay[];
|
outro?: TextDisplay[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface EncounterTypeDialogue {
|
|
||||||
[key: integer]: MysteryEncounterDialogue
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Example MysteryEncounterDialogue object:
|
* Example MysteryEncounterDialogue object:
|
||||||
*
|
*
|
||||||
@ -86,8 +81,7 @@ export interface EncounterTypeDialogue {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export const allMysteryEncounterDialogue: { [encounterType: number]: MysteryEncounterDialogue } = {};
|
||||||
export const allMysteryEncounterDialogue: EncounterTypeDialogue = {};
|
|
||||||
|
|
||||||
export function initMysteryEncounterDialogue() {
|
export function initMysteryEncounterDialogue() {
|
||||||
allMysteryEncounterDialogue[MysteryEncounterType.MYSTERIOUS_CHALLENGERS] = MysteriousChallengersDialogue;
|
allMysteryEncounterDialogue[MysteryEncounterType.MYSTERIOUS_CHALLENGERS] = MysteriousChallengersDialogue;
|
||||||
|
@ -46,7 +46,7 @@ import { biomeLinks } from "#app/data/biomes";
|
|||||||
import { Mode } from "#app/ui/ui";
|
import { Mode } from "#app/ui/ui";
|
||||||
import { PartyOption, PartyUiMode } from "#app/ui/party-ui-handler";
|
import { PartyOption, PartyUiMode } from "#app/ui/party-ui-handler";
|
||||||
import { OptionSelectConfig, OptionSelectItem } from "#app/ui/abstact-option-select-ui-handler";
|
import { OptionSelectConfig, OptionSelectItem } from "#app/ui/abstact-option-select-ui-handler";
|
||||||
import { WIGHT_INCREMENT_ON_SPAWN_MISS } from "#app/data/mystery-encounters/encounters/mystery-encounters";
|
import { WIGHT_INCREMENT_ON_SPAWN_MISS } from "#app/data/mystery-encounters/mystery-encounters";
|
||||||
import { getTextWithColors, TextStyle } from "#app/ui/text";
|
import { getTextWithColors, TextStyle } from "#app/ui/text";
|
||||||
import * as Overrides from "#app/overrides";
|
import * as Overrides from "#app/overrides";
|
||||||
import { UiTheme } from "#enums/ui-theme";
|
import { UiTheme } from "#enums/ui-theme";
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import MysteryEncounter from "../mystery-encounter";
|
import MysteryEncounter from "./mystery-encounter";
|
||||||
import { DarkDealEncounter } from "./dark-deal";
|
import { DarkDealEncounter } from "./encounters/dark-deal";
|
||||||
import { MysteriousChallengersEncounter } from "./mysterious-challengers";
|
import { MysteriousChallengersEncounter } from "./encounters/mysterious-challengers";
|
||||||
import { MysteriousChestEncounter } from "./mysterious-chest";
|
import { MysteriousChestEncounter } from "./encounters/mysterious-chest";
|
||||||
import { FightOrFlightEncounter } from "#app/data/mystery-encounters/encounters/fight-or-flight";
|
import { FightOrFlightEncounter } from "#app/data/mystery-encounters/encounters/fight-or-flight";
|
||||||
import { TrainingSessionEncounter } from "#app/data/mystery-encounters/encounters/training-session";
|
import { TrainingSessionEncounter } from "#app/data/mystery-encounters/encounters/training-session";
|
||||||
import { Biome } from "#enums/biome";
|
import { Biome } from "#enums/biome";
|
||||||
import { SleepingSnorlaxEncounter } from "./sleeping-snorlax";
|
import { SleepingSnorlaxEncounter } from "./encounters/sleeping-snorlax";
|
||||||
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
||||||
import { DepartmentStoreSaleEncounter } from "#app/data/mystery-encounters/encounters/department-store-sale";
|
import { DepartmentStoreSaleEncounter } from "#app/data/mystery-encounters/encounters/department-store-sale";
|
||||||
import { ShadyVitaminDealerEncounter } from "#app/data/mystery-encounters/encounters/shady-vitamin-dealer";
|
import { ShadyVitaminDealerEncounter } from "#app/data/mystery-encounters/encounters/shady-vitamin-dealer";
|
||||||
@ -15,7 +15,7 @@ export const BASE_MYSTERY_ENCOUNTER_SPAWN_WEIGHT = 1;
|
|||||||
export const WIGHT_INCREMENT_ON_SPAWN_MISS = 5;
|
export const WIGHT_INCREMENT_ON_SPAWN_MISS = 5;
|
||||||
export const AVERAGE_ENCOUNTERS_PER_RUN_TARGET = 15;
|
export const AVERAGE_ENCOUNTERS_PER_RUN_TARGET = 15;
|
||||||
|
|
||||||
export const allMysteryEncounters: { [encounterType: string]: MysteryEncounter } = {};
|
export const allMysteryEncounters: { [encounterType: number]: MysteryEncounter } = {};
|
||||||
|
|
||||||
// Add MysteryEncounterType to biomes to enable it exclusively for those biomes
|
// Add MysteryEncounterType to biomes to enable it exclusively for those biomes
|
||||||
// To enable an encounter in all biomes, do not add to this map
|
// To enable an encounter in all biomes, do not add to this map
|
||||||
@ -86,8 +86,6 @@ export const mysteryEncountersByBiome = new Map<Biome, MysteryEncounterType[]>([
|
|||||||
[Biome.LABORATORY, []]
|
[Biome.LABORATORY, []]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Only add your MysterEncounter here if you want it to be in every biome.
|
|
||||||
// We recommend designing biome-specific encounters for better flavor and variance
|
|
||||||
export function initMysteryEncounters() {
|
export function initMysteryEncounters() {
|
||||||
allMysteryEncounters[MysteryEncounterType.MYSTERIOUS_CHALLENGERS] = MysteriousChallengersEncounter;
|
allMysteryEncounters[MysteryEncounterType.MYSTERIOUS_CHALLENGERS] = MysteriousChallengersEncounter;
|
||||||
allMysteryEncounters[MysteryEncounterType.MYSTERIOUS_CHEST] = MysteriousChestEncounter;
|
allMysteryEncounters[MysteryEncounterType.MYSTERIOUS_CHEST] = MysteriousChestEncounter;
|
@ -23,7 +23,7 @@ import { initVouchers } from "./system/voucher";
|
|||||||
import { Biome } from "#enums/biome";
|
import { Biome } from "#enums/biome";
|
||||||
import { TrainerType } from "#enums/trainer-type";
|
import { TrainerType } from "#enums/trainer-type";
|
||||||
import {initMysteryEncounterDialogue} from "#app/data/mystery-encounters/mystery-encounter-dialogue";
|
import {initMysteryEncounterDialogue} from "#app/data/mystery-encounters/mystery-encounter-dialogue";
|
||||||
import {initMysteryEncounters} from "#app/data/mystery-encounters/encounters/mystery-encounters";
|
import {initMysteryEncounters} from "#app/data/mystery-encounters/mystery-encounters";
|
||||||
|
|
||||||
export class LoadingScene extends SceneBase {
|
export class LoadingScene extends SceneBase {
|
||||||
readonly LOAD_EVENTS = Phaser.Loader.Events;
|
readonly LOAD_EVENTS = Phaser.Loader.Events;
|
||||||
|
Loading…
Reference in New Issue
Block a user