private void OnPull(EntityUid uid, ArtifactInteractionTriggerComponent component, PullStartedMessage args) { if (!component.PullActivation) { return; } _artifactSystem.TryActivateArtifact(uid, args.Puller.Owner); }
private void OnAttack(EntityUid uid, ArtifactInteractionTriggerComponent component, AttackedEvent args) { if (!component.AttackActivation) { return; } _artifactSystem.TryActivateArtifact(uid, args.User); }
private void OnInteract(EntityUid uid, ArtifactInteractionTriggerComponent component, InteractHandEvent args) { if (args.Handled) { return; } if (!args.InRangeUnobstructed()) { return; } args.Handled = _artifactSystem.TryActivateArtifact(uid, args.User); }
private void OnInteract(EntityUid uid, ArtifactInteractionTriggerComponent component, InteractHandEvent args) { if (args.Handled) { return; } if (!component.EmptyHandActivation) { return; } args.Handled = _artifactSystem.TryActivateArtifact(uid, args.User); }