Made GetRandomAttack const.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
ad9cbf0670
commit
aeac49d892
|
@ -32,7 +32,7 @@ namespace CreatureLib::Library {
|
|||
|
||||
const List<const AttackData*>& GetAttacksForLevel(uint8_t level) const;
|
||||
|
||||
virtual const AttackData* GetRandomAttack(Arbutils::Random rand = Arbutils::Random()) {
|
||||
virtual const AttackData* GetRandomAttack(Arbutils::Random rand = Arbutils::Random()) const {
|
||||
auto val = rand.Get(_distinctAttacks.size());
|
||||
return *std::next(_distinctAttacks.begin(), val);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue