1
0

HealthExaminableComponent.cs 838 B

1234567891011121314151617181920212223
  1. using Content.Shared.Damage.Prototypes;
  2. using Content.Shared.FixedPoint;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Shared.HealthExaminable;
  5. [RegisterComponent, Access(typeof(HealthExaminableSystem))]
  6. public sealed partial class HealthExaminableComponent : Component
  7. {
  8. public List<FixedPoint2> Thresholds = new()
  9. { FixedPoint2.New(10), FixedPoint2.New(25), FixedPoint2.New(50), FixedPoint2.New(75) };
  10. [DataField(required: true)]
  11. public HashSet<ProtoId<DamageTypePrototype>> ExaminableTypes = default!;
  12. /// <summary>
  13. /// Health examine text is automatically generated through creating loc string IDs, in the form:
  14. /// `health-examine-[prefix]-[type]-[threshold]`
  15. /// This part determines the prefix.
  16. /// </summary>
  17. [DataField]
  18. public string LocPrefix = "carbon";
  19. }