Diona immune to FTL Knockdown (#2543)

* Strong

* Update ShuttleSystem.FasterThanLight.cs

Signed-off-by: Dvir <39403717+dvir001@users.noreply.github.com>

---------

Signed-off-by: Dvir <39403717+dvir001@users.noreply.github.com>
This commit is contained in:
Dvir 2024-12-28 07:35:10 +02:00 committed by GitHub
parent 1704c56aad
commit 07da7ec901
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Numerics;
using Content.Server._NF.Shuttles.Components; // Frontier: FTL knockdown immunity
using Content.Server.Shuttles.Components;
using Content.Server.Shuttles.Events;
using Content.Server.Station.Events;
@ -631,7 +632,8 @@ public sealed partial class ShuttleSystem
if (!_statusQuery.TryGetComponent(child, out var status))
continue;
_stuns.TryParalyze(child, _hyperspaceKnockdownTime, true, status);
if (!HasComp<FTLKnockdownImmuneComponent>(child)) // Frontier: FTL knockdown immunity
_stuns.TryParalyze(child, _hyperspaceKnockdownTime, true, status);
// If the guy we knocked down is on a spaced tile, throw them too
if (grid != null)

View File

@ -0,0 +1,9 @@
namespace Content.Server._NF.Shuttles.Components;
/// <summary>
/// Denotes an entity as being immune from knockdown on FTL
/// </summary>
[RegisterComponent]
public sealed partial class FTLKnockdownImmuneComponent : Component
{
}

View File

@ -117,6 +117,7 @@
- type: MovementSpeedModifier # DeltaV
baseWalkSpeed: 1.0
baseSprintSpeed: 3.0
- type: FTLKnockdownImmune # Frontier
- type: entity
parent: BaseSpeciesDummy