mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-28 17:15:28 -05:00
Inline constant value
This commit is contained in:
@@ -108,7 +108,7 @@ private void SetSpeciesValues(int value)
|
||||
return;
|
||||
|
||||
var table = EvolutionTree.GetEvolutionTree(1);
|
||||
var evos = table.GetValidPreEvolutions(this, maxLevel: 100, maxSpeciesOrigin: -1, skipChecks: true);
|
||||
var evos = table.GetValidPreEvolutions(this, maxLevel: 100, maxSpeciesOrigin: Legal.MaxSpeciesID_1, skipChecks: true);
|
||||
var baseSpecies = evos[^1].Species;
|
||||
if (IsCatchRatePreEvolutionRate(baseSpecies, value, rate))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user