|
|
@ -39,8 +39,8 @@ namespace MWMechanics
|
|
|
|
* @note actor can be an NPC or a creature
|
|
|
|
* @note actor can be an NPC or a creature
|
|
|
|
* @return success chance from 0 to 100 (in percent), if cap=false then chance above 100 may be returned.
|
|
|
|
* @return success chance from 0 to 100 (in percent), if cap=false then chance above 100 may be returned.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
float getSpellSuccessChance (const ESM::Spell* spell, const MWWorld::Ptr& actor, int* effectiveSchool = nullptr, bool cap=true, bool checkMagicka=false);
|
|
|
|
float getSpellSuccessChance (const ESM::Spell* spell, const MWWorld::Ptr& actor, int* effectiveSchool = nullptr, bool cap=true, bool checkMagicka=true);
|
|
|
|
float getSpellSuccessChance (const std::string& spellId, const MWWorld::Ptr& actor, int* effectiveSchool = nullptr, bool cap=true, bool checkMagicka=false);
|
|
|
|
float getSpellSuccessChance (const std::string& spellId, const MWWorld::Ptr& actor, int* effectiveSchool = nullptr, bool cap=true, bool checkMagicka=true);
|
|
|
|
|
|
|
|
|
|
|
|
int getSpellSchool(const std::string& spellId, const MWWorld::Ptr& actor);
|
|
|
|
int getSpellSchool(const std::string& spellId, const MWWorld::Ptr& actor);
|
|
|
|
int getSpellSchool(const ESM::Spell* spell, const MWWorld::Ptr& actor);
|
|
|
|
int getSpellSchool(const ESM::Spell* spell, const MWWorld::Ptr& actor);
|
|
|
|