mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-06 06:17:26 +00:00
* Remove second shove check.
* Change when popups and sounds are created.
Reduces phantom shoves that feel bad.
* why didn't i think of this i saw it earlier...
* Replaced Is fields with prefix
* remove some dependencies to fix tests???
(cherry picked from commit 5a2c744998)
32 lines
941 B
C#
32 lines
941 B
C#
namespace Content.Shared.CombatMode
|
|
{
|
|
public sealed class DisarmedEvent : HandledEntityEventArgs
|
|
{
|
|
/// <summary>
|
|
/// The entity being disarmed.
|
|
/// </summary>
|
|
public EntityUid Target { get; init; }
|
|
|
|
/// <summary>
|
|
/// The entity performing the disarm.
|
|
/// </summary>
|
|
public EntityUid Source { get; init; }
|
|
|
|
/// <summary>
|
|
/// Probability for push/knockdown.
|
|
/// </summary>
|
|
public float PushProbability { get; init; }
|
|
|
|
/// <summary>
|
|
/// Prefix for the popup message that will be displayed on a successful push.
|
|
/// Should be set before returning.
|
|
/// </summary>
|
|
public string PopupPrefix { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Whether the entity was successfully stunned from a shove.
|
|
/// </summary>
|
|
public bool IsStunned { get; set; }
|
|
}
|
|
}
|