Adds talent script to Creature class
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2019-11-17 11:25:52 +01:00
parent 5e71c59f77
commit 86f8a1e37b
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,7 @@ bool Battling::Creature::HasType(uint8_t type) const {
}
void Battling::Creature::GetActiveScripts(std::vector<ScriptWrapper> &scripts) {
scripts.emplace_back(&_activeTalent);
scripts.emplace_back(&_status);
scripts.emplace_back(&_volatile);
_side->GetActiveScripts(scripts);

View File

@ -42,6 +42,8 @@ namespace CreatureLib::Battling{
std::string _nickname = "";
int8_t _talentIndex;
Script* _activeTalent = nullptr;
std::vector<LearnedAttack*> _attacks;
Script* _status = nullptr;