| 123456789101112131415161718192021222324252627282930313233343536 |
- // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
- // SPDX-FileCopyrightText: 2025 Ilya246 <57039557+Ilya246@users.noreply.github.com>
- // SPDX-FileCopyrightText: 2025 Misandry <mary@thughunt.ing>
- // SPDX-FileCopyrightText: 2025 gus <august.eymann@gmail.com>
- //
- // SPDX-License-Identifier: AGPL-3.0-or-later
- using Robust.Shared.GameStates;
- using Robust.Shared.Localization;
- namespace Content.Shared.Goobstation.Weapons.DodgeWideswing;
- /// <summary>
- /// Makes this entity have a chance to dodge a wideswing attack, converting the incoming damage into stamina damage.
- /// </summary>
- [RegisterComponent]
- public sealed partial class DodgeWideswingComponent : Component
- {
- [DataField]
- public float Chance = 1f;
- /// <summary>
- /// How much stamina damage to apply per damage from source.
- /// </summary>
- [DataField]
- public float StaminaRatio = 1f;
- /// <summary>
- /// Whether to still evade if knocked down.
- /// </summary>
- [DataField]
- public bool WhenKnockedDown = false;
- [DataField]
- public LocId? PopupId = "wideswing-dodge-generic";
- }
|