add Crystal GS EventFlags

have checked with US ver.
This commit is contained in:
pokecal 2017-11-28 03:35:49 +09:00
parent b2c3884391
commit e86b8c670f
4 changed files with 16 additions and 0 deletions

View file

@ -610,6 +610,7 @@
<None Remove="Resources\text\script\flags_sm_en.txt" />
<None Remove="Resources\text\script\flags_usum_en.txt" />
<None Remove="Resources\text\script\flags_xy_en.txt" />
<None Remove="Resources\text\script\flags_c_en.txt" />
<None Remove="Resources\text\zh\lang_zh.txt" />
<None Remove="Resources\text\zh\LegalityCheckStrings_zh.txt" />
<None Remove="Resources\text\zh\text_Abilities_zh.txt" />
@ -1255,6 +1256,7 @@
<EmbeddedResource Include="Resources\text\script\flags_sm_en.txt" />
<EmbeddedResource Include="Resources\text\script\flags_usum_en.txt" />
<EmbeddedResource Include="Resources\text\script\flags_xy_en.txt" />
<EmbeddedResource Include="Resources\text\script\flags_c_en.txt" />
<EmbeddedResource Include="Resources\text\zh\lang_zh.txt" />
<EmbeddedResource Include="Resources\text\zh\LegalityCheckStrings_zh.txt" />
<EmbeddedResource Include="Resources\text\zh\text_Abilities_zh.txt" />

View file

@ -0,0 +1,3 @@
0190 Kurt checkable GS ball
0191 Kurt ready to return GS ball (Combine with avove check)
0192 Putable GS ball in Ilex Forest Shrine

View file

@ -117,6 +117,10 @@ namespace PKHeX.Core
if (!Exportable)
ClearBoxes();
if (Version == GameVersion.C){
EventFlag = Japanese || Korean ? 0x1800 : 0x2600;
}
}
private const int SIZE_RESERVED = 0x8000; // unpacked box data
@ -220,6 +224,10 @@ namespace PKHeX.Core
public override int MaxMoney => 999999;
public override int MaxCoins => 9999;
// not correct, but whole contains. Data[EventFlag+0x22F]=Data[0x1A2F] means repel count.
protected override int EventFlagMax => Version == GameVersion.C ? 0x230 << 3 : base.EventFlagMax;
protected override int EventConstMax => Version == GameVersion.C ? 0 : base.EventConstMax;
public override int BoxCount => Japanese ? 9 : 14;
public override int MaxEV => 65535;
public override int MaxIV => 15;

View file

@ -146,6 +146,9 @@ namespace PKHeX.WinForms
case GameVersion.FRLG:
gamePrefix = "frlg";
break;
case GameVersion.C:
gamePrefix = "c";
break;
default:
return null;
}