Add support for creating pokemon with passed Random parameter.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -67,7 +67,11 @@ namespace PkmnLib::Battling {
|
||||
CreatePokemon& WithNature(const ArbUt::StringView& nature);
|
||||
CreatePokemon& IsAllowedExperienceGain(bool value);
|
||||
|
||||
Pokemon* Build();
|
||||
Pokemon* Build() {
|
||||
auto rand = ArbUt::Random();
|
||||
return Build(rand);
|
||||
}
|
||||
Pokemon* Build(ArbUt::Random& rand);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user