Example #1
0
    private void OnInteractUsing(EntityUid uid, ArtifactElectricityTriggerComponent component, InteractUsingEvent args)
    {
        if (args.Handled)
        {
            return;
        }

        if (!TryComp(args.Used, out ToolComponent? tool) || !tool.Qualities.ContainsAny("Pulsing"))
        {
            return;
        }

        args.Handled = _artifactSystem.TryActivateArtifact(uid, args.User);
    }
Example #2
0
 private void OnPowerPulse(EntityUid uid, ArtifactElectricityTriggerComponent component, PowerPulseEvent args)
 {
     _artifactSystem.TryActivateArtifact(uid, args.User);
 }