mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Add elemental beam type tutors for BDSP
This commit is contained in:
parent
6980026ca2
commit
3e677bf6c0
2 changed files with 24 additions and 6 deletions
|
@ -251,12 +251,22 @@ namespace PKHeX.Core
|
|||
|
||||
private static void AddMovesTutor8(List<int> moves, int species, int form, PKM pkm, bool specialTutors)
|
||||
{
|
||||
var pi = (PersonalInfoSWSH)PersonalTable.SWSH.GetFormEntry(species, form);
|
||||
if (!pi.IsPresentInGame)
|
||||
return;
|
||||
moves.AddRange(TypeTutor8.Where((_, i) => pi.TypeTutors[i]));
|
||||
if (specialTutors)
|
||||
moves.AddRange(GetTutors(pi, Tutors_SWSH_1));
|
||||
if (pkm.BDSP)
|
||||
{
|
||||
var pi = (PersonalInfoBDSP)PersonalTable.BDSP.GetFormEntry(species, form);
|
||||
if (!pi.IsPresentInGame)
|
||||
return;
|
||||
moves.AddRange(TypeTutor8b.Where((_, i) => pi.TypeTutors[i]));
|
||||
}
|
||||
else // SWSH
|
||||
{
|
||||
var pi = (PersonalInfoSWSH)PersonalTable.SWSH.GetFormEntry(species, form);
|
||||
if (!pi.IsPresentInGame)
|
||||
return;
|
||||
moves.AddRange(TypeTutor8.Where((_, i) => pi.TypeTutors[i]));
|
||||
if (specialTutors)
|
||||
moves.AddRange(GetTutors(pi, Tutors_SWSH_1));
|
||||
}
|
||||
}
|
||||
|
||||
private static IEnumerable<int> GetTutors(PersonalInfo pi, params int[][] tutors)
|
||||
|
|
|
@ -208,6 +208,14 @@ namespace PKHeX.Core
|
|||
015, 019, 057, 070, 432, 249, 127, 431,
|
||||
};
|
||||
|
||||
internal static readonly int[] TypeTutor8b =
|
||||
{
|
||||
(int)Move.FrenzyPlant,
|
||||
(int)Move.BlastBurn,
|
||||
(int)Move.HydroCannon,
|
||||
(int)Move.DracoMeteor,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Moves that are kill
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Reference in a new issue