mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-27 01:06:09 +00:00
Apply suggestions from code review
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
This commit is contained in:
parent
e765b3a455
commit
8814175906
@ -636,11 +636,11 @@ export function transitionMysteryEncounterIntroVisuals(scene: BattleScene, hide:
|
||||
// Transition
|
||||
scene.tweens.add({
|
||||
targets: introVisuals,
|
||||
x: hide ? "+=16" : "-=16",
|
||||
y: hide ? "-=16" : "+=16",
|
||||
x: `${hide? "+" : "-"}=16`,
|
||||
y: `${hide ? "-" : "+"}=16`,
|
||||
alpha: hide ? 0 : 1,
|
||||
ease: "Sine.easeInOut",
|
||||
duration: duration,
|
||||
duration,
|
||||
onComplete: () => {
|
||||
if (hide && destroy) {
|
||||
scene.field.remove(introVisuals);
|
||||
|
@ -45,7 +45,7 @@ export class OverridesHelper {
|
||||
* @param encounterType
|
||||
* @returns spy instance
|
||||
*/
|
||||
mysteryEncounter(encounterType: MysteryEncounterType): MockInstance {
|
||||
mysteryEncounter(encounterType: MysteryEncounterType) {
|
||||
const spy = vi.spyOn(overrides, "MYSTERY_ENCOUNTER_OVERRIDE", "get").mockReturnValue(encounterType);
|
||||
this.log(`Mystery encounter override set to ${encounterType}!`);
|
||||
return spy;
|
||||
|
Loading…
Reference in New Issue
Block a user