mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-13 07:47:07 +00:00
Minor clean
This commit is contained in:
parent
5a391bc20c
commit
9ce09c8b1b
5 changed files with 1 additions and 28 deletions
|
@ -19,23 +19,6 @@ namespace PKHeX.Core
|
|||
return source.Where(s => s.Version.Contains(game)).ToArray();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the <see cref="IGenerationSet.Generation"/> value.
|
||||
/// </summary>
|
||||
/// <param name="generation">Generation number to set</param>
|
||||
/// <param name="encounters">In-game encounter data</param>
|
||||
internal static void MarkEncountersGeneration(int generation, params IEnumerable<IGenerationSet>[] encounters)
|
||||
{
|
||||
foreach (var table in encounters)
|
||||
MarkEncountersGeneration(generation, table);
|
||||
}
|
||||
|
||||
private static void MarkEncountersGeneration(int generation, IEnumerable<IGenerationSet> encounters)
|
||||
{
|
||||
foreach (var enc in encounters)
|
||||
enc.Generation = generation;
|
||||
}
|
||||
|
||||
internal static T[] ConcatAll<T>(params IEnumerable<T>[] arr) => arr.SelectMany(z => z).ToArray();
|
||||
|
||||
internal static EncounterStatic Clone(this EncounterStatic s, int location)
|
||||
|
@ -61,7 +44,7 @@ namespace PKHeX.Core
|
|||
|
||||
private static EncounterStatic5 DreamRadarClone(this EncounterStatic5 s, int level)
|
||||
{
|
||||
var result = (EncounterStatic5)(s.Clone(level));
|
||||
var result = (EncounterStatic5)s.Clone(level);
|
||||
result.Level = level;
|
||||
result.Location = 30015;// Pokemon Dream Radar
|
||||
result.Gift = true; // Only
|
||||
|
|
|
@ -16,7 +16,6 @@ namespace PKHeX.Core
|
|||
internal static readonly EncounterArea6AO[] SlotsO = EncounterArea6AO.GetAreas(Get("o", "ao"), GameVersion.OR);
|
||||
private static byte[][] Get(string resource, string ident) => BinLinker.Unpack(Util.GetBinaryResource($"encounter_{resource}.pkl"), ident);
|
||||
|
||||
|
||||
static Encounters6()
|
||||
{
|
||||
MarkEncounterTradeStrings(TradeGift_XY, TradeXY);
|
||||
|
|
|
@ -77,7 +77,6 @@ namespace PKHeX.Core
|
|||
new EncounterTrade7b { Species = 074, Level = 16, Form = 1, TrainerNames = T8, TID7 = 551873, OTGender = 0, Shiny = Shiny.Random, IVs = new[] {31,31,-1,-1,-1,-1}, IsNicknamed = false }, // Geodude @ Vermilion City, AV rand [0-5)
|
||||
};
|
||||
|
||||
|
||||
private class RareSpawn
|
||||
{
|
||||
public readonly int Species;
|
||||
|
|
|
@ -29,6 +29,5 @@ namespace PKHeX.Core
|
|||
|
||||
return Form == evo.Form || Legal.IsFormChangeable(Species, Form, pkm.Format);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
namespace PKHeX.Core
|
||||
{
|
||||
internal interface IGenerationSet
|
||||
{
|
||||
int Generation { set; }
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue