add EventFlags resources HGSS

Fix DP for consistency.
(now all DP&HGSS flag/const position number is same as in game used)
Checked with HG. SS not checked. (Groudon flag unknown)
This commit is contained in:
pokecal 2017-05-19 11:20:19 +09:00
parent 84d901f647
commit ea33a2cb77
8 changed files with 98 additions and 28 deletions

View file

@ -78,6 +78,20 @@ namespace PKHeX.Core.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to 0299 Spiky-eared Pichu(IlexForest) 0:Not appeared,2:disappeared
///0161 Beasts(BurnedTower) 0:stay,1:roamed/fleed
///0304 Lati@s(Roamer) 0:Not appeared,1:Ready to roam,2:roamed
///0067 Enigma Stone 0:Not activated,1778:Activated
///0249 Embedded Tower 0:Not obtained Kanto starter,1:Obtained Kanto starter,2:Obtained Orb,3:Kyogre activated,4:Kyogre disappeared,6:Rayquaza activated,7:Rayquaza caught,9:Rayquaza defeated/runaway
///0251 Sinjoh Ruins 1:Not entered,4:teleported(1st),5:went outside,6:Cynthia talkable(cabin), [rest of string was truncated]&quot;;.
/// </summary>
internal static string const_hgss {
get {
return ResourceManager.GetString("const_hgss", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 60 Ash
///21 Test1
@ -144,6 +158,29 @@ namespace PKHeX.Core.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to 0607 Red(Mt.Silver) disappeared
///0774 Articuno disappeared
///0663 Zapdos disappeared
///0775 Moltres disappeared
///0773 Mewtwo disappeared
///0457 Raikou roamed
///0458 Entei roamed
///0459 Suicune(BurnedTower) fleed
///0673 Suicune(R25) disappeared
///0782 Suicune(backed to BurnedTower) disappeared
///0579 Lugia disappeared
///0578 Ho-Oh disappeared
///0781 Lati@s(PewterCity) disappeared
///0721 Kyogre/Groudon disappeared
///0722 Rayquaza disappeared
/// </summary>
internal static string flags_hgss {
get {
return ResourceManager.GetString("flags_hgss", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to 0648 (OR) Groudon Defeated
///2839 (OR) Groudon Captured

View file

@ -1439,4 +1439,10 @@
<data name="flags_dp" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\text\other\flags_dp.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;shift_jis</value>
</data>
<data name="const_hgss" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\text\other\const_hgss.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;shift_jis</value>
</data>
<data name="flags_hgss" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\text\other\flags_hgss.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;shift_jis</value>
</data>
</root>

View file

@ -1,9 +1,9 @@
0166 Dialga/Palkia 00:Event,01:Event,02:Event,03:Event,04:Disappeared,05:Battleable
0172 Heatran 00:Not appeared,01:Battleable,02:Disappeared
0068 Fullmoon Is. 0:Not appeared,520:On the Map
0069 Newmoon Is. 0:Not appeared,553:On the Map
0070 Spring Path 0:Not appeared,786:Appeared
0071 Seabreak Path 0:Not appeared,4136:Appeared
0081 Member Card 0:Not activated,4617:Activated
0082 Oak Letter 0:Not activated,4370:Activated
0083 Azure Flute 0:Not activated,4387:Activated
0152 Dialga/Palkia 00:Event,01:Event,02:Event,03:Event,04:Disappeared,05:Battleable
0158 Heatran 00:Not appeared,01:Battleable,02:Disappeared
0054 Fullmoon Is. 0:Not appeared,520:On the Map
0055 Newmoon Is. 0:Not appeared,553:On the Map
0056 Spring Path 0:Not appeared,786:Appeared
0057 Seabreak Path 0:Not appeared,4136:Appeared
0067 Member Card 0:Not activated,4617:Activated
0068 Oak Letter 0:Not activated,4370:Activated
0069 Azure Flute 0:Not activated,4387:Activated

View file

@ -0,0 +1,8 @@
0299 Spiky-eared Pichu(IlexForest) 0:Not appeared,2:disappeared
0161 Beasts(BurnedTower) 0:stay,1:roamed/fleed
0304 Lati@s(Roamer) 0:Not appeared,1:Ready to roam,2:roamed
0067 Enigma Stone 0:Not activated,1778:Activated
0249 Embedded Tower 0:Not obtained Kanto starter,1:Obtained Kanto starter,2:Obtained Orb,3:Kyogre activated,4:Kyogre disappeared,6:Rayquaza activated,7:Rayquaza caught,9:Rayquaza defeated/runaway
0251 Sinjoh Ruins 1:Not entered,4:teleported(1st),5:went outside,6:Cynthia talkable(cabin),7:Cynthia talkable(stage),8:before choose,10:obtained(1st),13:teleported(2nd),14:obtained(2nd)
0259 Obtained(1st) 1:Dialga,2:Palkia,3:Giratina
0258 Teleportable(2nd) Arceus 1:Hall of Origin,2:FatefulEncountered

View file

@ -1,15 +1,15 @@
0479 Uxie disappeared
0477 Mesprit(Verity Cavern) disappeared
0478 Azelf disappeared
0589 Cresselia(FullmoonIs.) disappeared
0256 Heatran disappeared
0577 Regigigas disappeared
0590 Giratina disappeared
0574 Darkrai disappeared
0591 Shaymin(FlowerParadise) disappeared
0588 Arceus disappeared
0254 Arceus(MapObj) disappeared
0275 Ferry FullmoonIs. accessable
0284 Ferry NewmoonIs. accessable
0269 Oak(R224) disappeared
0602 Shaymin(R224 MapObj) disappeared
0511 Uxie disappeared
0509 Mesprit(Verity Cavern) disappeared
0510 Azelf disappeared
0621 Cresselia(FullmoonIs.) disappeared
0288 Heatran disappeared
0609 Regigigas disappeared
0622 Giratina disappeared
0606 Darkrai disappeared
0623 Shaymin(FlowerParadise) disappeared
0620 Arceus disappeared
0286 Arceus(MapObj) disappeared
0307 Ferry FullmoonIs. accessable
0316 Ferry NewmoonIs. accessable
0301 Oak(R224) disappeared
0634 Shaymin(R224 MapObj) disappeared

View file

@ -0,0 +1,15 @@
0607 Red(Mt.Silver) disappeared
0774 Articuno disappeared
0663 Zapdos disappeared
0775 Moltres disappeared
0773 Mewtwo disappeared
0457 Raikou roamed
0458 Entei roamed
0459 Suicune(BurnedTower) fleed
0673 Suicune(R25) disappeared
0782 Suicune(backed to BurnedTower) disappeared
0579 Lugia disappeared
0578 Ho-Oh disappeared
0781 Lati@s(PewterCity) disappeared
0721 Kyogre/Groudon disappeared
0722 Rayquaza disappeared

View file

@ -49,7 +49,7 @@ namespace PKHeX.Core
public override int BoxCount => 18;
public override int MaxEV => 255;
public override int Generation => 4;
protected override int EventFlagMax => EventFlag > 0 ? 0x280 : int.MinValue;
protected override int EventFlagMax => EventFlag > 0 ? 0xB60 : int.MinValue;
protected override int EventConstMax => EventConst > 0 ? (EventFlag - EventConst) >> 1 : int.MinValue;
protected override int GiftCountMax => 11;
public override int OTLength => 7;
@ -203,8 +203,8 @@ namespace PKHeX.Core
LegalMailItems = Legal.Pouch_Mail_DP;
HeldItems = Legal.HeldItems_DP;
EventConst = 0xD80 + GBO;
EventFlag = 0xFE0 + GBO;
EventConst = 0xD9C + GBO;
EventFlag = 0xFDC + GBO;
Daycare = 0x141C + GBO;
Box = 0xC104 + SBO;
break;
@ -264,7 +264,8 @@ namespace PKHeX.Core
LegalMailItems = Legal.Pouch_Mail_HGSS;
HeldItems = Legal.HeldItems_HGSS;
EventConst = 0xDE4 + GBO;
EventFlag = 0x10C4 + GBO;
Daycare = 0x15FC + GBO;
Box = 0xF700 + SBO;
break;

View file

@ -108,6 +108,9 @@ namespace PKHeX.WinForms
case GameVersion.DP:
gamePrefix = "dp";
break;
case GameVersion.HGSS:
gamePrefix = "hgss";
break;
default:
return null;
}