mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
Show nature of pk1/2 via slothover
derived via EXP%25 as if it were converted to pk7. #1954
This commit is contained in:
parent
199b6f2caf
commit
4d0007f49b
2 changed files with 10 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue