2012-05-24 13:57:23 +00:00
|
|
|
#include "actionalchemy.hpp"
|
|
|
|
|
|
|
|
#include "../mwbase/environment.hpp"
|
2012-08-12 16:11:09 +00:00
|
|
|
#include "../mwbase/windowmanager.hpp"
|
2014-04-25 02:47:45 +00:00
|
|
|
#include "../mwbase/world.hpp"
|
|
|
|
|
|
|
|
#include "../mwworld/player.hpp"
|
2012-05-24 13:57:23 +00:00
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
2012-07-27 10:00:10 +00:00
|
|
|
void ActionAlchemy::executeImp (const Ptr& actor)
|
2012-05-24 13:57:23 +00:00
|
|
|
{
|
2014-04-25 02:47:45 +00:00
|
|
|
if(MWBase::Environment::get().getWorld()->getPlayer().isInCombat()) { //Ensure we're not in combat
|
|
|
|
MWBase::Environment::get().getWindowManager()->messageBox("#{sInventoryMessage3}");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2012-05-24 13:57:23 +00:00
|
|
|
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Alchemy);
|
|
|
|
}
|
|
|
|
}
|