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

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

        artifact.IsSuppressed = true;
    }