Power stuff (#31314)
* Power stuff - Add shared IsPowered - Add shared ResolveApc - Move PowerChangedEvent to shared for now - Add SlimPoweredLight that actually functions how you'd expect a PoweredLight to function it id didn't have a bunch of bloat on it. * big update * boing
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Server.Power.NodeGroups;
|
||||
using Content.Server.Tools;
|
||||
using Content.Shared.Examine;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Tools.Systems;
|
||||
using Content.Shared.Verbs;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Utility;
|
||||
@@ -27,7 +28,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
|
||||
private void OnAfterInteractUsing(EntityUid uid, CableComponent component, AfterInteractUsingEvent args)
|
||||
{
|
||||
if (args.Handled || args.Target == null || !args.CanReach || !_toolSystem.HasQuality(args.Used, "Pulsing"))
|
||||
if (args.Handled || args.Target == null || !args.CanReach || !_toolSystem.HasQuality(args.Used, SharedToolSystem.PulseQuality))
|
||||
return;
|
||||
|
||||
var markup = FormattedMessage.FromMarkup(GenerateCableMarkup(uid));
|
||||
@@ -45,7 +46,7 @@ namespace Content.Server.Power.EntitySystems
|
||||
|
||||
// Pulsing is hardcoded here because I don't think it needs to be more complex than that right now.
|
||||
// Update if I'm wrong.
|
||||
var enabled = held != null && _toolSystem.HasQuality(held.Value, "Pulsing");
|
||||
var enabled = held != null && _toolSystem.HasQuality(held.Value, SharedToolSystem.PulseQuality);
|
||||
var verb = new ExamineVerb
|
||||
{
|
||||
Disabled = !enabled,
|
||||
|
||||
Reference in New Issue
Block a user