From f6da84b6992844e133d2ebe7609ccee608e7884e Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 11 Dec 2018 22:27:42 -0800 Subject: [PATCH] add batch editor cp/h/w suggest routes https://projectpokemon.org/home/forums/topic/48773-problem-with-lets-go-pikachueevee-batch-editor/ --- PKHeX.Core/Editing/Bulk/BatchEditing.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/PKHeX.Core/Editing/Bulk/BatchEditing.cs b/PKHeX.Core/Editing/Bulk/BatchEditing.cs index 244f55f82..dca517fe6 100644 --- a/PKHeX.Core/Editing/Bulk/BatchEditing.cs +++ b/PKHeX.Core/Editing/Bulk/BatchEditing.cs @@ -339,6 +339,17 @@ private static ModifyResult SetSuggestedPKMProperty(string name, PKMInfo info) var PKM = info.pkm; switch (name) { + // pb7 only + case nameof(PB7.Stat_CP) when PKM is PB7 pb7: + pb7.ResetCP(); + return ModifyResult.Modified; + case nameof(PB7.HeightAbsolute) when PKM is PB7 pb7: + pb7.HeightAbsolute = pb7.CalcHeightAbsolute; + return ModifyResult.Modified; + case nameof(PB7.WeightAbsolute) when PKM is PB7 pb7: + pb7.WeightAbsolute = pb7.CalcWeightAbsolute; + return ModifyResult.Modified; + case nameof(PKM.Stats): PKM.SetStats(PKM.GetStats(PKM.PersonalInfo)); return ModifyResult.Modified;