mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 06:20:25 +00:00
add Crystal GS EventFlags
have checked with US ver.
This commit is contained in:
parent
b2c3884391
commit
e86b8c670f
4 changed files with 16 additions and 0 deletions
|
@ -610,6 +610,7 @@
|
||||||
<None Remove="Resources\text\script\flags_sm_en.txt" />
|
<None Remove="Resources\text\script\flags_sm_en.txt" />
|
||||||
<None Remove="Resources\text\script\flags_usum_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_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\lang_zh.txt" />
|
||||||
<None Remove="Resources\text\zh\LegalityCheckStrings_zh.txt" />
|
<None Remove="Resources\text\zh\LegalityCheckStrings_zh.txt" />
|
||||||
<None Remove="Resources\text\zh\text_Abilities_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_sm_en.txt" />
|
||||||
<EmbeddedResource Include="Resources\text\script\flags_usum_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_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\lang_zh.txt" />
|
||||||
<EmbeddedResource Include="Resources\text\zh\LegalityCheckStrings_zh.txt" />
|
<EmbeddedResource Include="Resources\text\zh\LegalityCheckStrings_zh.txt" />
|
||||||
<EmbeddedResource Include="Resources\text\zh\text_Abilities_zh.txt" />
|
<EmbeddedResource Include="Resources\text\zh\text_Abilities_zh.txt" />
|
||||||
|
|
3
PKHeX.Core/Resources/text/script/flags_c_en.txt
Normal file
3
PKHeX.Core/Resources/text/script/flags_c_en.txt
Normal 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
|
|
@ -117,6 +117,10 @@ namespace PKHeX.Core
|
||||||
|
|
||||||
if (!Exportable)
|
if (!Exportable)
|
||||||
ClearBoxes();
|
ClearBoxes();
|
||||||
|
|
||||||
|
if (Version == GameVersion.C){
|
||||||
|
EventFlag = Japanese || Korean ? 0x1800 : 0x2600;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private const int SIZE_RESERVED = 0x8000; // unpacked box data
|
private const int SIZE_RESERVED = 0x8000; // unpacked box data
|
||||||
|
@ -220,6 +224,10 @@ namespace PKHeX.Core
|
||||||
public override int MaxMoney => 999999;
|
public override int MaxMoney => 999999;
|
||||||
public override int MaxCoins => 9999;
|
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 BoxCount => Japanese ? 9 : 14;
|
||||||
public override int MaxEV => 65535;
|
public override int MaxEV => 65535;
|
||||||
public override int MaxIV => 15;
|
public override int MaxIV => 15;
|
||||||
|
|
|
@ -146,6 +146,9 @@ namespace PKHeX.WinForms
|
||||||
case GameVersion.FRLG:
|
case GameVersion.FRLG:
|
||||||
gamePrefix = "frlg";
|
gamePrefix = "frlg";
|
||||||
break;
|
break;
|
||||||
|
case GameVersion.C:
|
||||||
|
gamePrefix = "c";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue