Add map commit
Gives the player a Map in Daily Run mode. Comes with a unit test.
This commit is contained in:
parent
f879368efc
commit
f77a36ce3d
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue