mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Add gen4 language dex set
Formes are still todo; they aren't bitflags but are packed values
This commit is contained in:
parent
7e456ca284
commit
ec0b502e3a
1 changed files with 19 additions and 1 deletions
|
@ -692,7 +692,25 @@ namespace PKHeX
|
|||
// Set the Species Seen Flag
|
||||
Data[PokeDex + brSize * 1 + bit / 8 + 0x4] |= (byte)(1 << (bit % 8));
|
||||
|
||||
// Formes : todo
|
||||
int FormOffset = PokeDex + 0x108;
|
||||
int PokeDexLanguageFlags = FormOffset + 0x20 + 494 + 6;
|
||||
|
||||
// Set the Language
|
||||
if (!DP)
|
||||
{
|
||||
int lang = pkm.Language - 1; if (lang > 5) lang = 0; // no KOR
|
||||
if (lang < 0) lang = 1;
|
||||
Data[PokeDexLanguageFlags + pkm.Species] |= (byte)(1 << lang);
|
||||
}
|
||||
|
||||
// Formes : Castform & Cherrim do not have entries (Battle Only formes)
|
||||
// Lowest sub-value of formevalue is displayed, else is order of formes displayed.
|
||||
|
||||
// Standard Forme Bytes (DP)
|
||||
// [Shellos-Gastrodon-Burmy-Wormadam],[Unown*0x1C]
|
||||
|
||||
// Extra Forme Bytes (PtHGSS)
|
||||
// [Rotom*4-highest bits unused],[Shaymin],[Giratina],[Pichu-HGSS ONLY]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue