Restrict downleveled to lvl % 5 == 0

This commit is contained in:
Kurt
2019-12-27 00:17:59 -08:00
parent c7e396ef14
commit 940cdccb6b
2 changed files with 3 additions and 1 deletions

View File

@@ -55,6 +55,8 @@ protected override bool IsMatchLevel(PKM pkm, int lvl)
return false;
if (rank < MinRank) // downleveled
{
if (metLevel % 5 != 0)
return false;
if (pkm.Met_Location == SharedNest)
{ } // shared nests can be downleveled to any
else if (MinRank - rank > 1) // native downlevels: only allow 1 rank down (?)

View File

@@ -33,7 +33,7 @@ private static void AddEdgeCaseMoves(List<int> moves, IEncounterable encounter,
{
switch (encounter)
{
case EncounterStatic8N r when !EncounterStatic8N.IsHighestLevelTier(pkm.Met_Level): // Downleveled Raid can happen for shared raids and self-hosted raids.
case EncounterStatic8N r when !EncounterStatic8N.IsHighestLevelTier(pkm.Met_Level) && pkm.Met_Level % 5 == 0: // Downleveled Raid can happen for shared raids and self-hosted raids.
moves.AddRange(MoveLevelUp.GetMovesLevelUp(pkm, r.Species, -1, -1, 60, r.Form, GameVersion.SW, false, 8));
break;
}