Merge branch 'fiery-fallout' of https://github.com/InnocentGameDev/PokeRogue-Events into fiery-fallout
This commit is contained in:
commit
8c6610b78f
|
@ -202,8 +202,8 @@ export const FieryFalloutEncounter: IMysteryEncounter =
|
||||||
.withOption(
|
.withOption(
|
||||||
new MysteryEncounterOptionBuilder()
|
new MysteryEncounterOptionBuilder()
|
||||||
.withOptionMode(EncounterOptionMode.DISABLED_OR_SPECIAL)
|
.withOptionMode(EncounterOptionMode.DISABLED_OR_SPECIAL)
|
||||||
.withPrimaryPokemonRequirement(new TypeRequirement(Type.FIRE, true,1)) // Will set option3PrimaryName dialogue token automatically
|
.withPrimaryPokemonRequirement(new TypeRequirement(Type.FIRE, true, 1)) // Will set option3PrimaryName dialogue token automatically
|
||||||
.withSecondaryPokemonRequirement(new TypeRequirement(Type.FIRE, true,1)) // Will set option3SecondaryName dialogue token automatically
|
.withSecondaryPokemonRequirement(new TypeRequirement(Type.FIRE, true, 1)) // Will set option3SecondaryName dialogue token automatically
|
||||||
.withDialogue({
|
.withDialogue({
|
||||||
buttonLabel: `${namespace}:option:3:label`,
|
buttonLabel: `${namespace}:option:3:label`,
|
||||||
buttonTooltip: `${namespace}:option:3:tooltip`,
|
buttonTooltip: `${namespace}:option:3:tooltip`,
|
||||||
|
|
|
@ -641,11 +641,11 @@ export function transitionMysteryEncounterIntroVisuals(scene: BattleScene, hide:
|
||||||
// Transition
|
// Transition
|
||||||
scene.tweens.add({
|
scene.tweens.add({
|
||||||
targets: introVisuals,
|
targets: introVisuals,
|
||||||
x: hide ? "+=16" : "-=16",
|
x: `${hide? "+" : "-"}=16`,
|
||||||
y: hide ? "-=16" : "+=16",
|
y: `${hide ? "-" : "+"}=16`,
|
||||||
alpha: hide ? 0 : 1,
|
alpha: hide ? 0 : 1,
|
||||||
ease: "Sine.easeInOut",
|
ease: "Sine.easeInOut",
|
||||||
duration: duration,
|
duration,
|
||||||
onComplete: () => {
|
onComplete: () => {
|
||||||
if (hide && destroy) {
|
if (hide && destroy) {
|
||||||
scene.field.remove(introVisuals);
|
scene.field.remove(introVisuals);
|
||||||
|
|
|
@ -45,7 +45,7 @@ export class OverridesHelper {
|
||||||
* @param encounterType
|
* @param encounterType
|
||||||
* @returns spy instance
|
* @returns spy instance
|
||||||
*/
|
*/
|
||||||
mysteryEncounter(encounterType: MysteryEncounterType): MockInstance {
|
mysteryEncounter(encounterType: MysteryEncounterType) {
|
||||||
const spy = vi.spyOn(overrides, "MYSTERY_ENCOUNTER_OVERRIDE", "get").mockReturnValue(encounterType);
|
const spy = vi.spyOn(overrides, "MYSTERY_ENCOUNTER_OVERRIDE", "get").mockReturnValue(encounterType);
|
||||||
this.log(`Mystery encounter override set to ${encounterType}!`);
|
this.log(`Mystery encounter override set to ${encounterType}!`);
|
||||||
return spy;
|
return spy;
|
||||||
|
|
Loading…
Reference in New Issue