Trigger Refactor (#39034)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Content.Server.Explosion.EntitySystems;
|
||||
using Content.Server.Mind;
|
||||
using Content.Server.Objectives.Components;
|
||||
using Content.Server.Popups;
|
||||
@@ -7,6 +6,7 @@ using Content.Shared.Ninja.Components;
|
||||
using Content.Shared.Ninja.Systems;
|
||||
using Content.Shared.Roles;
|
||||
using Content.Shared.Sticky;
|
||||
using Content.Shared.Trigger;
|
||||
|
||||
namespace Content.Server.Ninja.Systems;
|
||||
|
||||
@@ -80,6 +80,9 @@ public sealed class SpiderChargeSystem : SharedSpiderChargeSystem
|
||||
/// </summary>
|
||||
private void OnExplode(EntityUid uid, SpiderChargeComponent comp, TriggerEvent args)
|
||||
{
|
||||
if (args.Key != comp.TriggerKey)
|
||||
return;
|
||||
|
||||
if (!TryComp<SpaceNinjaComponent>(comp.Planter, out var ninja))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user