From a410728a83781c110f2732380da619d49d547dcd Mon Sep 17 00:00:00 2001 From: Sh1ntra Date: Sat, 15 Jun 2024 16:47:28 +0300 Subject: [PATCH] add empty comp for fix friction grids --- .../Corvax/Physics/FrictionRemoverSystem.cs | 4 +++- .../VoidContainerComponent.cs | 7 +++++++ .../VoidContainerComponent/VoidContainerSystem.cs | 13 +++++++++++++ Resources/Maps/_NF/POI/anomalouslab.yml | 1 + 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 Content.Shared/Corvax/VoidContainerComponent/VoidContainerComponent.cs create mode 100644 Content.Shared/Corvax/VoidContainerComponent/VoidContainerSystem.cs diff --git a/Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs b/Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs index e82ed5a556d..8f452cb03c2 100644 --- a/Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs +++ b/Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs @@ -1,3 +1,4 @@ +using Content.Shared.Corvax.VoidContainerComponent; using Content.Shared.EntityList; using Content.Shared.Tiles; using Robust.Shared.Physics; @@ -21,7 +22,8 @@ public override void Initialize() private void RemoveDampening(EntityUid uid, PhysicsComponent component, PhysicsSleepEvent args) { - if (EntityManager.TryGetComponent(uid, out ProtectedGridComponent? protectedGridComp)) + if (EntityManager.TryGetComponent(uid, out VoidContainerComponent? voidContainerComp)|| + EntityManager.TryGetComponent(uid, out ProtectedGridComponent? protectedGridComp)) return; _physics.SetAngularDamping(component, 0, false); diff --git a/Content.Shared/Corvax/VoidContainerComponent/VoidContainerComponent.cs b/Content.Shared/Corvax/VoidContainerComponent/VoidContainerComponent.cs new file mode 100644 index 00000000000..27b4b2ee8fe --- /dev/null +++ b/Content.Shared/Corvax/VoidContainerComponent/VoidContainerComponent.cs @@ -0,0 +1,7 @@ +namespace Content.Shared.Corvax.VoidContainerComponent; + +[RegisterComponent] +public sealed partial class VoidContainerComponent : Component +{ + +} diff --git a/Content.Shared/Corvax/VoidContainerComponent/VoidContainerSystem.cs b/Content.Shared/Corvax/VoidContainerComponent/VoidContainerSystem.cs new file mode 100644 index 00000000000..4b00f6195c2 --- /dev/null +++ b/Content.Shared/Corvax/VoidContainerComponent/VoidContainerSystem.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Content.Shared.Corvax.VoidContainerComponent +{ + public sealed class VoidContainerSystem : EntitySystem + { + + } +} diff --git a/Resources/Maps/_NF/POI/anomalouslab.yml b/Resources/Maps/_NF/POI/anomalouslab.yml index bdfb9c67dd7..f7b0dff30ac 100644 --- a/Resources/Maps/_NF/POI/anomalouslab.yml +++ b/Resources/Maps/_NF/POI/anomalouslab.yml @@ -16,6 +16,7 @@ entities: entities: - uid: 1 components: + - type: VoidContainer - type: MetaData name: Anomalous Laboratory - type: Transform