mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
Minor clean
Move Home8 location to Locations.cs for documentation Move FestaFacility to correct folder Remove unnecessary public modifier on interface method Pass the program's Version to any loaded plugins, if they wanted to check compatibility...?
This commit is contained in:
parent
efc17a1271
commit
6243135f28
5 changed files with 9 additions and 4 deletions
|
@ -8,7 +8,6 @@
|
|||
public const int LinkTrade4 = 2002;
|
||||
public const int LinkTrade5 = 30003;
|
||||
public const int LinkTrade6 = 30002;
|
||||
public const int LinkGift6 = 30011;
|
||||
|
||||
public const int Daycare4 = 2000;
|
||||
public const int Daycare5 = 60002;
|
||||
|
@ -77,6 +76,12 @@
|
|||
/// <summary> Generation 4 -> Generation 5 Transfer Location (Crown Beast - Event activated in Gen 5) </summary>
|
||||
public const int Transfer4_CrownUsed = 30013;
|
||||
|
||||
/// <summary> Generation 6 Gift from Pokémon Link </summary>
|
||||
public const int LinkGift6 = 30011;
|
||||
|
||||
/// <summary> Generation 8 Gift from Pokémon HOME </summary>
|
||||
public const int HOME8 = 30018;
|
||||
|
||||
public const int BugCatchingContest4 = 207;
|
||||
|
||||
public static int TradedEggLocationNPC(int gen)
|
||||
|
|
|
@ -314,7 +314,7 @@ namespace PKHeX.Core
|
|||
return 0x12C + (index * 0x1C);
|
||||
}
|
||||
|
||||
public bool IsHOMEGift => Location == 30018 || GetOT(2) == "HOME";
|
||||
public bool IsHOMEGift => Location == Locations.HOME8 || GetOT(2) == "HOME";
|
||||
|
||||
public override PKM ConvertToPKM(ITrainerInfo sav, EncounterCriteria criteria)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
public interface ISaveFileRevision
|
||||
{
|
||||
public int SaveRevision { get; }
|
||||
int SaveRevision { get; }
|
||||
string SaveRevisionString { get; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -305,7 +305,7 @@ namespace PKHeX.WinForms
|
|||
#endif
|
||||
Plugins.AddRange(PluginLoader.LoadPlugins<IPlugin>(PluginPath));
|
||||
foreach (var p in Plugins.OrderBy(z => z.Priority))
|
||||
p.Initialize(C_SAV, PKME_Tabs, menuStrip1);
|
||||
p.Initialize(C_SAV, PKME_Tabs, menuStrip1, CurrentProgramVersion);
|
||||
}
|
||||
|
||||
private static void DeleteConfig(string settingsFilename)
|
||||
|
|
Loading…
Reference in a new issue