mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 00:07:15 +00:00
Return old Chinese species name for Gen7 fetch
Add documentation comments, because changing species names is so weird. ty anubis for confirming the game resets the old-nickname to new-nickname even without transferring to HOME. Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
This commit is contained in:
parent
b492d93f39
commit
5326067c8d
1 changed files with 22 additions and 0 deletions
|
@ -61,7 +61,29 @@ namespace PKHeX.Core
|
|||
public static string GetSpeciesNameGeneration(int species, int language, int generation)
|
||||
{
|
||||
if (generation >= 5)
|
||||
{
|
||||
// Species Names for Chinese (Simplified) were revised during Generation 8 Crown Tundra DLC (#2).
|
||||
// For a Gen7 species name request, return the old species name (hardcoded... yay).
|
||||
// In an updated Gen8 game, the species nickname will automatically reset to the correct localization (on save/load ?), fixing existing entries.
|
||||
// We don't differentiate patch revisions, just generation; Gen8 will return the latest localization.
|
||||
if (generation == 7 && language == (int) LanguageID.ChineseS)
|
||||
{
|
||||
switch (species)
|
||||
{
|
||||
case (int)Species.Porygon2: return "多边兽Ⅱ"; // Later changed to 多边兽2型
|
||||
case (int)Species.PorygonZ: return "多边兽Z"; // Later changed to 多边兽乙型
|
||||
case (int)Species.Cofagrigus: return "死神棺"; // Later changed to 迭失棺
|
||||
case (int)Species.Pangoro: return "流氓熊猫"; // Later changed to 霸道熊猫
|
||||
case (int)Species.Mimikyu: return "谜拟Q"; // Later changed to 谜拟丘
|
||||
case (int)Species.Nickit: return "偷儿狐"; // Later changed to 狡小狐
|
||||
case (int)Species.Thievul: return "狐大盗"; // Later changed to 猾大狐
|
||||
case (int)Species.Toxel: return "毒电婴"; // Later changed to 电音婴
|
||||
case (int)Species.Runerigus: return "死神板"; // Later changed to 迭失板
|
||||
}
|
||||
}
|
||||
|
||||
return GetSpeciesName(species, language);
|
||||
}
|
||||
|
||||
if (species == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue