Example #1
0
    private void OnRemoved(EntityUid uid, SuppressArtifactContainerComponent component, EntRemovedFromContainerMessage args)
    {
        if (!TryComp(args.Entity, out ArtifactComponent? artifact))
        {
            return;
        }

        artifact.IsSuppressed = false;
    }
Example #2
0
    private void OnInserted(EntityUid uid, SuppressArtifactContainerComponent component, EntInsertedIntoContainerMessage args)
    {
        if (!TryComp(args.Entity, out ArtifactComponent? artifact))
        {
            return;
        }

        artifact.IsSuppressed = true;
    }