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:
Chief-Engineer
2022-12-19 21:47:37 -06:00
committed by GitHub
parent 9a7654791a
commit 067932712a
7 changed files with 247 additions and 3 deletions

View File

@@ -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)