mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Remove unnecessary form duration code
probably misinterpreted the furfrou/hoopa stuff; probably is "SetMaxFormDuration"
d3f6d5935f (commitcomment-36754955)
ty @CanoeHope
This commit is contained in:
parent
d3f6d5935f
commit
62c35194c3
1 changed files with 0 additions and 23 deletions
|
@ -81,29 +81,6 @@ namespace PKHeX.Core
|
|||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue