Skip to content

Commit

Permalink
buff diona
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimeMoot authored Jan 4, 2025
1 parent 2618174 commit a70d58d
Show file tree
Hide file tree
Showing 3 changed files with 14 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._Cats.FTLKnockdownImmune;
using Content.Server.Shuttles.Components;
using Content.Server.Shuttles.Events;
using Content.Server.Station.Events;
Expand Down Expand Up @@ -621,7 +622,10 @@ private void DoTheDinosaur(TransformComponent xform)
if (!_statusQuery.TryGetComponent(child, out var status))
continue;

_stuns.TryParalyze(child, _hyperspaceKnockdownTime, true, status);
// Cats edit diona start
if (!HasComp<FTLKnockdownImmuneComponent>(child))
_stuns.TryParalyze(child, _hyperspaceKnockdownTime, true, status);
// Cats edit diona 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._Cats.FTLKnockdownImmune;

Check failure on line 1 in Content.Server/_Cats/FTLKnockdownImmune/FTLKnockdownImmuneComponent.cs

View workflow job for this annotation

GitHub Actions / CRLF Check

File contains CRLF line endings

The file 'Content.Server/_Cats/FTLKnockdownImmune/FTLKnockdownImmuneComponent.cs' was committed with CRLF new lines. Please make sure your git client is configured correctly and you are not uploading files directly to GitHub via the web interface.

/// <summary>
/// Denotes an entity as being immune from knockdown on FTL
/// </summary>
[RegisterComponent]
public sealed partial class FTLKnockdownImmuneComponent : Component;
2 changes: 2 additions & 0 deletions Resources/Prototypes/Entities/Mobs/Species/diona.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
visualType: Large
messages: [ "diona-hurt-by-herbicide-popup" ]
probability: 0.66
- type: NoSlip
- type: Fixtures
fixtures:
fix1:
Expand Down Expand Up @@ -124,6 +125,7 @@
understands:
- TauCetiBasic
- RootSpeak
- type: FTLKnockdownImmune # Cats edit

- type: entity
parent: BaseSpeciesDummy
Expand Down

0 comments on commit a70d58d

Please sign in to comment.