change ShowHealthBars and ShowHealthIcons to use protoId (#32355)
use protoId
This commit is contained in:
@@ -2,7 +2,6 @@ using Content.Shared.Damage.Prototypes;
|
||||
using Content.Shared.StatusIcon;
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
|
||||
namespace Content.Shared.Overlays;
|
||||
|
||||
@@ -15,8 +14,11 @@ public sealed partial class ShowHealthBarsComponent : Component
|
||||
/// <summary>
|
||||
/// Displays health bars of the damage containers.
|
||||
/// </summary>
|
||||
[DataField("damageContainers", customTypeSerializer: typeof(PrototypeIdListSerializer<DamageContainerPrototype>))]
|
||||
public List<string> DamageContainers = new();
|
||||
[DataField]
|
||||
public List<ProtoId<DamageContainerPrototype>> DamageContainers = new()
|
||||
{
|
||||
"Biological"
|
||||
};
|
||||
|
||||
[DataField]
|
||||
public ProtoId<HealthIconPrototype>? HealthStatusIcon = "HealthIconFine";
|
||||
|
||||
Reference in New Issue
Block a user