Open RainingChain opened 1 year ago
Yes although Smogon's data is now derived from PS' data in the past there were some differences, and not all of the kinks have been smoothed. The conversion has the following exceptions (from the PS data import code)
name = name.replace(/\u2019/g, "'"); // Farfetch'd ...
if (name === 'Necrozma-Dawn-Wings') {
name = 'Necrozma-Dawn Wings';
} else if (name === 'Necrozma-Dusk-Mane') {
name = 'Necrozma-Dusk Mane';
} else if (name === 'Flabébé') {
name = 'Flabebe';
} else if (name === 'Meowstic') {
name = 'Meowstic-M';
} else if (name === 'Vise Grip') {
// Can't handle this rename yet, will break old links
name = 'Vice Grip';
}
The official english name for Pokemon #669 is Flabébé. However, when trying to create a new Smogon.Pokemon instance with that name, it fails.
Current behaviour:
Expected behaviour:
The issue is with the function
utils.toID
Internally, the id for Flabébé is flabebe. However,
toID('Flabébé')
returnsflabb
.Ideally, we would modify the function toID for: