mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 14:07:53 +03:00
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using Content.Shared.Alert;
|
|
using Content.Shared.Damage.Prototypes;
|
|
using Content.Shared.FixedPoint;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.HealthExaminable;
|
|
|
|
[RegisterComponent, Access(typeof(SharedHealthExaminableSystem))]
|
|
public sealed partial class HealthExaminableComponent : Component
|
|
{
|
|
// <summary>
|
|
// The thresholds for determining the examine text for certain amounts of damage.
|
|
// These are calculated as a percentage of the entity's critical threshold.
|
|
// </summary>
|
|
public List<FixedPoint2> Thresholds = new()
|
|
{ FixedPoint2.New(0.10), FixedPoint2.New(0.25), FixedPoint2.New(0.50), FixedPoint2.New(0.75) };
|
|
|
|
[DataField(required: true)]
|
|
public HashSet<ProtoId<DamageTypePrototype>> ExaminableTypes = default!;
|
|
|
|
/// <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>
|
|
[DataField]
|
|
public string LocPrefix = "carbon";
|
|
}
|
|
|
|
public sealed partial class CheckHealthAlertEvent : BaseAlertEvent;
|