Skip to content

Commit

Permalink
Merge pull request Simple-Station#268 from FoxxoTrystan/dark-portal-w…
Browse files Browse the repository at this point in the history
…hitelist

Dark Portal Etheral Fix
  • Loading branch information
Fansana authored Oct 20, 2024
2 parents 26e753b + 59cf36b commit 9bdf9c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Server/Shadowkin/EtherealStunItemSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ private void OnUseInHand(EntityUid uid, EtherealStunItemComponent component, Use
{
foreach (var ent in _lookup.GetEntitiesInRange(uid, component.Radius))
{
if (!TryComp<EtherealComponent>(ent, out var ethereal))
if (!TryComp<EtherealComponent>(ent, out var ethereal)
|| !ethereal.CanBeStunned)
continue;

RemComp(ent, ethereal);
Expand Down
3 changes: 3 additions & 0 deletions Content.Shared/Shadowkin/EtherealComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public sealed partial class EtherealComponent : Component
[DataField]
public float DarkenRate = 0.084f;

[DataField]
public bool CanBeStunned = true;

public List<EntityUid> DarkenedLights = new();

public float DarkenAccumulator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
randomTeleport: false
- type: DarkPortal
- type: Ethereal
canBeStunned: false

- type: entity
name: Shadowkin Portal Spawner
Expand Down

0 comments on commit 9bdf9c2

Please sign in to comment.