Item strip delay dependant on slot. (#8900)

This commit is contained in:
keronshb
2022-06-19 20:55:59 -04:00
committed by GitHub
parent 634dbd53af
commit 76963c6d5a
4 changed files with 40 additions and 7 deletions

View File

@@ -9,13 +9,21 @@ namespace Content.Server.Strip
[Access(typeof(StrippableSystem))]
public sealed class StrippableComponent : SharedStrippableComponent
{
/// <summary>
/// How long it takes to open the strip menu.
/// This should be relatively short so it's not a hassle
/// but so it also doesn't open immediately during melee combat
/// </summary>
[ViewVariables]
[DataField("openDelay")]
public float OpenDelay = 4f;
public float OpenDelay = 1f;
/// <summary>
/// The strip delay for hands.
/// </summary>
[ViewVariables]
[DataField("delay")]
public float StripDelay = 2f;
[DataField("handDelay")]
public float HandStripDelay = 3f;
public override bool Drop(DragDropEvent args)
{