Add bluespace lockers (#12954)
* add bluespace lockers * add command linkbluespacelocker * add command clearbluespacelockerlinks * fix unwelding method * move bluespace locker functionality to own component * add options to disable transporting certain things * remove unused imports * unlock target lockers when opening + minor optimization to unwelding
This commit is contained in:
@@ -109,12 +109,13 @@ namespace Content.Server.Lock
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Unlock(EntityUid uid, EntityUid user, LockComponent? lockComp = null)
|
||||
public void Unlock(EntityUid uid, EntityUid? user, LockComponent? lockComp = null)
|
||||
{
|
||||
if (!Resolve(uid, ref lockComp))
|
||||
return;
|
||||
|
||||
lockComp.Owner.PopupMessage(user, Loc.GetString("lock-comp-do-unlock-success", ("entityName", EntityManager.GetComponent<MetaDataComponent>(lockComp.Owner).EntityName)));
|
||||
if (user is {Valid: true})
|
||||
lockComp.Owner.PopupMessage(user.Value, Loc.GetString("lock-comp-do-unlock-success", ("entityName", EntityManager.GetComponent<MetaDataComponent>(lockComp.Owner).EntityName)));
|
||||
lockComp.Locked = false;
|
||||
|
||||
if (lockComp.UnlockSound != null)
|
||||
|
||||
Reference in New Issue
Block a user