1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 21:49:56 +00:00
openmw-tes3mp/apps/openmw/mwmechanics/spellabsorption.hpp

19 lines
479 B
C++
Raw Normal View History

#ifndef MWMECHANICS_SPELLABSORPTION_H
#define MWMECHANICS_SPELLABSORPTION_H
2020-09-21 21:33:27 +00:00
#include <string>
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);
}
#endif