mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-14 12:15:56 -05: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:
@@ -258,7 +258,10 @@ public static string GetShowdownText(PKM pkm)
|
||||
{
|
||||
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 @@ public static string GetShowdownText(PKM pkm)
|
||||
|
||||
if (Set.Form == "F")
|
||||
Set.Gender = string.Empty;
|
||||
|
||||
return Set.Text;
|
||||
}
|
||||
private void ParseFirstLine(string line)
|
||||
{
|
||||
|
||||
@@ -170,7 +170,12 @@ private void ShowSimulatorSetTooltip(Control pb, PKM pk)
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user