mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
removed old known spell list from NpcStats
This commit is contained in:
parent
77065390d7
commit
26a529111c
2 changed files with 3 additions and 2 deletions
|
@ -63,7 +63,7 @@ namespace MWClass
|
|||
|
||||
for (std::vector<std::string>::const_iterator iter (ref->base->spells.list.begin());
|
||||
iter!=ref->base->spells.list.end(); ++iter)
|
||||
data->mNpcStats.mKnownSpells.insert (*iter);
|
||||
data->mCreatureStats.mSpells.add (*iter);
|
||||
|
||||
// creature stats
|
||||
data->mCreatureStats.mAttributes[0].set (ref->base->npdt52.strength);
|
||||
|
|
|
@ -11,6 +11,8 @@ namespace MWMechanics
|
|||
/// \brief Additional stats for NPCs
|
||||
///
|
||||
/// For non-NPC-specific stats, see the CreatureStats struct.
|
||||
///
|
||||
/// \note For technical reasons the spell list is also handled by CreatureStats.
|
||||
|
||||
struct NpcStats
|
||||
{
|
||||
|
@ -26,7 +28,6 @@ namespace MWMechanics
|
|||
bool mSneak;
|
||||
bool mCombat;
|
||||
|
||||
std::set<std::string> mKnownSpells;
|
||||
std::string mSelectedSpell; // can be an empty string (no spell selected)
|
||||
|
||||
NpcStats() : mForceRun (false), mForceSneak (false), mRun (false), mSneak (false),
|
||||
|
|
Loading…
Reference in a new issue