mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* component outline * System port * super bonk detour * working good! * relay changes * the death of clumsy * why it stop working?? * now to test it * tested it * Actual genuine tests * final checks * buff up catch test * annoying test fail * refactor: minor whitespace and var rename changes * refactor: changed comments on top of methods to xml-doc for ClumsyStatusEffectSystem --------- Co-authored-by: iaada <iaada@users.noreply.github.com> Co-authored-by: Fildrance <fildrance@gmail.com>
32 lines
930 B
C#
32 lines
930 B
C#
using Content.Shared.Medical;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Clumsy.Components;
|
|
|
|
/// <summary>
|
|
/// Afflicted entity will occasionally shock itself while using a defibrillator.
|
|
/// </summary>
|
|
/// <seealso cref="DefibrillatorComponent"/>
|
|
[RegisterComponent, NetworkedComponent]
|
|
[Access(typeof(ClumsyStatusEffectSystem))]
|
|
public sealed partial class ClumsyDefibStatusEffectComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// How often to fail.
|
|
/// </summary>
|
|
[DataField]
|
|
public float ClumsyChance = 0.5f;
|
|
|
|
/// <summary>
|
|
/// Sound played upon failure.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier? ClumsySound = new SoundPathSpecifier("/Audio/Items/bikehorn.ogg");
|
|
|
|
/// <summary>
|
|
/// Popup played to the afflicted when they fail.
|
|
/// </summary>
|
|
[DataField]
|
|
public LocId? FailedMessage = "clumsy-defibrillator-fail-message";
|
|
}
|