Skip to content

Commit

Permalink
add batch editor cp/h/w suggest routes
Browse files Browse the repository at this point in the history
  • Loading branch information
kwsch committed Dec 12, 2018
1 parent 2c1717a commit f6da84b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions PKHeX.Core/Editing/Bulk/BatchEditing.cs
Expand Up @@ -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;
Expand Down

0 comments on commit f6da84b

Please sign in to comment.