Health examine button (#6749)

* Health examine button

* better icon

* ignore

* better icon + some reviews

* fix thing
This commit is contained in:
mirrorcult
2022-02-17 20:26:05 -07:00
committed by GitHub
parent 6ef3bff9be
commit 8ae2ec9426
10 changed files with 197 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using Content.Shared.Damage.Prototypes;
using Content.Shared.FixedPoint;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
namespace Content.Server.HealthExaminable;
[RegisterComponent]
public sealed class HealthExaminableComponent : Component
{
public List<FixedPoint2> Thresholds = new()
{ FixedPoint2.New(10), FixedPoint2.New(25), FixedPoint2.New(50), FixedPoint2.New(75) };
[DataField("examinableTypes", required: true, customTypeSerializer:typeof(PrototypeIdHashSetSerializer<DamageTypePrototype>))]
public HashSet<string> 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("locPrefix")]
public string LocPrefix = "carbon";
}