mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 22:40:22 +00:00
52c4fbbe97
Refactored and rearranged things as needed to allow the change
25 lines
671 B
C#
25 lines
671 B
C#
namespace PKHeX.Core
|
|
{
|
|
public class DexLevel
|
|
{
|
|
public int Species;
|
|
public int Level;
|
|
public int MinLevel;
|
|
public bool RequiresLvlUp;
|
|
public int Form = -1;
|
|
public int Flag = -1;
|
|
|
|
public DexLevel Copy(int lvl)
|
|
{
|
|
return new DexLevel {Species = Species, Level = lvl, MinLevel = MinLevel, RequiresLvlUp = RequiresLvlUp, Form = Form, Flag = -1};
|
|
}
|
|
public bool Matches(int species, int form)
|
|
{
|
|
if (species != Species)
|
|
return false;
|
|
if (Form > -1)
|
|
return form == Form;
|
|
return true;
|
|
}
|
|
}
|
|
}
|