StatusEffectPrototype.cs 668 B

12345678910111213141516171819202122
  1. using Content.Shared.Alert;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Shared.StatusEffect
  4. {
  5. [Prototype]
  6. public sealed partial class StatusEffectPrototype : IPrototype
  7. {
  8. [IdDataField]
  9. public string ID { get; private set; } = default!;
  10. [DataField("alert")]
  11. public ProtoId<AlertPrototype>? Alert { get; private set; }
  12. /// <summary>
  13. /// Whether a status effect should be able to apply to any entity,
  14. /// regardless of whether it is in ALlowedEffects or not.
  15. /// </summary>
  16. [DataField("alwaysAllowed")]
  17. public bool AlwaysAllowed { get; private set; }
  18. }
  19. }