mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Split optional into overload
This commit is contained in:
parent
30e36579be
commit
28823bd437
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ namespace PKHeX.Core
|
|||
sav.SetStoredSlot(pkm, slot.Offset);
|
||||
}
|
||||
|
||||
public static PKM[] GetExtraPKM(this SaveFile sav, List<StorageSlotOffset> slots = null)
|
||||
public static PKM[] GetExtraPKM(this SaveFile sav) => sav.GetExtraPKM(sav.GetExtraSlots());
|
||||
|
||||
public static PKM[] GetExtraPKM(this SaveFile sav, IList<StorageSlotOffset> slots)
|
||||
{
|
||||
slots = slots ?? sav.GetExtraSlots();
|
||||
var arr = new PKM[slots.Count];
|
||||
|
|
Loading…
Reference in a new issue