示例#1
0
文件: Main.cs 项目: kwsch/PKHeX
            public static void setPKMtoDestination(SaveFile SAV, PKM pk)
            {
                int o = slotDestinationOffset;
                if (!DestinationParty)
                { SAV.setStoredSlot(pk, o); return; }

                if (30 + SAV.PartyCount < slotDestinationSlotNumber)
                {
                    o = SAV.getPartyOffset(SAV.PartyCount);
                    slotDestinationSlotNumber = 30 + SAV.PartyCount;
                }
                if (pk.Stat_HPMax == 0) // Without Stats (Box/File)
                {
                    pk.setStats(pk.getStats(SAV.Personal.getFormeEntry(pk.Species, pk.AltForm)));
                    pk.Stat_Level = pk.CurrentLevel;
                }
                SAV.setPartySlot(pk, o);
            }
示例#2
0
文件: Main.cs 项目: kwsch/PKHeX
            public static void setPKMtoSource(SaveFile SAV, PKM pk)
            {
                int o = slotSourceOffset;
                if (!SourceParty)
                { SAV.setStoredSlot(pk, o); return; }

                if (pk.Species == 0) // Empty Slot
                { SAV.deletePartySlot(slotSourceSlotNumber-30); return; }

                if (pk.Stat_HPMax == 0) // Without Stats (Box)
                {
                    pk.setStats(pk.getStats(SAV.Personal.getFormeEntry(pk.Species, pk.AltForm)));
                    pk.Stat_Level = pk.CurrentLevel;
                }
                SAV.setPartySlot(pk, o);
            }