2023-04-03 13:13:48 +12:00
|
|
|
using Content.Shared.DoAfter;
|
2023-02-28 19:51:42 -05:00
|
|
|
|
2022-05-12 03:58:27 -04:00
|
|
|
namespace Content.Server.Resist;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class CanEscapeInventoryComponent : Component
|
2022-05-12 03:58:27 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-08-10 04:37:20 -04:00
|
|
|
/// Base doafter length for uncontested breakouts.
|
2022-05-12 03:58:27 -04:00
|
|
|
/// </summary>
|
2022-08-10 04:37:20 -04:00
|
|
|
[DataField("baseResistTime")]
|
|
|
|
|
public float BaseResistTime = 5f;
|
2023-02-28 19:51:42 -05:00
|
|
|
|
2023-04-03 13:13:48 +12:00
|
|
|
public bool IsEscaping => DoAfter != null;
|
2023-02-28 19:51:42 -05:00
|
|
|
|
2023-04-03 13:13:48 +12:00
|
|
|
[DataField("doAfter")]
|
|
|
|
|
public DoAfterId? DoAfter;
|
2022-05-12 03:58:27 -04:00
|
|
|
}
|