Aspect
New Member
- Joined
- Dec 27, 2022
- Messages
- 1
- Reaction score
- 0
How do I do this in TFS 1.5?
I know how the functions are called, but I didn't understand how it would work to do it this way in 1.5 since SpellList and spellAttackList are called in another way:
What I'm trying to do is check if the monster's attacks have a "variable" called "key", in 0.3.6 I can do it this way:
But I would like to know how it works to do in 1.5?
C++:
SpellList::const_iterator it = mType->spellAttackList.begin();
for(uint32_t i = 1; it != mType->spellAttackList.end(); ++it, ++i)
C++:
monsterType->info.attackSpells
std::vector<spellBlock_t> attackSpells;
C++:
std::string moveName = "";
SpellList::const_iterator it = mType->spellAttackList.begin();
for(uint32_t i = 1; it != mType->spellAttackList.end(); ++it, ++i)
{
if(it->key != key)
{
continue;
}
moveName = it->isName;
break;
}