| 12345678910111213141516171819202122232425262728293031 |
- // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
- // SPDX-FileCopyrightText: 2025 Piras314 <p1r4s@proton.me>
- // SPDX-FileCopyrightText: 2025 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
- //
- // SPDX-License-Identifier: AGPL-3.0-or-later
- using Content.Shared.Chemistry.Reagent;
- using Robust.Shared.Audio;
- namespace Content.Shared._Shitmed.OnHit;
- [RegisterComponent]
- public sealed partial class InjectOnHitComponent : Component
- {
- [DataField("reagents")]
- public List<ReagentQuantity> Reagents;
- [DataField("sound")]
- public SoundSpecifier? Sound;
- [DataField("limit")]
- public float? ReagentLimit;
- [DataField]
- public bool NeedsRestrain;
- [DataField]
- public int InjectionDelay = 10000;
- }
- [ByRefEvent]
- public record struct InjectOnHitAttemptEvent(bool Cancelled);
|