mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-11 22:29:52 -05:00
Minor annotation tweaks
no functional change
This commit is contained in:
parent
890ce9ea4e
commit
c32b38a53c
|
|
@ -229,8 +229,8 @@ private static IEnumerable<EncounterEgg> GetEggs(PKM pk, IReadOnlyCollection<int
|
|||
}
|
||||
|
||||
IEnumerable<int> em = MoveEgg.GetEggMoves(pk.PersonalInfo, egg.Species, egg.Form, egg.Version, egg.Generation);
|
||||
if (Legal.LightBall.Contains(egg.Species) && needs.Contains(344))
|
||||
em = em.Concat(new[] {344}); // Volt Tackle
|
||||
if (Legal.LightBall.Contains(egg.Species) && needs.Contains((int)Move.VoltTackle))
|
||||
em = em.Concat(new[] { (int)Move.VoltTackle });
|
||||
if (!needs.Except(em).Any())
|
||||
yield return egg;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -121,12 +121,12 @@ private static CheckMoveResult[] ParseMovesWasEggPreRelearn(PKM pkm, IReadOnlyLi
|
|||
Egg = Egg.Where(m => m <= Legal.MaxMoveID_1).ToArray();
|
||||
|
||||
bool volt = (info.Generation > 3 || e.Version == GameVersion.E) && Legal.LightBall.Contains(pkm.Species);
|
||||
var Special = volt && notEvent ? new[] { 344 } : Array.Empty<int>(); // Volt Tackle for bred Pichu line
|
||||
var specialMoves = volt && notEvent ? new[] { (int)Move.VoltTackle } : Array.Empty<int>(); // Volt Tackle for bred Pichu line
|
||||
|
||||
var source = new MoveParseSource
|
||||
{
|
||||
CurrentMoves = currentMoves,
|
||||
SpecialSource = Special,
|
||||
SpecialSource = specialMoves,
|
||||
NonTradeBackLevelUpMoves = NonTradebackLvlMoves,
|
||||
|
||||
EggLevelUpSource = LevelUp,
|
||||
|
|
|
|||
|
|
@ -113,12 +113,12 @@ private static CheckResult[] VerifyRelearnEggBase(PKM pkm, EncounterEgg e)
|
|||
|
||||
// Non-Base moves that can magically appear in the regular movepool
|
||||
if (Legal.LightBall.Contains(pkm.Species))
|
||||
inheritMoves.Add(344); // Volt Tackle
|
||||
inheritMoves.Add((int)Move.VoltTackle);
|
||||
|
||||
// If any splitbreed moves are invalid, flag accordingly
|
||||
var splitMoves = e is EncounterEggSplit s
|
||||
IReadOnlyList<int> splitMoves = e is EncounterEggSplit s
|
||||
? MoveList.GetValidRelearn(pkm, s.OtherSpecies, s.Form, inheritLvlMoves, e.Version).ToList()
|
||||
: (IReadOnlyList<int>)Array.Empty<int>();
|
||||
: Array.Empty<int>();
|
||||
|
||||
// Inherited moves appear after the required base moves.
|
||||
// If the pkm is capable of split-species breeding and any inherited move is from the other split scenario, flag accordingly.
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public EggInfoSource(PKM pkm, EncounterEgg e)
|
|||
if (volt)
|
||||
{
|
||||
Egg = Egg.ToList(); // array->list
|
||||
Egg.Add(344); // Volt Tackle
|
||||
Egg.Add((int)Move.VoltTackle); // Volt Tackle
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user