mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 21:42:20 +02:00
bbggg
This commit is contained in:
parent
958fd64d90
commit
e9d3f147ef
@ -6742,6 +6742,7 @@ interface IllusionData {
|
|||||||
level?: number;
|
level?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Remove `turn` and make `result` mandatory
|
||||||
export interface TurnMove {
|
export interface TurnMove {
|
||||||
move: MoveId;
|
move: MoveId;
|
||||||
targets: BattlerIndex[];
|
targets: BattlerIndex[];
|
||||||
|
@ -25,6 +25,7 @@ interface OldTurnMove {
|
|||||||
const fixMoveHistory: SessionSaveMigrator = {
|
const fixMoveHistory: SessionSaveMigrator = {
|
||||||
version: "1.10.0",
|
version: "1.10.0",
|
||||||
migrate: (data: SessionSaveData): void => {
|
migrate: (data: SessionSaveData): void => {
|
||||||
|
// @ts-expect-error - optional property jank
|
||||||
const mapTurnMove = (tm: OldTurnMove): TurnMove => ({
|
const mapTurnMove = (tm: OldTurnMove): TurnMove => ({
|
||||||
move: tm.move,
|
move: tm.move,
|
||||||
targets: tm.targets,
|
targets: tm.targets,
|
||||||
|
Loading…
Reference in New Issue
Block a user