From 34e9979dc5af833ea16fd3234f2626a2403c9f54 Mon Sep 17 00:00:00 2001 From: crazybrain23 <44417085+crazybrain23@users.noreply.github.com> Date: Fri, 27 Dec 2024 12:34:30 +0000 Subject: [PATCH] Arrivals blacklist for bluespace lockers and QSIs (#34072) * Ensure Arrivals Blacklist in Bluespace Locker rule * While I'm at it, stop the QSI too * fix thing I broke somehow * Every bluespace locker arrivals blacklisted * Add ArrivalsBlacklist to the prototypes too --- Content.Server/Storage/EntitySystems/BluespaceLockerSystem.cs | 3 +++ Resources/Prototypes/Entities/Objects/Devices/swapper.yml | 1 + .../Entities/Structures/Storage/Closets/Lockers/lockers.yml | 1 + .../Prototypes/Entities/Structures/Storage/Closets/closets.yml | 2 ++ 4 files changed, 7 insertions(+) diff --git a/Content.Server/Storage/EntitySystems/BluespaceLockerSystem.cs b/Content.Server/Storage/EntitySystems/BluespaceLockerSystem.cs index 191a0ac57c..3a88bf3910 100644 --- a/Content.Server/Storage/EntitySystems/BluespaceLockerSystem.cs +++ b/Content.Server/Storage/EntitySystems/BluespaceLockerSystem.cs @@ -16,6 +16,7 @@ using Robust.Shared.Containers; using Robust.Shared.Random; using Robust.Shared.Timing; using Robust.Shared.Prototypes; +using Content.Server.Shuttles.Components; namespace Content.Server.Storage.EntitySystems; @@ -47,6 +48,8 @@ public sealed class BluespaceLockerSystem : EntitySystem if (component.BehaviorProperties.BluespaceEffectOnInit) BluespaceEffect(uid, component, component, true); + + EnsureComp(uid); // To stop people getting to arrivals terminal } public void BluespaceEffect(EntityUid effectTargetUid, BluespaceLockerComponent effectSourceComponent, BluespaceLockerComponent? effectTargetComponent, bool bypassLimit = false) diff --git a/Resources/Prototypes/Entities/Objects/Devices/swapper.yml b/Resources/Prototypes/Entities/Objects/Devices/swapper.yml index 8a743f4796..821b6f6b6a 100644 --- a/Resources/Prototypes/Entities/Objects/Devices/swapper.yml +++ b/Resources/Prototypes/Entities/Objects/Devices/swapper.yml @@ -12,6 +12,7 @@ - type: Item size: Small - type: Appearance + - type: ArrivalsBlacklist - type: SwapTeleporter teleporterWhitelist: tags: diff --git a/Resources/Prototypes/Entities/Structures/Storage/Closets/Lockers/lockers.yml b/Resources/Prototypes/Entities/Structures/Storage/Closets/Lockers/lockers.yml index 0ab9e03fd1..97ef052153 100644 --- a/Resources/Prototypes/Entities/Structures/Storage/Closets/Lockers/lockers.yml +++ b/Resources/Prototypes/Entities/Structures/Storage/Closets/Lockers/lockers.yml @@ -421,6 +421,7 @@ parent: LockerSyndicatePersonal description: Advanced locker technology. components: + - type: ArrivalsBlacklist - type: BluespaceLocker minBluespaceLinks: 1 behaviorProperties: diff --git a/Resources/Prototypes/Entities/Structures/Storage/Closets/closets.yml b/Resources/Prototypes/Entities/Structures/Storage/Closets/closets.yml index 3bef14b33f..8c8c493aa3 100644 --- a/Resources/Prototypes/Entities/Structures/Storage/Closets/closets.yml +++ b/Resources/Prototypes/Entities/Structures/Storage/Closets/closets.yml @@ -171,6 +171,7 @@ parent: ClosetMaintenance description: It's a storage unit... right? components: + - type: ArrivalsBlacklist - type: BluespaceLocker pickLinksFromSameMap: true minBluespaceLinks: 1 @@ -189,6 +190,7 @@ parent: ClosetMaintenance description: It's a storage unit... right? components: + - type: ArrivalsBlacklist - type: BluespaceLocker pickLinksFromSameMap: true minBluespaceLinks: 1 -- 2.51.2