Support for passing a random seed.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -4,9 +4,9 @@ using namespace CreatureLib::Battling;
|
||||
|
||||
export uint8_t CreatureLib_Battle_Construct(Battle*& out, const BattleLibrary* library, BattleParty* partyArr[],
|
||||
size_t numberOfParties, bool canFlee, uint8_t numberOfSides,
|
||||
uint8_t creaturesPerSide) {
|
||||
uint8_t creaturesPerSide, uint_fast32_t randomSeed) {
|
||||
Try(ArbUt::List<BattleParty*> parties(partyArr, partyArr + numberOfParties);
|
||||
out = new Battle(library, parties, canFlee, numberOfSides, creaturesPerSide);)
|
||||
out = new Battle(library, parties, canFlee, numberOfSides, creaturesPerSide, randomSeed);)
|
||||
}
|
||||
|
||||
export void CreatureLib_Battle_Destruct(const Battle* p) { delete p; }
|
||||
|
||||
Reference in New Issue
Block a user