fish-station/Content.Shared/Trigger/Components/Effects/RattleOnTriggerComponent.cs
slarticodefast 534553dddf
Turn some implants into triggers (#39364)
Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
2025-08-06 12:52:11 -07:00

30 lines
1 KiB
C#

using Content.Shared.Mobs;
using Content.Shared.Radio;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Trigger.Components.Effects;
/// <summary>
/// Sends an emergency message over coms when triggered giving information about the entity's mob status.
/// If TargetUser is true then the user's mob state will be used instead.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class RattleOnTriggerComponent : BaseXOnTriggerComponent
{
/// <summary>
/// The radio channel the message will be sent to.
/// </summary>
[DataField]
public ProtoId<RadioChannelPrototype> RadioChannel = "Syndicate";
/// <summary>
/// The message to be send depending on the target's current mob state.
/// </summary>
[DataField]
public Dictionary<MobState, LocId> Messages = new()
{
{MobState.Critical, "rattle-on-trigger-critical-message"},
{MobState.Dead, "rattle-on-trigger-dead-message"}
};
}