Fix item cabinet locking while open and locker favoritism (#12508)

Co-authored-by: Moony <moony@hellomouse.net>
Fixes https://github.com/space-wizards/space-station-14/issues/12426
This commit is contained in:
Bright0
2022-12-06 16:59:59 -06:00
committed by GitHub
parent 14599c0a90
commit f55d85a975
4 changed files with 40 additions and 13 deletions

View File

@@ -14,3 +14,17 @@ namespace Content.Server.Storage.Components
[ViewVariables(VVAccess.ReadWrite)] [DataField("lockingSound")] public SoundSpecifier LockSound { get; set; } = new SoundPathSpecifier("/Audio/Machines/door_lock_on.ogg");
}
}
[ByRefEvent]
public struct LockToggleAttemptEvent
{
public bool Silent = false;
public bool Cancelled = false;
public EntityUid User;
public LockToggleAttemptEvent(EntityUid user, bool silent = false)
{
User = user;
Silent = silent;
}
}
public sealed class LockToggleAttemptArgs : EventArgs { }