Add elemental beam type tutors for BDSP

This commit is contained in:
Kurt 2021-11-20 16:50:44 -08:00
parent 6980026ca2
commit 3e677bf6c0
2 changed files with 24 additions and 6 deletions

View file

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

View file

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