Fix zipties/makeshift cuffs dropping multiple broken entities on removal (#23095)

This commit is contained in:
Nemanja
2023-12-28 18:50:08 -05:00
committed by GitHub
parent 194e9e790f
commit 526b966f09
3 changed files with 26 additions and 1 deletions

View File

@@ -45,6 +45,13 @@ public sealed partial class HandcuffComponent : Component
[DataField, ViewVariables(VVAccess.ReadWrite)]
public EntProtoId? BrokenPrototype;
/// <summary>
/// Whether or not these cuffs are in the process of being removed.
/// Used simply to prevent spawning multiple <see cref="BrokenPrototype"/>.
/// </summary>
[DataField]
public bool Removing;
[DataField, ViewVariables(VVAccess.ReadWrite)]
public DamageSpecifier DamageOnResist = new()
{