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:
Kurt 2020-09-25 23:55:31 -07:00
parent efc17a1271
commit 6243135f28
5 changed files with 9 additions and 4 deletions

View file

@ -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)

View file

@ -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)
{

View file

@ -2,7 +2,7 @@
{
public interface ISaveFileRevision
{
public int SaveRevision { get; }
int SaveRevision { get; }
string SaveRevisionString { get; }
}
}

View file

@ -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)