Kurt 2018-12-11 22:27:42 -08:00
parent 2c1717a409
commit f6da84b699

View file

@ -339,6 +339,17 @@ namespace PKHeX.Core
var PKM = info.pkm; var PKM = info.pkm;
switch (name) 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): case nameof(PKM.Stats):
PKM.SetStats(PKM.GetStats(PKM.PersonalInfo)); PKM.SetStats(PKM.GetStats(PKM.PersonalInfo));
return ModifyResult.Modified; return ModifyResult.Modified;