]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix for arrivals deleting nuke (#33659)
authorGansu <68031780+GansuLalan@users.noreply.github.com>
Sat, 30 Nov 2024 02:48:04 +0000 (02:48 +0000)
committerGitHub <noreply@github.com>
Sat, 30 Nov 2024 02:48:04 +0000 (13:48 +1100)
Adds FTLSmashImmune to nuke prototype to stop it from arrival smashing
Adds a comment in FasterThanLight to indicate where the FTLSmashImmuneComponent is checked

Co-authored-by: aa5g21 <aa5g21@soton.ac.uk>
Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs
Resources/Prototypes/Entities/Structures/Machines/nuke.yml

index c02d2564a9b9b31947416d786188a253445d196e..b550db93ed630018e1425fd62c9399b89b06a1e2 100644 (file)
@@ -1002,6 +1002,7 @@ public sealed partial class ShuttleSystem
                     continue;
                 }
 
+                // If it has the FTLSmashImmuneComponent ignore it.
                 if (_immuneQuery.HasComponent(ent))
                 {
                     continue;
index ec9e5bdfa588c98e8bb7cdbdecb6297a3c8e0cdb..7fdd80bd2b11174babd4bc6ab42a8824e9df6893 100644 (file)
   - type: WarpPoint
     follow: true
     location: nuclear bomb
+  - type: FTLSmashImmune
 
 - type: entity
   parent: NuclearBomb