mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
22 lines
519 B
C++
22 lines
519 B
C++
#include "actioneat.hpp"
|
|
|
|
#include <components/esm3/loadskil.hpp>
|
|
|
|
#include "../mwmechanics/actorutil.hpp"
|
|
|
|
#include "class.hpp"
|
|
|
|
namespace MWWorld
|
|
{
|
|
void ActionEat::executeImp(const Ptr& actor)
|
|
{
|
|
if (actor.getClass().consume(getTarget(), actor) && actor == MWMechanics::getPlayer())
|
|
actor.getClass().skillUsageSucceeded(actor, ESM::Skill::Alchemy, ESM::Skill::Alchemy_UseIngredient);
|
|
}
|
|
|
|
ActionEat::ActionEat(const MWWorld::Ptr& object)
|
|
: Action(false, object)
|
|
{
|
|
}
|
|
}
|