3 #include <BLIB/Util/Random.hpp>
13 for (
unsigned int lvl = 1; lvl <= wild.currentLevel(); ++lvl) {
17 wild.learnMove(move, mi);
21 if (bl::util::Random::get<int>(0, 100) <= 40) {
22 wild.learnMove(move, bl::util::Random::get<unsigned int>(0, 3));
Core classes and functionality for both the editor and game.
Represents an instance of a peoplemon. Can be a wild peoplemon, trainer, or player peoplemon....
static MoveId moveLearnedAtLevel(Id ppl, unsigned int level)
Returns the move the peoplemon learns at the given level, if any.
Id id
The type of peoplemon to generate.
std::uint8_t minLevel
The minimum level that may spawn, inclusive.
std::uint8_t maxLevel
The maximum level that may spawn, inclusive.
OwnedPeoplemon generate() const
Generate an OwnedPeoplemon from the template.