]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Arrivals blacklist for bluespace lockers and QSIs (#34072)
authorcrazybrain23 <44417085+crazybrain23@users.noreply.github.com>
Fri, 27 Dec 2024 12:34:30 +0000 (12:34 +0000)
committerGitHub <noreply@github.com>
Fri, 27 Dec 2024 12:34:30 +0000 (13:34 +0100)
* 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
Resources/Prototypes/Entities/Objects/Devices/swapper.yml
Resources/Prototypes/Entities/Structures/Storage/Closets/Lockers/lockers.yml
Resources/Prototypes/Entities/Structures/Storage/Closets/closets.yml

index 191a0ac57c662b3a6f2e8e5aae662921fbfb2ec9..3a88bf391095de7dba32c5abefd9d6cd6f50a0ff 100644 (file)
@@ -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<ArrivalsBlacklistComponent>(uid); // To stop people getting to arrivals terminal
     }
 
     public void BluespaceEffect(EntityUid effectTargetUid, BluespaceLockerComponent effectSourceComponent, BluespaceLockerComponent? effectTargetComponent, bool bypassLimit = false)
index 8a743f4796b46cc570480c6ba32857ff6ca2d1f9..821b6f6b6aeb01f22a0b5947f47ffa4fed052c73 100644 (file)
@@ -12,6 +12,7 @@
   - type: Item
     size: Small
   - type: Appearance
+  - type: ArrivalsBlacklist
   - type: SwapTeleporter
     teleporterWhitelist:
       tags:
index 0ab9e03fd1653fa740f401f5c6f2f86ff6912776..97ef052153bc17958e82ac97ac01aeac332c074d 100644 (file)
   parent: LockerSyndicatePersonal
   description: Advanced locker technology.
   components:
+    - type: ArrivalsBlacklist
     - type: BluespaceLocker
       minBluespaceLinks: 1
       behaviorProperties:
index 3bef14b33fee4917f8006fec04809139732b9c45..8c8c493aa3adc4a87e96719915e98c9cc14329d5 100644 (file)
   parent: ClosetMaintenance
   description: It's a storage unit... right?
   components:
+    - type: ArrivalsBlacklist
     - type: BluespaceLocker
       pickLinksFromSameMap: true
       minBluespaceLinks: 1
   parent: ClosetMaintenance
   description: It's a storage unit... right?
   components:
+    - type: ArrivalsBlacklist
     - type: BluespaceLocker
       pickLinksFromSameMap: true
       minBluespaceLinks: 1