From 08900d589c7348fdb979ae4d2514c5dc57cdee80 Mon Sep 17 00:00:00 2001 From: Archit Date Date: Mon, 8 Feb 2021 21:21:22 +0800 Subject: [PATCH] some xml documentation --- PKHeX.Core.AutoMod/AutoMod/APILegality.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/PKHeX.Core.AutoMod/AutoMod/APILegality.cs b/PKHeX.Core.AutoMod/AutoMod/APILegality.cs index d1e49d14..7ca1dedc 100644 --- a/PKHeX.Core.AutoMod/AutoMod/APILegality.cs +++ b/PKHeX.Core.AutoMod/AutoMod/APILegality.cs @@ -473,6 +473,10 @@ private static void HandleEggEncounters(this PKM pk, IEncounterable enc, ITraine pk.Egg_Location = Locations.TradedEggLocation(pk.Generation); } + /// + /// Sets a tracker based on the setting provided + /// + /// pk to set the tracker for private static void GetSuggestedTracker(this PKM pk) { if (pk is not IHomeTrack home) @@ -540,6 +544,12 @@ private static void SetIVsPID(this PKM pk, IBattleTemplate set, PIDType method, } } + /// + /// Set PIDIV for raid PKM via XOROSHIRO incase it is transferred to future generations to preserve the IVs + /// + /// Pokemon to be edited + /// Raid encounter encounterable + /// Set to pass in requested IVs private static void PreSetPIDIV(this PKM pk, IEncounterable enc, IBattleTemplate set) { if (enc is EncounterStatic8N or EncounterStatic8NC or EncounterStatic8ND or EncounterStatic8U) @@ -614,6 +624,13 @@ private static void FindNestPIDIV(PK8 pk, T enc, bool shiny) where T : Encoun pk.StatNature = iterPKM.StatNature; } + /// + /// Exit Criteria for IVs to be valid + /// + /// + /// Pokemon to edit + /// Clone of the PKM taken prior + /// True if the IVs are matching the criteria private static bool IsMatchCriteria(PK8 pk, PKM template) where T : EncounterStatic8Nest { if (template.Nature != pk.Nature) // match nature @@ -837,6 +854,9 @@ AsyncLegalizationResult GetLegal() return result.Created; } + /// + /// Async Related actions for global timer. + /// private class AsyncLegalizationResult { public readonly PKM Created;