2022-02-17 20:26:05 -07:00
|
|
|
|
using Content.Shared.Damage.Prototypes;
|
|
|
|
|
|
using Content.Shared.FixedPoint;
|
2024-05-09 18:26:39 -07:00
|
|
|
|
using Robust.Shared.Prototypes;
|
2022-02-17 20:26:05 -07:00
|
|
|
|
|
2024-05-09 18:26:39 -07:00
|
|
|
|
namespace Content.Shared.HealthExaminable;
|
2022-02-17 20:26:05 -07:00
|
|
|
|
|
2022-06-07 15:26:28 +02:00
|
|
|
|
[RegisterComponent, Access(typeof(HealthExaminableSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class HealthExaminableComponent : Component
|
2022-02-17 20:26:05 -07:00
|
|
|
|
{
|
|
|
|
|
|
public List<FixedPoint2> Thresholds = new()
|
|
|
|
|
|
{ FixedPoint2.New(10), FixedPoint2.New(25), FixedPoint2.New(50), FixedPoint2.New(75) };
|
|
|
|
|
|
|
2024-05-09 18:26:39 -07:00
|
|
|
|
[DataField(required: true)]
|
|
|
|
|
|
public HashSet<ProtoId<DamageTypePrototype>> ExaminableTypes = default!;
|
2022-02-17 20:26:05 -07:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Health examine text is automatically generated through creating loc string IDs, in the form:
|
|
|
|
|
|
/// `health-examine-[prefix]-[type]-[threshold]`
|
|
|
|
|
|
/// This part determines the prefix.
|
|
|
|
|
|
/// </summary>
|
2024-05-09 18:26:39 -07:00
|
|
|
|
[DataField]
|
2022-02-17 20:26:05 -07:00
|
|
|
|
public string LocPrefix = "carbon";
|
|
|
|
|
|
}
|