Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent telegnomes from interacting with anything #2117

Merged
merged 2 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using Content.Shared.Abilities.Psionics;

namespace Content.Client.Abilities.Psionics;

public sealed class TelegnosisPowerSystem : SharedTelegnosisPowerSystem;
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Content.Server.Abilities.Psionics
{
public sealed class TelegnosisPowerSystem : EntitySystem
public sealed class TelegnosisPowerSystem : SharedTelegnosisPowerSystem
{
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly StatusEffectsSystem _statusEffects = default!;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Content.Shared.Interaction.Events;

namespace Content.Shared.Abilities.Psionics;

public abstract class SharedTelegnosisPowerSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<TelegnosticProjectionComponent, InteractionAttemptEvent>(OnInteractionAttempt);
}

private void OnInteractionAttempt(Entity<TelegnosticProjectionComponent> ent, ref InteractionAttemptEvent args)
{
// no astrally stealing someones shoes
args.Cancelled = true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Content.Shared.Abilities.Psionics
{
[RegisterComponent]
[RegisterComponent, Access(typeof(SharedTelegnosisPowerSystem))]
public sealed partial class TelegnosisPowerComponent : Component
{
[DataField("prototype")]
Expand All @@ -20,4 +20,4 @@ public sealed partial class TelegnosisPowerComponent : Component
[DataField("telegnosisActionEntity")]
public EntityUid? TelegnosisActionEntity;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
namespace Content.Shared.Abilities.Psionics
{
[RegisterComponent]
public sealed partial class TelegnosticProjectionComponent : Component
{}
}
namespace Content.Shared.Abilities.Psionics;

[RegisterComponent, Access(typeof(SharedTelegnosisPowerSystem))]
public sealed partial class TelegnosticProjectionComponent : Component;
Loading