Exemplo n.º 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);
    }
Exemplo n.º 2
0
 private void OnPowerPulse(EntityUid uid, ArtifactElectricityTriggerComponent component, PowerPulseEvent args)
 {
     _artifactSystem.TryActivateArtifact(uid, args.User);
 }