Add totem showdown export

soontm
https://github.com/kwsch/PKHeX/issues/1626#issuecomment-345417263
This commit is contained in:
Kurt 2017-11-17 20:38:43 -08:00
parent 311e110f6b
commit b111b9dad4

View File

@ -385,7 +385,7 @@ private static string ConvertFormToShowdown(string form, int spec)
return string.Empty;
default:
if (Legal.Totem_USUM.Contains(spec) && form == "Large")
return Legal.Totem_Alolan.Contains(spec) ? "Alola" : string.Empty;
return Legal.Totem_Alolan.Contains(spec) ? "Alola-Totem" : "Totem";
return form;
}
}
@ -424,6 +424,8 @@ private static string ConvertFormFromShowdown(string form, int spec, int ability
return "Dawn";
default:
if (Legal.Totem_USUM.Contains(spec) && form.EndsWith("Totem"))
return "Large";
return form;
}
}