CatStation/Content.Shared/Climbing/Components/BonkableComponent.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
957 B
C#

using Content.Shared.Climbing.Systems;
using Content.Shared.Clumsy.Components;
using Content.Shared.Damage;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Climbing.Components;
/// <summary>
/// Damages and stuns entities afflicted with <see cref="ClumsyVaultStatusEffectComponent"/> upon climb interactions.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(ClimbSystem))]
public sealed partial class BonkableComponent : Component
{
/// <summary>
/// How long to stun players on bonk, in seconds.
/// </summary>
[DataField]
public TimeSpan BonkTime = TimeSpan.FromSeconds(2);
/// <summary>
/// How much damage to apply on bonk.
/// </summary>
[DataField]
public DamageSpecifier? BonkDamage;
/// <summary>
/// The sound of the bonk.
/// </summary>
[DataField]
public SoundSpecifier BonkSound = new SoundCollectionSpecifier("TrayHit");
}