mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 04:23:12 +00:00
Enhance clone detection for gen1/2
Would only return unique species as PID is not used, use IV values as unique identification.
This commit is contained in:
parent
f0b5adcfe3
commit
c075ff3c47
1 changed files with 9 additions and 1 deletions
|
@ -120,7 +120,15 @@ namespace PKHeX.WinForms
|
|||
private readonly string Counter;
|
||||
private readonly string Viewed;
|
||||
private const int MAXFORMAT = 7;
|
||||
private readonly Func<PKM, string> hash = pk => pk.Species.ToString("000") + pk.PID.ToString("X8");
|
||||
private readonly Func<PKM, string> hash = pk =>
|
||||
{
|
||||
switch (pk.Format)
|
||||
{
|
||||
case 1: return ((PK1)pk).DV16.ToString("X4");
|
||||
case 2: return ((PK2)pk).DV16.ToString("X4");
|
||||
default: return pk.Species.ToString("000") + pk.PID.ToString("X8");
|
||||
}
|
||||
};
|
||||
|
||||
// Important Events
|
||||
private void clickView(object sender, EventArgs e)
|
||||
|
|
Loading…
Reference in a new issue