mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-04 01:39:13 +00:00
Fix pb7 zh string handling
no remapping ok
This commit is contained in:
parent
89028b8a41
commit
3038c1eedb
1 changed files with 1 additions and 13 deletions
|
@ -200,19 +200,7 @@ namespace PKHeX.Core
|
||||||
public override string Nickname
|
public override string Nickname
|
||||||
{
|
{
|
||||||
get => GetString(0x40, 24);
|
get => GetString(0x40, 24);
|
||||||
set
|
set => SetString(value, 12).CopyTo(Data, 0x40);
|
||||||
{
|
|
||||||
if (!IsNicknamed)
|
|
||||||
{
|
|
||||||
int lang = PKX.GetSpeciesNameLanguage(Species, value, 7, Language);
|
|
||||||
if (lang == 9 || lang == 10)
|
|
||||||
{
|
|
||||||
StringConverter.SetString7(value, 12, lang, chinese: true).CopyTo(Data, 0x40);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
SetString(value, 12).CopyTo(Data, 0x40);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int Move1
|
public override int Move1
|
||||||
|
|
Loading…
Reference in a new issue