mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 22:54:14 +00:00
Add local pickle loading if compiled as debug
Same dangers about "what is the root path" Bump the level cap while we're here.
This commit is contained in:
parent
c2867f7899
commit
3680048c0a
1 changed files with 11 additions and 2 deletions
|
@ -5,11 +5,20 @@
|
|||
/// </summary>
|
||||
internal static class EncountersGO
|
||||
{
|
||||
internal const int MAX_LEVEL = 40;
|
||||
internal const int MAX_LEVEL = 50;
|
||||
|
||||
internal static readonly EncounterArea7g[] SlotsGO_GG = EncounterArea7g.GetArea(Get("go_lgpe", "go"));
|
||||
internal static readonly EncounterArea8g[] SlotsGO = EncounterArea8g.GetArea(Get("go_home", "go"));
|
||||
|
||||
private static byte[][] Get(string resource, string ident) => BinLinker.Unpack(Util.GetBinaryResource($"encounter_{resource}.pkl"), ident);
|
||||
private static byte[][] Get(string resource, string ident)
|
||||
{
|
||||
var name = $"encounter_{resource}.pkl";
|
||||
#if DEBUG
|
||||
var data = System.IO.File.Exists(name) ? System.IO.File.ReadAllBytes(name) : Util.GetBinaryResource(name);
|
||||
#else
|
||||
var data = Util.GetBinaryResource(name);
|
||||
#endif
|
||||
return BinLinker.Unpack(data, ident);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue