Add gen4 language dex set

Formes are still todo; they aren't bitflags but are packed values
This commit is contained in:
Kaphotics 2016-08-27 13:07:21 -07:00
parent 7e456ca284
commit ec0b502e3a

View file

@ -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]
}
}
}