CatStation/Content.Shared/Clumsy/Components/ClumsyInjectorStatusEffectComponent.cs
āda 9fd1abcff6
Clumsy status effect + tests (#45262)
* 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>
2026-08-11 10:19:19 +00:00

32 lines
947 B
C#

using Content.Shared.Chemistry.Components;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Clumsy.Components;
/// <summary>
/// Afflicted entity will occasionally use syringes on themselves instead of their target.
/// </summary>
/// <seealso cref="InjectorComponent"/>
[RegisterComponent, NetworkedComponent]
[Access(typeof(ClumsyStatusEffectSystem))]
public sealed partial class ClumsyInjectorStatusEffectComponent : 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-hypospray-fail-message";
}