1
0

SelfEquipOnlyComponent.cs 513 B

12345678910111213141516
  1. using Robust.Shared.GameStates;
  2. namespace Content.Shared.Inventory;
  3. /// <summary>
  4. /// This is used for an item that can only be equipped/unequipped by the user.
  5. /// </summary>
  6. [RegisterComponent, NetworkedComponent, Access(typeof(SelfEquipOnlySystem))]
  7. public sealed partial class SelfEquipOnlyComponent : Component
  8. {
  9. /// <summary>
  10. /// Whether or not the self-equip only condition requires the person to be conscious.
  11. /// </summary>
  12. [DataField]
  13. public bool UnequipRequireConscious = true;
  14. }