Fix inventory relay by-ref events (#20816)

* Fix inventory relay ref events

* this works too (avoid duplication)

---------

Co-authored-by: Slava0135 <super.novalskiy_0135@inbox.ru>
This commit is contained in:
Leon Friedrich
2023-10-12 03:31:10 +11:00
committed by GitHub
parent 6d34f19030
commit 1f21826c21
3 changed files with 20 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
using Content.Shared.Database;
using Content.Shared.Interaction.Events;
using Content.Shared.Inventory;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
@@ -349,9 +350,10 @@ namespace Content.Shared.Verbs
}
/// <summary>
/// Verbs specifically for interactions that occur with equipped entities. These verbs should be accessible via
/// the stripping UI, and may optionally also be accessible via a verb on the equipee if the via inventory relay
/// events.get-verbs event.
/// Verbs specifically for interactions that occur with equipped entities. These verbs are unique in that they
/// can be used via the stripping UI. Additionally, when getting verbs on an entity with an inventory it will
/// these automatically relay the <see cref="GetVerbsEvent{EquipmentVerb}"/> event to all equipped items via a
/// <see cref="InventoryRelayedEvent{T}"/>.
/// </summary>
[Serializable, NetSerializable]
public sealed class EquipmentVerb : Verb