Fix and improve bluespace lockers (#13139)

* add invulnerable plastitanium wall prototype

* fix command ClearBluespaceLockerLinks.cs

* fix and improve BluespaceLockerSystem.cs

* fix normal plastitanium wall suffix

* fix capitalization

* fix capability to create one way lockers
This commit is contained in:
Chief-Engineer
2022-12-24 22:35:03 -06:00
committed by GitHub
parent faca40b8d5
commit b7af5e6109
5 changed files with 142 additions and 20 deletions

View File

@@ -53,10 +53,16 @@ public sealed class LinkBluespaceLocker : IConsoleCommand
entityManager.EnsureComponent<BluespaceLockerComponent>(originUid, out var originBluespaceComponent);
originBluespaceComponent.BluespaceLinks.Add(targetComponent);
entityManager.EnsureComponent<BluespaceLockerComponent>(targetUid, out var targetBluespaceComponent);
if (bidirectional)
{
entityManager.EnsureComponent<BluespaceLockerComponent>(targetUid, out var targetBluespaceComponent);
targetBluespaceComponent.BluespaceLinks.Add(originComponent);
}
else if (targetBluespaceComponent.BluespaceLinks.Count == 0)
{
targetBluespaceComponent.AllowSentient = false;
targetBluespaceComponent.TransportEntities = false;
targetBluespaceComponent.TransportGas = false;
}
}
}