Move several classes from Core to Arbutils.
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:
@@ -1,7 +1,7 @@
|
||||
#ifndef CREATURELIB_BATTLERANDOM_HPP
|
||||
#define CREATURELIB_BATTLERANDOM_HPP
|
||||
|
||||
#include "../../Core/Random.hpp"
|
||||
#include <Arbutils/Random.hpp>
|
||||
|
||||
namespace CreatureLib::Battling {
|
||||
class ExecutingAttack;
|
||||
@@ -9,7 +9,7 @@ namespace CreatureLib::Battling {
|
||||
|
||||
class BattleRandom {
|
||||
private:
|
||||
Core::Random _random;
|
||||
Arbutils::Random _random;
|
||||
|
||||
public:
|
||||
BattleRandom() : _random() {}
|
||||
@@ -19,7 +19,7 @@ namespace CreatureLib::Battling {
|
||||
int32_t Get() { return _random.Get(); }
|
||||
int32_t Get(int32_t max) { return _random.Get(max); }
|
||||
int32_t Get(int32_t min, int32_t max) { return _random.Get(min, max); }
|
||||
Core::Random& GetRNG() { return _random; }
|
||||
Arbutils::Random& GetRNG() { return _random; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ CreateCreature* CreateCreature::WithAttack(const std::string& attackName, Attack
|
||||
}
|
||||
|
||||
Creature* CreateCreature::Create() {
|
||||
auto rand = Core::Random();
|
||||
auto rand = Arbutils::Random();
|
||||
auto species = this->_library->GetSpeciesLibrary()->Get(this->_species.c_str());
|
||||
auto variant = species->GetVariant(this->_variant);
|
||||
int8_t talent;
|
||||
|
||||
Reference in New Issue
Block a user