mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 05:11:33 +00:00
make successful lockspell play unlock sound
This commit is contained in:
parent
72a5b50002
commit
a7a48aaa91
1 changed files with 3 additions and 0 deletions
|
@ -932,6 +932,9 @@ namespace MWMechanics
|
||||||
if (target.getCellRef().getLockLevel()
|
if (target.getCellRef().getLockLevel()
|
||||||
< magnitude) // If the door is not already locked to a higher value, lock it to spell magnitude
|
< magnitude) // If the door is not already locked to a higher value, lock it to spell magnitude
|
||||||
{
|
{
|
||||||
|
MWBase::Environment::get().getSoundManager()->playSound3D(
|
||||||
|
target, ESM::RefId::stringRefId("Open Lock"), 1.f, 1.f);
|
||||||
|
|
||||||
if (caster == getPlayer())
|
if (caster == getPlayer())
|
||||||
MWBase::Environment::get().getWindowManager()->messageBox("#{sMagicLockSuccess}");
|
MWBase::Environment::get().getWindowManager()->messageBox("#{sMagicLockSuccess}");
|
||||||
target.getCellRef().lock(magnitude);
|
target.getCellRef().lock(magnitude);
|
||||||
|
|
Loading…
Reference in a new issue