Lipid Extractor (#15597)

This commit is contained in:
Nemanja
2023-04-22 03:03:50 -04:00
committed by GitHub
parent 0859101afe
commit 4f9ae1116e
22 changed files with 486 additions and 2 deletions

View File

@@ -203,7 +203,7 @@ public sealed class LockSystem : EntitySystem
private bool HasUserAccess(EntityUid uid, EntityUid user, AccessReaderComponent? reader = null, bool quiet = true)
{
// Not having an AccessComponent means you get free access. woo!
if (!Resolve(uid, ref reader))
if (!Resolve(uid, ref reader, false))
return true;
if (_accessReader.IsAllowed(user, reader))
@@ -234,7 +234,7 @@ public sealed class LockSystem : EntitySystem
private void OnEmagged(EntityUid uid, LockComponent component, ref GotEmaggedEvent args)
{
if (!component.Locked)
if (!component.Locked || !component.BreakOnEmag)
return;
_audio.PlayPredicted(component.UnlockSound, uid, null, AudioParams.Default.WithVolume(-5));
_appearanceSystem.SetData(uid, StorageVisuals.Locked, false);