Tweaks and fixes for AttackData name.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
83f427368e
commit
331767789c
|
@ -6,8 +6,8 @@ CreatureLib::Library::AttackData::AttackData(const ConstString& name, uint8_t ty
|
||||||
uint8_t accuracy, uint8_t baseUsage,
|
uint8_t accuracy, uint8_t baseUsage,
|
||||||
CreatureLib::Library::AttackTarget target, int8_t priority,
|
CreatureLib::Library::AttackTarget target, int8_t priority,
|
||||||
const SecondaryEffect* effect, std::unordered_set<uint32_t> flags)
|
const SecondaryEffect* effect, std::unordered_set<uint32_t> flags)
|
||||||
: _name(std::move(name)), _type(type), _category(category), _basePower(power), _accuracy(accuracy),
|
: _name(name), _type(type), _category(category), _basePower(power), _accuracy(accuracy), _baseUsages(baseUsage),
|
||||||
_baseUsages(baseUsage), _target(target), _priority(priority), _effect(effect), _flags(std::move(flags)) {}
|
_target(target), _priority(priority), _effect(effect), _flags(std::move(flags)) {}
|
||||||
|
|
||||||
bool CreatureLib::Library::AttackData::HasFlag(const ConstString& key) const noexcept {
|
bool CreatureLib::Library::AttackData::HasFlag(const ConstString& key) const noexcept {
|
||||||
return this->_flags.find(key) != this->_flags.end();
|
return this->_flags.find(key) != this->_flags.end();
|
||||||
|
|
|
@ -13,7 +13,7 @@ using ConstString = Arbutils::CaseInsensitiveConstString;
|
||||||
namespace CreatureLib::Library {
|
namespace CreatureLib::Library {
|
||||||
class AttackData {
|
class AttackData {
|
||||||
protected:
|
protected:
|
||||||
const ConstString _name;
|
ConstString _name;
|
||||||
uint8_t _type;
|
uint8_t _type;
|
||||||
AttackCategory _category;
|
AttackCategory _category;
|
||||||
uint8_t _basePower;
|
uint8_t _basePower;
|
||||||
|
|
Loading…
Reference in New Issue