Nerf hacking speed (#5264)

This commit is contained in:
metalgearsloth
2021-11-11 20:48:12 +11:00
committed by GitHub
parent dae33d14df
commit 940134cec1
3 changed files with 4 additions and 2 deletions

View File

@@ -180,7 +180,7 @@ namespace Content.Server.Doors.Components
/// Default time that the door should take to pry open. /// Default time that the door should take to pry open.
/// </summary> /// </summary>
[DataField("pryTime")] [DataField("pryTime")]
public float PryTime = 0.5f; public float PryTime = 1.5f;
/// <summary> /// <summary>
/// Minimum interval allowed between deny sounds in milliseconds. /// Minimum interval allowed between deny sounds in milliseconds.

View File

@@ -12,6 +12,8 @@ namespace Content.Server.WireHacking
[ViewVariables] private readonly Dictionary<string, WireLayout> _layouts = [ViewVariables] private readonly Dictionary<string, WireLayout> _layouts =
new(); new();
public const float ScrewTime = 2.5f;
public override void Initialize() public override void Initialize()
{ {
base.Initialize(); base.Initialize();

View File

@@ -522,7 +522,7 @@ namespace Content.Server.WireHacking
// screws the panel open if the tool can do so // screws the panel open if the tool can do so
else if (await toolSystem.UseTool(tool.Owner.Uid, eventArgs.User.Uid, Owner.Uid, else if (await toolSystem.UseTool(tool.Owner.Uid, eventArgs.User.Uid, Owner.Uid,
0f, 0.5f, _screwingQuality, toolComponent:tool)) 0f, WireHackingSystem.ScrewTime, _screwingQuality, toolComponent:tool))
{ {
IsPanelOpen = !IsPanelOpen; IsPanelOpen = !IsPanelOpen;
if (IsPanelOpen) if (IsPanelOpen)