mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Add height scalar classification
This commit is contained in:
parent
5f0d1d423b
commit
5ca597d44b
1 changed files with 13 additions and 0 deletions
|
@ -739,5 +739,18 @@ namespace PKHeX.Core
|
|||
ResetHeight();
|
||||
ResetWeight();
|
||||
}
|
||||
|
||||
public static int GetHeightRating(int heightScalar)
|
||||
{
|
||||
if (heightScalar < 0x10)
|
||||
return 0; // 1/16 = XS
|
||||
if (heightScalar < 0x30u)
|
||||
return 1; // 2/16 = S
|
||||
if (heightScalar < 0xD0u)
|
||||
return 2; // average (10/16)
|
||||
if (heightScalar < 0xF0u)
|
||||
return 3; // 2/16 = L
|
||||
return 4; // 1/16 = XL
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue