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