|
|
@ -50,15 +50,12 @@ namespace MWMechanics
|
|
|
|
TEffectsContainer mEffects;
|
|
|
|
TEffectsContainer mEffects;
|
|
|
|
int mValue;
|
|
|
|
int mValue;
|
|
|
|
|
|
|
|
|
|
|
|
std::set<EffectKey> listEffects() const;
|
|
|
|
|
|
|
|
///< List all effects shared by at least two ingredients.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void applyTools (int flags, float& value) const;
|
|
|
|
void applyTools (int flags, float& value) const;
|
|
|
|
|
|
|
|
|
|
|
|
void updateEffects();
|
|
|
|
void updateEffects();
|
|
|
|
|
|
|
|
|
|
|
|
const ESM::Potion *getRecord() const;
|
|
|
|
const ESM::Potion *getRecord() const;
|
|
|
|
///< Return existing recrod for created potion (may return 0)
|
|
|
|
///< Return existing record for created potion (may return 0)
|
|
|
|
|
|
|
|
|
|
|
|
void removeIngredients();
|
|
|
|
void removeIngredients();
|
|
|
|
///< Remove selected ingredients from alchemist's inventory, cleanup selected ingredients and
|
|
|
|
///< Remove selected ingredients from alchemist's inventory, cleanup selected ingredients and
|
|
|
@ -75,6 +72,10 @@ namespace MWMechanics
|
|
|
|
|
|
|
|
|
|
|
|
int countIngredients() const;
|
|
|
|
int countIngredients() const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TEffectsIterator beginEffects() const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TEffectsIterator endEffects() const;
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
void setAlchemist (const MWWorld::Ptr& npc);
|
|
|
|
void setAlchemist (const MWWorld::Ptr& npc);
|
|
|
@ -94,6 +95,9 @@ namespace MWMechanics
|
|
|
|
void clear();
|
|
|
|
void clear();
|
|
|
|
///< Remove alchemist, tools and ingredients.
|
|
|
|
///< Remove alchemist, tools and ingredients.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::set<EffectKey> listEffects() const;
|
|
|
|
|
|
|
|
///< List all effects shared by at least two ingredients.
|
|
|
|
|
|
|
|
|
|
|
|
int addIngredient (const MWWorld::Ptr& ingredient);
|
|
|
|
int addIngredient (const MWWorld::Ptr& ingredient);
|
|
|
|
///< Add ingredient into the next free slot.
|
|
|
|
///< Add ingredient into the next free slot.
|
|
|
|
///
|
|
|
|
///
|
|
|
@ -103,10 +107,6 @@ namespace MWMechanics
|
|
|
|
void removeIngredient (int index);
|
|
|
|
void removeIngredient (int index);
|
|
|
|
///< Remove ingredient from slot (calling this function on an empty slot is a no-op).
|
|
|
|
///< Remove ingredient from slot (calling this function on an empty slot is a no-op).
|
|
|
|
|
|
|
|
|
|
|
|
TEffectsIterator beginEffects() const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TEffectsIterator endEffects() const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string getPotionName() const;
|
|
|
|
std::string getPotionName() const;
|
|
|
|
///< Return the name of the potion that would be created when calling create (if a record for such
|
|
|
|
///< Return the name of the potion that would be created when calling create (if a record for such
|
|
|
|
/// a potion already exists) or return an empty string.
|
|
|
|
/// a potion already exists) or return an empty string.
|
|
|
|