mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 08:36:40 +00:00
Readd Azura's Star after recharging (Fixes #1765)
This commit is contained in:
parent
8707f7b116
commit
42dceb641e
1 changed files with 4 additions and 0 deletions
|
@ -181,6 +181,10 @@ void Recharge::onItemClicked(MyGUI::Widget *sender)
|
||||||
std::string message = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("sNotifyMessage51")->getString();
|
std::string message = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("sNotifyMessage51")->getString();
|
||||||
message = boost::str(boost::format(message) % gem.getClass().getName(gem));
|
message = boost::str(boost::format(message) % gem.getClass().getName(gem));
|
||||||
MWBase::Environment::get().getWindowManager()->messageBox(message);
|
MWBase::Environment::get().getWindowManager()->messageBox(message);
|
||||||
|
|
||||||
|
// special case: readd Azura's Star
|
||||||
|
if (Misc::StringUtils::ciEqual(gem.get<ESM::Miscellaneous>()->mBase->mId, "Misc_SoulGem_Azura"))
|
||||||
|
player.getClass().getContainerStore(player).add("Misc_SoulGem_Azura", 1, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateView();
|
updateView();
|
||||||
|
|
Loading…
Reference in a new issue