Added random seed to battle constructor
This commit is contained in:
parent
ae0a364504
commit
c86d35619e
|
@ -13,8 +13,11 @@ namespace PkmnLib::Battling {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Battle(const BattleLibrary* library, const ArbUt::List<CreatureLib::Battling::BattleParty*>& parties,
|
Battle(const BattleLibrary* library, const ArbUt::List<CreatureLib::Battling::BattleParty*>& parties,
|
||||||
bool canFlee = true, uint8_t numberOfSides = 2, uint8_t creaturesPerSide = 1)
|
bool canFlee = true, uint8_t numberOfSides = 2, uint8_t creaturesPerSide = 1,
|
||||||
: CreatureLib::Battling::Battle(library, parties, canFlee, numberOfSides, creaturesPerSide) {}
|
uint_fast32_t randomSeed = std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||||
|
std::chrono::system_clock::now().time_since_epoch())
|
||||||
|
.count())
|
||||||
|
: CreatureLib::Battling::Battle(library, parties, canFlee, numberOfSides, creaturesPerSide, randomSeed) {}
|
||||||
|
|
||||||
void SetWeather(const ArbUt::StringView& name);
|
void SetWeather(const ArbUt::StringView& name);
|
||||||
void ClearWeather();
|
void ClearWeather();
|
||||||
|
|
Loading…
Reference in New Issue