Style Fixes
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
e642f374b9
commit
87bbae678a
|
@ -3,13 +3,11 @@
|
||||||
CreatureLib::Battling::LearnedAttack::LearnedAttack(
|
CreatureLib::Battling::LearnedAttack::LearnedAttack(
|
||||||
const ArbUt::BorrowedPtr<const CreatureLib::Library::AttackData>& attack, uint8_t maxUses,
|
const ArbUt::BorrowedPtr<const CreatureLib::Library::AttackData>& attack, uint8_t maxUses,
|
||||||
AttackLearnMethod learnMethod)
|
AttackLearnMethod learnMethod)
|
||||||
: _attack(attack), _maxUses(maxUses), _remainingUses(maxUses), _learnMethod(learnMethod) {
|
: _attack(attack), _maxUses(maxUses), _remainingUses(maxUses), _learnMethod(learnMethod) {}
|
||||||
}
|
|
||||||
|
|
||||||
CreatureLib::Battling::LearnedAttack::LearnedAttack(
|
CreatureLib::Battling::LearnedAttack::LearnedAttack(
|
||||||
const ArbUt::BorrowedPtr<const CreatureLib::Library::AttackData>& attack, AttackLearnMethod learnMethod)
|
const ArbUt::BorrowedPtr<const CreatureLib::Library::AttackData>& attack, AttackLearnMethod learnMethod)
|
||||||
: _attack(attack), _maxUses(attack->GetBaseUsages()), _remainingUses(_maxUses), _learnMethod(learnMethod) {
|
: _attack(attack), _maxUses(attack->GetBaseUsages()), _remainingUses(_maxUses), _learnMethod(learnMethod) {}
|
||||||
}
|
|
||||||
|
|
||||||
const ArbUt::BorrowedPtr<const CreatureLib::Library::AttackData>&
|
const ArbUt::BorrowedPtr<const CreatureLib::Library::AttackData>&
|
||||||
CreatureLib::Battling::LearnedAttack::GetAttack() const noexcept {
|
CreatureLib::Battling::LearnedAttack::GetAttack() const noexcept {
|
||||||
|
|
|
@ -58,9 +58,7 @@ namespace CreatureLib::Battling {
|
||||||
const CreatureIndex& GetTarget() const noexcept { return _target; }
|
const CreatureIndex& GetTarget() const noexcept { return _target; }
|
||||||
|
|
||||||
const std::unique_ptr<Script>& GetAttackScript() const noexcept { return _attackScript; }
|
const std::unique_ptr<Script>& GetAttackScript() const noexcept { return _attackScript; }
|
||||||
size_t ScriptCount() const override {
|
size_t ScriptCount() const override { return 1 + GetUser()->ScriptCount(); }
|
||||||
return 1 + GetUser()->ScriptCount();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void GetActiveScripts(ArbUt::List<ScriptWrapper>& scripts) override {
|
void GetActiveScripts(ArbUt::List<ScriptWrapper>& scripts) override {
|
||||||
|
|
Loading…
Reference in New Issue