Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++
519 B
Raw Blame
#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)
    {
    }
}