apply game.override.starterForms
This commit is contained in:
parent
97376d5c70
commit
4c15fd86b0
|
@ -1,13 +1,12 @@
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest";
|
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
||||||
|
import { QuietFormChangePhase } from "#app/form-change-phase.js";
|
||||||
|
import { TurnEndPhase } from "#app/phases.js";
|
||||||
|
import { Abilities } from "#enums/abilities";
|
||||||
|
import { Moves } from "#enums/moves";
|
||||||
|
import { Species } from "#enums/species";
|
||||||
import GameManager from "#test/utils/gameManager";
|
import GameManager from "#test/utils/gameManager";
|
||||||
import { getMovePosition } from "#test/utils/gameManagerUtils";
|
import { getMovePosition } from "#test/utils/gameManagerUtils";
|
||||||
import Overrides from "#app/overrides";
|
import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest";
|
||||||
import { Moves } from "#enums/moves";
|
|
||||||
import { Abilities } from "#enums/abilities";
|
|
||||||
import { Species } from "#enums/species";
|
|
||||||
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
|
||||||
import { TurnEndPhase } from "#app/phases.js";
|
|
||||||
import { QuietFormChangePhase } from "#app/form-change-phase.js";
|
|
||||||
|
|
||||||
const TIMEOUT = 20 * 1000;
|
const TIMEOUT = 20 * 1000;
|
||||||
|
|
||||||
|
@ -37,10 +36,10 @@ describe("Abilities - BATTLE BOND", () => {
|
||||||
test(
|
test(
|
||||||
"check if fainted pokemon switches to base form on arena reset",
|
"check if fainted pokemon switches to base form on arena reset",
|
||||||
async () => {
|
async () => {
|
||||||
const baseForm = 1,
|
const baseForm = 1;
|
||||||
ashForm = 2;
|
const ashForm = 2;
|
||||||
game.override.startingWave(4);
|
game.override.startingWave(4);
|
||||||
vi.spyOn(Overrides, "STARTER_FORM_OVERRIDES", "get").mockReturnValue({
|
game.override.starterForms({
|
||||||
[Species.GRENINJA]: ashForm,
|
[Species.GRENINJA]: ashForm,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ describe("Abilities - DISGUISE", () => {
|
||||||
const baseForm = 0,
|
const baseForm = 0,
|
||||||
bustedForm = 1;
|
bustedForm = 1;
|
||||||
game.override.startingWave(4);
|
game.override.startingWave(4);
|
||||||
vi.spyOn(Overrides, "STARTER_FORM_OVERRIDES", "get").mockReturnValue({
|
game.override.starterForms({
|
||||||
[Species.MIMIKYU]: bustedForm,
|
[Species.MIMIKYU]: bustedForm,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ describe("Abilities - DISGUISE", () => {
|
||||||
game.override.startingLevel(20);
|
game.override.startingLevel(20);
|
||||||
vi.spyOn(Overrides, "OPP_LEVEL_OVERRIDE", "get").mockReturnValue(20);
|
vi.spyOn(Overrides, "OPP_LEVEL_OVERRIDE", "get").mockReturnValue(20);
|
||||||
game.override.enemySpecies(Species.MAGIKARP);
|
game.override.enemySpecies(Species.MAGIKARP);
|
||||||
vi.spyOn(Overrides, "STARTER_FORM_OVERRIDES", "get").mockReturnValue({
|
game.override.starterForms({
|
||||||
[Species.MIMIKYU]: baseForm,
|
[Species.MIMIKYU]: baseForm,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -205,7 +205,7 @@ describe("Abilities - Ice Face", () => {
|
||||||
game.override.startingWave(4);
|
game.override.startingWave(4);
|
||||||
game.override.startingLevel(4);
|
game.override.startingLevel(4);
|
||||||
game.override.enemySpecies(Species.MAGIKARP);
|
game.override.enemySpecies(Species.MAGIKARP);
|
||||||
vi.spyOn(Overrides, "STARTER_FORM_OVERRIDES", "get").mockReturnValue({
|
game.override.starterForms({
|
||||||
[Species.EISCUE]: noiceForm,
|
[Species.EISCUE]: noiceForm,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest";
|
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
||||||
|
import { QuietFormChangePhase } from "#app/form-change-phase.js";
|
||||||
|
import { TurnEndPhase } from "#app/phases.js";
|
||||||
|
import { Abilities } from "#enums/abilities";
|
||||||
|
import { Moves } from "#enums/moves";
|
||||||
|
import { Species } from "#enums/species";
|
||||||
import GameManager from "#test/utils/gameManager";
|
import GameManager from "#test/utils/gameManager";
|
||||||
import { getMovePosition } from "#test/utils/gameManagerUtils";
|
import { getMovePosition } from "#test/utils/gameManagerUtils";
|
||||||
import Overrides from "#app/overrides";
|
import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest";
|
||||||
import { Moves } from "#enums/moves";
|
|
||||||
import { Abilities } from "#enums/abilities";
|
|
||||||
import { Species } from "#enums/species";
|
|
||||||
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
|
||||||
import { TurnEndPhase } from "#app/phases.js";
|
|
||||||
import { QuietFormChangePhase } from "#app/form-change-phase.js";
|
|
||||||
|
|
||||||
const TIMEOUT = 20 * 1000;
|
const TIMEOUT = 20 * 1000;
|
||||||
|
|
||||||
|
@ -40,7 +39,7 @@ describe("Abilities - POWER CONSTRUCT", () => {
|
||||||
const baseForm = 2,
|
const baseForm = 2,
|
||||||
completeForm = 4;
|
completeForm = 4;
|
||||||
game.override.startingWave(4);
|
game.override.startingWave(4);
|
||||||
vi.spyOn(Overrides, "STARTER_FORM_OVERRIDES", "get").mockReturnValue({
|
game.override.starterForms({
|
||||||
[Species.ZYGARDE]: completeForm,
|
[Species.ZYGARDE]: completeForm,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest";
|
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
||||||
|
import { QuietFormChangePhase } from "#app/form-change-phase.js";
|
||||||
|
import { TurnEndPhase } from "#app/phases.js";
|
||||||
|
import { Abilities } from "#enums/abilities";
|
||||||
|
import { Moves } from "#enums/moves";
|
||||||
|
import { Species } from "#enums/species";
|
||||||
import GameManager from "#test/utils/gameManager";
|
import GameManager from "#test/utils/gameManager";
|
||||||
import { getMovePosition } from "#test/utils/gameManagerUtils";
|
import { getMovePosition } from "#test/utils/gameManagerUtils";
|
||||||
import Overrides from "#app/overrides";
|
import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest";
|
||||||
import { Moves } from "#enums/moves";
|
|
||||||
import { Abilities } from "#enums/abilities";
|
|
||||||
import { Species } from "#enums/species";
|
|
||||||
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
|
||||||
import { TurnEndPhase } from "#app/phases.js";
|
|
||||||
import { QuietFormChangePhase } from "#app/form-change-phase.js";
|
|
||||||
|
|
||||||
const TIMEOUT = 20 * 1000;
|
const TIMEOUT = 20 * 1000;
|
||||||
|
|
||||||
|
@ -40,7 +39,7 @@ describe("Abilities - SCHOOLING", () => {
|
||||||
const soloForm = 0,
|
const soloForm = 0,
|
||||||
schoolForm = 1;
|
schoolForm = 1;
|
||||||
game.override.startingWave(4);
|
game.override.startingWave(4);
|
||||||
vi.spyOn(Overrides, "STARTER_FORM_OVERRIDES", "get").mockReturnValue({
|
game.override.starterForms({
|
||||||
[Species.WISHIWASHI]: schoolForm,
|
[Species.WISHIWASHI]: schoolForm,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest";
|
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
||||||
|
import { QuietFormChangePhase } from "#app/form-change-phase.js";
|
||||||
|
import { TurnEndPhase } from "#app/phases.js";
|
||||||
|
import { Abilities } from "#enums/abilities";
|
||||||
|
import { Moves } from "#enums/moves";
|
||||||
|
import { Species } from "#enums/species";
|
||||||
import GameManager from "#test/utils/gameManager";
|
import GameManager from "#test/utils/gameManager";
|
||||||
import { getMovePosition } from "#test/utils/gameManagerUtils";
|
import { getMovePosition } from "#test/utils/gameManagerUtils";
|
||||||
import Overrides from "#app/overrides";
|
import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest";
|
||||||
import { Moves } from "#enums/moves";
|
|
||||||
import { Abilities } from "#enums/abilities";
|
|
||||||
import { Species } from "#enums/species";
|
|
||||||
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
|
||||||
import { TurnEndPhase } from "#app/phases.js";
|
|
||||||
import { QuietFormChangePhase } from "#app/form-change-phase.js";
|
|
||||||
|
|
||||||
const TIMEOUT = 20 * 1000;
|
const TIMEOUT = 20 * 1000;
|
||||||
|
|
||||||
|
@ -40,7 +39,7 @@ describe("Abilities - SHIELDS DOWN", () => {
|
||||||
const meteorForm = 0,
|
const meteorForm = 0,
|
||||||
coreForm = 7;
|
coreForm = 7;
|
||||||
game.override.startingWave(4);
|
game.override.startingWave(4);
|
||||||
vi.spyOn(Overrides, "STARTER_FORM_OVERRIDES", "get").mockReturnValue({
|
game.override.starterForms({
|
||||||
[Species.MINIOR]: coreForm,
|
[Species.MINIOR]: coreForm,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest";
|
import { Stat } from "#app/data/pokemon-stat";
|
||||||
import Phaser from "phaser";
|
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
||||||
import GameManager from "#app/test/utils/gameManager";
|
import { QuietFormChangePhase } from "#app/form-change-phase";
|
||||||
import Overrides from "#app/overrides";
|
|
||||||
import {
|
import {
|
||||||
CommandPhase,
|
CommandPhase,
|
||||||
DamagePhase,
|
DamagePhase,
|
||||||
|
@ -14,15 +13,15 @@ import {
|
||||||
TurnInitPhase,
|
TurnInitPhase,
|
||||||
TurnStartPhase,
|
TurnStartPhase,
|
||||||
} from "#app/phases";
|
} from "#app/phases";
|
||||||
import { Mode } from "#app/ui/ui";
|
import GameManager from "#app/test/utils/gameManager";
|
||||||
import { Stat } from "#app/data/pokemon-stat";
|
|
||||||
import { getMovePosition } from "#app/test/utils/gameManagerUtils";
|
import { getMovePosition } from "#app/test/utils/gameManagerUtils";
|
||||||
import { Command } from "#app/ui/command-ui-handler";
|
import { Command } from "#app/ui/command-ui-handler";
|
||||||
import { QuietFormChangePhase } from "#app/form-change-phase";
|
import { Mode } from "#app/ui/ui";
|
||||||
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
|
||||||
import { Abilities } from "#enums/abilities";
|
import { Abilities } from "#enums/abilities";
|
||||||
import { Moves } from "#enums/moves";
|
import { Moves } from "#enums/moves";
|
||||||
import { Species } from "#enums/species";
|
import { Species } from "#enums/species";
|
||||||
|
import Phaser from "phaser";
|
||||||
|
import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest";
|
||||||
|
|
||||||
const TIMEOUT = 20 * 1000;
|
const TIMEOUT = 20 * 1000;
|
||||||
|
|
||||||
|
@ -154,7 +153,7 @@ describe("Abilities - ZEN MODE", () => {
|
||||||
const baseForm = 0,
|
const baseForm = 0,
|
||||||
zenForm = 1;
|
zenForm = 1;
|
||||||
game.override.startingWave(4);
|
game.override.startingWave(4);
|
||||||
vi.spyOn(Overrides, "STARTER_FORM_OVERRIDES", "get").mockReturnValue({
|
game.override.starterForms({
|
||||||
[Species.DARMANITAN]: zenForm,
|
[Species.DARMANITAN]: zenForm,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest";
|
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
||||||
|
import { QuietFormChangePhase } from "#app/form-change-phase.js";
|
||||||
|
import { TurnEndPhase } from "#app/phases.js";
|
||||||
|
import { Abilities } from "#enums/abilities";
|
||||||
|
import { Moves } from "#enums/moves";
|
||||||
|
import { Species } from "#enums/species";
|
||||||
import GameManager from "#test/utils/gameManager";
|
import GameManager from "#test/utils/gameManager";
|
||||||
import { getMovePosition } from "#test/utils/gameManagerUtils";
|
import { getMovePosition } from "#test/utils/gameManagerUtils";
|
||||||
import Overrides from "#app/overrides";
|
import { afterEach, beforeAll, beforeEach, describe, expect, test } from "vitest";
|
||||||
import { Moves } from "#enums/moves";
|
|
||||||
import { Abilities } from "#enums/abilities";
|
|
||||||
import { Species } from "#enums/species";
|
|
||||||
import { Status, StatusEffect } from "#app/data/status-effect.js";
|
|
||||||
import { TurnEndPhase } from "#app/phases.js";
|
|
||||||
import { QuietFormChangePhase } from "#app/form-change-phase.js";
|
|
||||||
|
|
||||||
const TIMEOUT = 20 * 1000;
|
const TIMEOUT = 20 * 1000;
|
||||||
|
|
||||||
|
@ -40,7 +39,7 @@ describe("Abilities - ZERO TO HERO", () => {
|
||||||
const baseForm = 0,
|
const baseForm = 0,
|
||||||
heroForm = 1;
|
heroForm = 1;
|
||||||
game.override.startingWave(4);
|
game.override.startingWave(4);
|
||||||
vi.spyOn(Overrides, "STARTER_FORM_OVERRIDES", "get").mockReturnValue({
|
game.override.starterForms({
|
||||||
[Species.PALAFIN]: heroForm,
|
[Species.PALAFIN]: heroForm,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue