Support learning moves with CreateCreature class
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-10-25 20:08:25 +02:00
parent 9588236183
commit 7d6de3557c
6 changed files with 38 additions and 3 deletions

View File

@@ -6,6 +6,11 @@ CreatureLib::Battling::LearnedAttack::LearnedAttack(CreatureLib::Library::Attack
}
CreatureLib::Battling::LearnedAttack::LearnedAttack(const CreatureLib::Library::AttackData *attack, AttackLearnMethod learnMethod)
: _attack(attack), _maxUses(attack->GetBaseUsages()), _remainingUses(_maxUses), _learnMethod(learnMethod)
{}
const CreatureLib::Library::AttackData *CreatureLib::Battling::LearnedAttack::GetAttack() const {
return _attack;
}
@@ -41,4 +46,3 @@ void CreatureLib::Battling::LearnedAttack::RestoreUses() {
_remainingUses = _maxUses;
}