mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +02:00
Preliminary changes to some MEs
This commit is contained in:
parent
ad7f2d133c
commit
301db8a1de
@ -9,7 +9,6 @@ import {
|
|||||||
import type Pokemon from "#app/field/pokemon";
|
import type Pokemon from "#app/field/pokemon";
|
||||||
import { EnemyPokemon } from "#app/field/pokemon";
|
import { EnemyPokemon } from "#app/field/pokemon";
|
||||||
import { PokemonMove } from "#app/data/moves/pokemon-move";
|
import { PokemonMove } from "#app/data/moves/pokemon-move";
|
||||||
import type { BerryModifierType, PokemonHeldItemModifierType } from "#app/modifier/modifier-type";
|
|
||||||
import { modifierTypes } from "#app/modifier/modifier-type";
|
import { modifierTypes } from "#app/modifier/modifier-type";
|
||||||
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
||||||
import { SpeciesId } from "#enums/species-id";
|
import { SpeciesId } from "#enums/species-id";
|
||||||
@ -21,7 +20,6 @@ import { PersistentModifierRequirement } from "#app/data/mystery-encounters/myst
|
|||||||
import { queueEncounterMessage } from "#app/data/mystery-encounters/utils/encounter-dialogue-utils";
|
import { queueEncounterMessage } from "#app/data/mystery-encounters/utils/encounter-dialogue-utils";
|
||||||
import { MysteryEncounterTier } from "#enums/mystery-encounter-tier";
|
import { MysteryEncounterTier } from "#enums/mystery-encounter-tier";
|
||||||
import { MysteryEncounterOptionMode } from "#enums/mystery-encounter-option-mode";
|
import { MysteryEncounterOptionMode } from "#enums/mystery-encounter-option-mode";
|
||||||
import { BerryModifier, PokemonInstantReviveModifier } from "#app/modifier/modifier";
|
|
||||||
import { getPokemonSpecies } from "#app/data/pokemon-species";
|
import { getPokemonSpecies } from "#app/data/pokemon-species";
|
||||||
import { MoveId } from "#enums/move-id";
|
import { MoveId } from "#enums/move-id";
|
||||||
import { BattlerTagType } from "#enums/battler-tag-type";
|
import { BattlerTagType } from "#enums/battler-tag-type";
|
||||||
@ -38,10 +36,23 @@ import type HeldModifierConfig from "#app/@types/held-modifier-config";
|
|||||||
import type { BerryType } from "#enums/berry-type";
|
import type { BerryType } from "#enums/berry-type";
|
||||||
import { Stat } from "#enums/stat";
|
import { Stat } from "#enums/stat";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
|
import type { MysteryEncounterSpriteConfig } from "#app/field/mystery-encounter-intro";
|
||||||
|
|
||||||
/** the i18n namespace for this encounter */
|
/** the i18n namespace for this encounter */
|
||||||
const namespace = "mysteryEncounters/absoluteAvarice";
|
const namespace = "mysteryEncounters/absoluteAvarice";
|
||||||
|
|
||||||
|
function berrySprite(spriteKey: string, x: number, y: number): MysteryEncounterSpriteConfig {
|
||||||
|
return {
|
||||||
|
spriteKey: spriteKey,
|
||||||
|
fileRoot: "items",
|
||||||
|
isItem: true,
|
||||||
|
x: x,
|
||||||
|
y: y,
|
||||||
|
hidden: true,
|
||||||
|
disableAnimation: true,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Absolute Avarice encounter.
|
* Absolute Avarice encounter.
|
||||||
* @see {@link https://github.com/pagefaultgames/pokerogue/issues/3805 | GitHub Issue #3805}
|
* @see {@link https://github.com/pagefaultgames/pokerogue/issues/3805 | GitHub Issue #3805}
|
||||||
@ -73,105 +84,17 @@ export const AbsoluteAvariceEncounter: MysteryEncounter = MysteryEncounterBuilde
|
|||||||
repeat: true,
|
repeat: true,
|
||||||
x: -5,
|
x: -5,
|
||||||
},
|
},
|
||||||
{
|
berrySprite("lum_berry", 7, -14),
|
||||||
spriteKey: "lum_berry",
|
berrySprite("salac_berry", 2, 4),
|
||||||
fileRoot: "items",
|
berrySprite("lansat_berry", 32, 5),
|
||||||
isItem: true,
|
berrySprite("liechi_berry", 6, -5),
|
||||||
x: 7,
|
berrySprite("sitrus_berry", 7, 8),
|
||||||
y: -14,
|
berrySprite("enigma_berry", 26, -4),
|
||||||
hidden: true,
|
berrySprite("leppa_berry", 16, -27),
|
||||||
disableAnimation: true,
|
berrySprite("petaya_berry", 30, -17),
|
||||||
},
|
berrySprite("ganlon_berry", 16, -11),
|
||||||
{
|
berrySprite("apicot_berry", 14, -2),
|
||||||
spriteKey: "salac_berry",
|
berrySprite("starf_berry", 18, 9),
|
||||||
fileRoot: "items",
|
|
||||||
isItem: true,
|
|
||||||
x: 2,
|
|
||||||
y: 4,
|
|
||||||
hidden: true,
|
|
||||||
disableAnimation: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
spriteKey: "lansat_berry",
|
|
||||||
fileRoot: "items",
|
|
||||||
isItem: true,
|
|
||||||
x: 32,
|
|
||||||
y: 5,
|
|
||||||
hidden: true,
|
|
||||||
disableAnimation: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
spriteKey: "liechi_berry",
|
|
||||||
fileRoot: "items",
|
|
||||||
isItem: true,
|
|
||||||
x: 6,
|
|
||||||
y: -5,
|
|
||||||
hidden: true,
|
|
||||||
disableAnimation: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
spriteKey: "sitrus_berry",
|
|
||||||
fileRoot: "items",
|
|
||||||
isItem: true,
|
|
||||||
x: 7,
|
|
||||||
y: 8,
|
|
||||||
hidden: true,
|
|
||||||
disableAnimation: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
spriteKey: "enigma_berry",
|
|
||||||
fileRoot: "items",
|
|
||||||
isItem: true,
|
|
||||||
x: 26,
|
|
||||||
y: -4,
|
|
||||||
hidden: true,
|
|
||||||
disableAnimation: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
spriteKey: "leppa_berry",
|
|
||||||
fileRoot: "items",
|
|
||||||
isItem: true,
|
|
||||||
x: 16,
|
|
||||||
y: -27,
|
|
||||||
hidden: true,
|
|
||||||
disableAnimation: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
spriteKey: "petaya_berry",
|
|
||||||
fileRoot: "items",
|
|
||||||
isItem: true,
|
|
||||||
x: 30,
|
|
||||||
y: -17,
|
|
||||||
hidden: true,
|
|
||||||
disableAnimation: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
spriteKey: "ganlon_berry",
|
|
||||||
fileRoot: "items",
|
|
||||||
isItem: true,
|
|
||||||
x: 16,
|
|
||||||
y: -11,
|
|
||||||
hidden: true,
|
|
||||||
disableAnimation: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
spriteKey: "apicot_berry",
|
|
||||||
fileRoot: "items",
|
|
||||||
isItem: true,
|
|
||||||
x: 14,
|
|
||||||
y: -2,
|
|
||||||
hidden: true,
|
|
||||||
disableAnimation: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
spriteKey: "starf_berry",
|
|
||||||
fileRoot: "items",
|
|
||||||
isItem: true,
|
|
||||||
x: 18,
|
|
||||||
y: 9,
|
|
||||||
hidden: true,
|
|
||||||
disableAnimation: true,
|
|
||||||
},
|
|
||||||
])
|
])
|
||||||
.withHideWildIntroMessage(true)
|
.withHideWildIntroMessage(true)
|
||||||
.withAutoHideIntroVisuals(false)
|
.withAutoHideIntroVisuals(false)
|
||||||
|
@ -7,7 +7,6 @@ import {
|
|||||||
setEncounterRewards,
|
setEncounterRewards,
|
||||||
transitionMysteryEncounterIntroVisuals,
|
transitionMysteryEncounterIntroVisuals,
|
||||||
} from "#app/data/mystery-encounters/utils/encounter-phase-utils";
|
} from "#app/data/mystery-encounters/utils/encounter-phase-utils";
|
||||||
import type { PokemonHeldItemModifierType } from "#app/modifier/modifier-type";
|
|
||||||
import { modifierTypes } from "#app/modifier/modifier-type";
|
import { modifierTypes } from "#app/modifier/modifier-type";
|
||||||
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
|
@ -11,7 +11,6 @@ import { getNatureName } from "#app/data/nature";
|
|||||||
import { speciesStarterCosts } from "#app/data/balance/starters";
|
import { speciesStarterCosts } from "#app/data/balance/starters";
|
||||||
import type { PlayerPokemon } from "#app/field/pokemon";
|
import type { PlayerPokemon } from "#app/field/pokemon";
|
||||||
import type Pokemon from "#app/field/pokemon";
|
import type Pokemon from "#app/field/pokemon";
|
||||||
import type { PokemonHeldItemModifier } from "#app/modifier/modifier";
|
|
||||||
import { AbilityAttr } from "#enums/ability-attr";
|
import { AbilityAttr } from "#enums/ability-attr";
|
||||||
import PokemonData from "#app/system/pokemon-data";
|
import PokemonData from "#app/system/pokemon-data";
|
||||||
import type { OptionSelectItem } from "#app/ui/abstact-option-select-ui-handler";
|
import type { OptionSelectItem } from "#app/ui/abstact-option-select-ui-handler";
|
||||||
|
@ -7,7 +7,6 @@ import {
|
|||||||
setEncounterRewards,
|
setEncounterRewards,
|
||||||
transitionMysteryEncounterIntroVisuals,
|
transitionMysteryEncounterIntroVisuals,
|
||||||
} from "#app/data/mystery-encounters/utils/encounter-phase-utils";
|
} from "#app/data/mystery-encounters/utils/encounter-phase-utils";
|
||||||
import type { PokemonHeldItemModifierType } from "#app/modifier/modifier-type";
|
|
||||||
import { modifierTypes } from "#app/modifier/modifier-type";
|
import { modifierTypes } from "#app/modifier/modifier-type";
|
||||||
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
import { MysteryEncounterType } from "#enums/mystery-encounter-type";
|
||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
@ -17,7 +16,6 @@ import { MysteryEncounterOptionBuilder } from "#app/data/mystery-encounters/myst
|
|||||||
import { MysteryEncounterTier } from "#enums/mystery-encounter-tier";
|
import { MysteryEncounterTier } from "#enums/mystery-encounter-tier";
|
||||||
import { MysteryEncounterOptionMode } from "#enums/mystery-encounter-option-mode";
|
import { MysteryEncounterOptionMode } from "#enums/mystery-encounter-option-mode";
|
||||||
import { SpeciesId } from "#enums/species-id";
|
import { SpeciesId } from "#enums/species-id";
|
||||||
import { HitHealModifier, PokemonHeldItemModifier, TurnHealModifier } from "#app/modifier/modifier";
|
|
||||||
import { applyModifierTypeToPlayerPokemon } from "#app/data/mystery-encounters/utils/encounter-pokemon-utils";
|
import { applyModifierTypeToPlayerPokemon } from "#app/data/mystery-encounters/utils/encounter-pokemon-utils";
|
||||||
import { showEncounterText } from "#app/data/mystery-encounters/utils/encounter-dialogue-utils";
|
import { showEncounterText } from "#app/data/mystery-encounters/utils/encounter-dialogue-utils";
|
||||||
import i18next from "#app/plugins/i18n";
|
import i18next from "#app/plugins/i18n";
|
||||||
|
@ -33,7 +33,6 @@ import { BattlerIndex } from "#enums/battler-index";
|
|||||||
import { PokeballType } from "#enums/pokeball";
|
import { PokeballType } from "#enums/pokeball";
|
||||||
import { BattlerTagType } from "#enums/battler-tag-type";
|
import { BattlerTagType } from "#enums/battler-tag-type";
|
||||||
import { queueEncounterMessage } from "#app/data/mystery-encounters/utils/encounter-dialogue-utils";
|
import { queueEncounterMessage } from "#app/data/mystery-encounters/utils/encounter-dialogue-utils";
|
||||||
import { BerryModifier } from "#app/modifier/modifier";
|
|
||||||
import { Stat } from "#enums/stat";
|
import { Stat } from "#enums/stat";
|
||||||
import { CLASSIC_MODE_MYSTERY_ENCOUNTER_WAVES } from "#app/constants";
|
import { CLASSIC_MODE_MYSTERY_ENCOUNTER_WAVES } from "#app/constants";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user