You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
479 B
C++
19 lines
479 B
C++
#ifndef MWMECHANICS_SPELLABSORPTION_H
|
|
#define MWMECHANICS_SPELLABSORPTION_H
|
|
|
|
#include <string>
|
|
|
|
namespace MWWorld
|
|
{
|
|
class Ptr;
|
|
}
|
|
|
|
namespace MWMechanics
|
|
{
|
|
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
|