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