Make Creature::GetAttacks const
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5c005f31fe
commit
24871b6b65
|
@ -181,7 +181,7 @@ namespace CreatureLib::Battling {
|
|||
void RemoveVolatileScript(BattleScript* non_null script);
|
||||
bool HasVolatileScript(const ArbUt::BasicStringView& name) const;
|
||||
|
||||
const ArbUt::OptionalUniquePtrList<LearnedAttack>& GetAttacks() noexcept { return _attacks; }
|
||||
const ArbUt::OptionalUniquePtrList<LearnedAttack>& GetAttacks() const noexcept { return _attacks; }
|
||||
bool HasAttack(const ArbUt::StringView& name) {
|
||||
for (auto& a : _attacks) {
|
||||
if (a == nullptr)
|
||||
|
|
Loading…
Reference in New Issue