2020-04-27 09:03:20 +00:00
|
|
|
#ifndef MWMECHANICS_SPELLABSORPTION_H
|
|
|
|
#define MWMECHANICS_SPELLABSORPTION_H
|
|
|
|
|
2020-09-21 21:33:27 +00:00
|
|
|
#include <string>
|
2020-04-27 09:03:20 +00:00
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class Ptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWMechanics
|
|
|
|
{
|
2021-10-09 14:39:49 +00:00
|
|
|
void absorbSpell(const std::string& spellId, const MWWorld::Ptr& caster, const MWWorld::Ptr& target);
|
|
|
|
// Calculate the chance to absorb a spell based on the magnitude of every Spell Absorption effect source on the target.
|
|
|
|
int getAbsorbChance(const MWWorld::Ptr& caster, const MWWorld::Ptr& target);
|
2020-04-27 09:03:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|