mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-03-21 17:48:28 -05:00
Gift2: fix template->pk2 japanese enc
as observed in discussion #4684 now matches Gift1 implementation details I really wish we had separate classes for PK1/PK2 for each language since the string buffers are different length, oh well this footgun exists.
This commit is contained in:
parent
85abb48da3
commit
e3fa760f52
|
|
@ -94,8 +94,9 @@ public EncounterGift2(ReadOnlySpan<byte> data)
|
|||
public PK2 ConvertToPKM(ITrainerInfo tr, EncounterCriteria criteria)
|
||||
{
|
||||
var lang = GetLanguage((LanguageID)tr.Language);
|
||||
var isJapanese = lang == Japanese;
|
||||
var pi = PersonalTable.C[Species];
|
||||
var pk = new PK2
|
||||
var pk = new PK2(isJapanese)
|
||||
{
|
||||
Species = Species,
|
||||
CurrentLevel = CurrentLevel == 0 ? LevelMin : CurrentLevel,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user