From 62c35194c3a4d21d7dbfed3bd736c6cff4dd7506 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 10 Jan 2020 22:16:30 -0800 Subject: [PATCH] Remove unnecessary form duration code probably misinterpreted the furfrou/hoopa stuff; probably is "SetMaxFormDuration" https://github.com/kwsch/PKHeX/commit/d3f6d5935f1b9227005b1d8d04fbcfd775d89635#commitcomment-36754955 ty @CanoeHope --- PKHeX.Core/Saves/SAV8SWSH.cs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/PKHeX.Core/Saves/SAV8SWSH.cs b/PKHeX.Core/Saves/SAV8SWSH.cs index 5e451f0a1..9a61f5438 100644 --- a/PKHeX.Core/Saves/SAV8SWSH.cs +++ b/PKHeX.Core/Saves/SAV8SWSH.cs @@ -81,29 +81,6 @@ private void Initialize() PokeDex = 0; } - protected override void SetPartyValues(PKM pkm, bool isParty) - { - base.SetPartyValues(pkm, isParty); - ((PK8)pkm).FormArgument = GetFormArgument((PK8)pkm, isParty); - } - - private static uint GetFormArgument(PK8 pkm, bool isParty) - { - if (pkm.Species == (int) Species.Alcremie) - return pkm.FormArgument & 7; - - if (!isParty || pkm.AltForm == 0) - return 0; - - // Neither species is available in SW/SH, but the game code still does this! - return pkm.Species switch - { - (int)Species.Furfrou => 5u, // Furfrou - (int)Species.Hoopa => 3u, // Hoopa - _ => 0u - }; - } - public int GetRecord(int recordID) => Records.GetRecord(recordID); public void SetRecord(int recordID, int value) => Records.SetRecord(recordID, value); public int GetRecordMax(int recordID) => Records.GetRecordMax(recordID);