Add map commit

Gives the player a Map in Daily Run mode.

Comes with a unit test.
This commit is contained in:
RedstonewolfX 2024-09-17 20:26:52 -04:00
parent f879368efc
commit f77a36ce3d
2 changed files with 3 additions and 0 deletions

View File

@ -220,6 +220,7 @@ export class TitlePhase extends Phase {
const modifiers: Modifier[] = Array(3).fill(null).map(() => modifierTypes.EXP_SHARE().withIdFromFunc(modifierTypes.EXP_SHARE).newModifier())
.concat(Array(3).fill(null).map(() => modifierTypes.GOLDEN_EXP_CHARM().withIdFromFunc(modifierTypes.GOLDEN_EXP_CHARM).newModifier()))
.concat([modifierTypes.MAP().withIdFromFunc(modifierTypes.MAP).newModifier()])
.concat(getDailyRunStarterModifiers(party))
.filter((m) => m !== null);

View File

@ -1,5 +1,6 @@
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
import GameManager from "./utils/gameManager";
import { MapModifier } from "#app/modifier/modifier";
describe("Daily Mode", () => {
let phaserGame: Phaser.Game;
@ -28,5 +29,6 @@ describe("Daily Mode", () => {
expect(pkm.level).toBe(20);
expect(pkm.moveset.length).toBeGreaterThan(0);
});
expect(game.scene.getModifiers(MapModifier).length).toBeGreaterThan(0);
});
});