* keeye * random locks for demiplanes * blank keys, material keys * craft blank keys * key file * fix skill tree UIScaling * fix audio and sounds and prediction * delete crowbar, merge its into pickaxe * QoL key shaping * lock introdusing * QoL progress lockpicking * examinable lock * lock insert * mithril lockkpick * Update wall_dirt.yml
33 lines
853 B
C#
33 lines
853 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 = 10;
|
|
|
|
[DataField]
|
|
public TimeSpan HackTime = TimeSpan.FromSeconds(1.0f);
|
|
|
|
[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)
|
|
};
|
|
}
|