mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
make successful lockspell play unlock sound
This commit is contained in:
parent
72a5b50002
commit
a7a48aaa91
@ -932,6 +932,9 @@ namespace MWMechanics
|
||||
if (target.getCellRef().getLockLevel()
|
||||
< 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())
|
||||
MWBase::Environment::get().getWindowManager()->messageBox("#{sMagicLockSuccess}");
|
||||
target.getCellRef().lock(magnitude);
|
||||
|
Loading…
x
Reference in New Issue
Block a user