summaryrefslogtreecommitdiff
path: root/apps/openmw/mwmechanics/spellabsorption.hpp
blob: 5537483a48283b9f3e498404f6e1bbaba3167522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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