mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-06-03 04:24:12 -05:00
parent
e1e7bf321b
commit
c446ff5b51
|
|
@ -376,7 +376,7 @@ private static bool GetIsSharedEggMove(PKM pkm, int gen, int move)
|
|||
var table = PersonalTable.SWSH;
|
||||
var entry = (PersonalInfoSWSH)table.GetFormeEntry(pkm.Species, pkm.AltForm);
|
||||
var baseSpecies = entry.BaseSpecies;
|
||||
var baseForm = entry.BaseSpeciesForm;
|
||||
var baseForm = entry.FormIndex;
|
||||
var egg = MoveEgg.GetEggMoves(pkm, baseSpecies, baseForm, GameVersion.SW);
|
||||
return egg.Contains(move);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,8 +104,9 @@ public override int[] Abilities
|
|||
public int Species { get => BitConverter.ToUInt16(Data, 0x4C); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x4C); }
|
||||
|
||||
public int BaseSpecies { get => BitConverter.ToUInt16(Data, 0x56); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x56); }
|
||||
public int BaseSpeciesForm { get => BitConverter.ToUInt16(Data, 0x58); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x58); }
|
||||
public int Flags { get => BitConverter.ToUInt16(Data, 0x58); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x5A); } // not sure
|
||||
public int BaseSpeciesForm { get => BitConverter.ToUInt16(Data, 0x58); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x58); } // local region base form
|
||||
public int Flags { get => BitConverter.ToUInt16(Data, 0x5A); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x5A); } // not sure
|
||||
public int PokeDexIndex { get => BitConverter.ToUInt16(Data, 0x5C); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x5C); }
|
||||
public int FormIndex { get => BitConverter.ToUInt16(Data, 0x5E); set => BitConverter.GetBytes((ushort)value).CopyTo(Data, 0x5E); } // form index of this entry
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user