Support multiple containers for HealingComponent (#16867)

This commit is contained in:
Vordenburg
2023-06-03 15:30:20 -04:00
committed by GitHub
parent d8c05d013e
commit 49ba959b82
4 changed files with 23 additions and 12 deletions

View File

@@ -1,8 +1,7 @@
using Content.Shared.Damage;
using Content.Shared.Damage.Prototypes;
using Content.Shared.DoAfter;
using Robust.Shared.Audio;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
namespace Content.Server.Medical.Components
{
@@ -36,8 +35,8 @@ namespace Content.Server.Medical.Components
/// HealingComponent this filters what damage container type this component should work on. If null,
/// all damage container types are supported.
/// </remarks>
[DataField("damageContainer", customTypeSerializer: typeof(PrototypeIdSerializer<DamageContainerPrototype>))]
public string? DamageContainerID;
[DataField("damageContainers", customTypeSerializer: typeof(PrototypeIdListSerializer<DamageContainerPrototype>))]
public List<string>? DamageContainers;
/// <summary>
/// How long it takes to apply the damage.