Files
crystall-punk-14/Content.Shared/_CP14/LockKey/Components/CP14LockpickComponent.cs
Ed 41d3ccab8b Locks update (#501)
* massive code refactor

* fix

* ftl fix

* rider pet pet

* hacking doAfter

* Update SharedCP14LockKeySystem.cs

* optimization

* Update migration.yml

* Update migration.yml
2024-10-21 14:20:05 +03:00

33 lines
852 B
C#

using Robust.Shared.Audio;
namespace Content.Shared._CP14.LockKey.Components;
/// <summary>
/// A component of a lock that stores its keyhole shape, complexity, and current state.
/// </summary>
[RegisterComponent]
public sealed partial class CP14LockpickComponent : Component
{
[DataField]
public int Health = 3;
[DataField]
public TimeSpan HackTime = TimeSpan.FromSeconds(1.5f);
[DataField]
public SoundSpecifier SuccessSound = new SoundPathSpecifier("/Audio/_CP14/Items/lockpick_use.ogg")
{
Params = AudioParams.Default
.WithVariation(0.05f)
.WithVolume(0.5f)
};
[DataField]
public SoundSpecifier FailSound = new SoundPathSpecifier("/Audio/_CP14/Items/lockpick_fail.ogg")
{
Params = AudioParams.Default
.WithVariation(0.05f)
.WithVolume(0.5f)
};
}