Skip to content

Commit

Permalink
Дионы теперь не падают при БСС (#211)
Browse files Browse the repository at this point in the history
* Update ShuttleSystem.FasterThanLight.cs

* mehmehmeh

* Update diona.yml

* Update Content.Server/_CorvaxNext/FTLKnockdownImmune/FTLKnockdownImmuneComponent.cs

Co-authored-by: FN <[email protected]>

---------

Co-authored-by: FN <[email protected]>
  • Loading branch information
Vonsant and FireNameFN authored Jan 1, 2025
1 parent b695d6c commit f502cdf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Numerics;
using Content.Server._CorvaxNext.FTLKnockdownImmune;
using Content.Server.Shuttles.Components;
using Content.Server.Shuttles.Events;
using Content.Server.Station.Events;
Expand Down Expand Up @@ -631,7 +632,10 @@ private void DoTheDinosaur(TransformComponent xform)
if (!_statusQuery.TryGetComponent(child, out var status))
continue;

_stuns.TryParalyze(child, _hyperspaceKnockdownTime, true, status);
// Corvax-Next-FTLImmune-Start
if (!HasComp<FTLKnockdownImmuneComponent>(child))
_stuns.TryParalyze(child, _hyperspaceKnockdownTime, true, status);
// Corvax-Next-FTLImmune-End

// If the guy we knocked down is on a spaced tile, throw them too
if (grid != null)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Content.Server._CorvaxNext.FTLKnockdownImmune;

/// <summary>
/// Denotes an entity as being immune from knockdown on FTL
/// </summary>
[RegisterComponent]
public sealed partial class FTLKnockdownImmuneComponent : Component;
1 change: 1 addition & 0 deletions Resources/Prototypes/Entities/Mobs/Species/diona.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
- type: FootprintVisualizer # Corvax-Next-Footprints
leftBarePrint: "footprint-left-bare-diona"
rightBarePrint: "footprint-right-bare-diona"
- type: FTLKnockdownImmune # Corvax-Next-FTLImmune

- type: entity
parent: BaseSpeciesDummy
Expand Down

0 comments on commit f502cdf

Please sign in to comment.