Show nature of pk1/2 via slothover

derived via EXP%25 as if it were converted to pk7.
#1954
This commit is contained in:
Kurt 2018-05-20 18:33:38 -07:00
parent 199b6f2caf
commit 4d0007f49b
2 changed files with 10 additions and 4 deletions

View file

@ -258,7 +258,10 @@ namespace PKHeX.Core
{
if (pkm.Species == 0)
return string.Empty;
return new ShowdownSet(pkm).Text;
}
public ShowdownSet(PKM pkm)
{
string[] Forms = PKX.GetFormList(pkm.Species, types, forms, genderForms, pkm.Format);
ShowdownSet Set = new ShowdownSet
{
@ -281,8 +284,6 @@ namespace PKHeX.Core
if (Set.Form == "F")
Set.Gender = string.Empty;
return Set.Text;
}
private void ParseFirstLine(string line)
{

View file

@ -170,7 +170,12 @@ namespace PKHeX.WinForms.Controls
if (pk.Species == 0)
ShowSet.RemoveAll();
else
ShowSet.SetToolTip(pb, ShowdownSet.GetShowdownText(pk));
{
var set = new ShowdownSet(pk);
if (pk.Format <= 2) // Nature preview from IVs
set.Nature = (int)(pk.EXP % 25);
ShowSet.SetToolTip(pb, set.Text);
}
}
private void PlayCry(PKM pk)
{