Adds talent script to Creature class
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5e71c59f77
commit
86f8a1e37b
|
@ -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);
|
||||
|
|
|
@ -42,6 +42,8 @@ namespace CreatureLib::Battling{
|
|||
|
||||
std::string _nickname = "";
|
||||
int8_t _talentIndex;
|
||||
Script* _activeTalent = nullptr;
|
||||
|
||||
std::vector<LearnedAttack*> _attacks;
|
||||
|
||||
Script* _status = nullptr;
|
||||
|
|
Loading…
Reference in New Issue