mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 05:59:03 +03:00
24 lines
899 B
C#
24 lines
899 B
C#
namespace Content.Server.Weapons.Melee;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class ShovingComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Default shoving stamina damage used if the shoving entity has no ShovingComponent. See <see cref="StaminaDamage"/>.
|
|
/// </summary>
|
|
public const float DefaultStaminaDamage = 10f; // WWDP shoving
|
|
|
|
/// <summary>
|
|
/// Amount of stamina damage dealt on successful shove if the attacker has a 100% chance to shove the target.
|
|
/// If the chance is less than 100% (which it almost always is), the damage is multiplied by the chance.
|
|
/// </summary>
|
|
[DataField]
|
|
public float StaminaDamage = DefaultStaminaDamage;
|
|
|
|
/// <summary>
|
|
/// Added to the shove/disarm chance on attacks done by this mob, acts opposite to DisarmMalus for targets.
|
|
/// </summary>
|
|
[DataField]
|
|
public float DisarmBonus = 0f;
|
|
}
|