mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-05-10 18:33:22 +01:00
[Tiny] Removed unused loc in v1_9_0.ts
(#5760)
This commit is contained in:
parent
04bfaf901a
commit
b5cfa88455
@ -15,11 +15,6 @@ const migratePartyData: SessionSaveMigrator = {
|
|||||||
migrate: (data: SessionSaveData): void => {
|
migrate: (data: SessionSaveData): void => {
|
||||||
// this stuff is copied straight from the constructor fwiw
|
// this stuff is copied straight from the constructor fwiw
|
||||||
const mapParty = (pkmnData: PokemonData) => {
|
const mapParty = (pkmnData: PokemonData) => {
|
||||||
pkmnData.status &&= new Status(
|
|
||||||
pkmnData.status.effect,
|
|
||||||
pkmnData.status.toxicTurnCount,
|
|
||||||
pkmnData.status.sleepTurnsRemaining,
|
|
||||||
);
|
|
||||||
// remove empty moves from moveset
|
// remove empty moves from moveset
|
||||||
pkmnData.moveset = (pkmnData.moveset ?? [new PokemonMove(Moves.TACKLE), new PokemonMove(Moves.GROWL)])
|
pkmnData.moveset = (pkmnData.moveset ?? [new PokemonMove(Moves.TACKLE), new PokemonMove(Moves.GROWL)])
|
||||||
.filter(m => !!m)
|
.filter(m => !!m)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user