2022-11-09 07:34:07 +11:00
|
|
|
using Content.Shared.Damage.Components;
|
2022-07-26 21:34:19 -04:00
|
|
|
using Robust.Shared.Collections;
|
|
|
|
|
|
2022-11-09 07:34:07 +11:00
|
|
|
namespace Content.Shared.Damage.Events;
|
2022-07-26 21:34:19 -04:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The components in the list are going to be hit,
|
|
|
|
|
/// give opportunities to change the damage or other stuff.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public sealed class StaminaMeleeHitEvent : HandledEntityEventArgs
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// List of hit stamina components.
|
2022-11-09 07:34:07 +11:00
|
|
|
/// </summary>
|
2023-03-13 00:19:05 +11:00
|
|
|
public List<(EntityUid Entity, StaminaComponent Component)> HitList;
|
2022-07-26 21:34:19 -04:00
|
|
|
|
2022-11-09 07:34:07 +11:00
|
|
|
/// <summary>
|
2022-07-26 21:34:19 -04:00
|
|
|
/// The multiplier. Generally, try to use *= or /= instead of overwriting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float Multiplier = 1;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The flat modifier. Generally, try to use += or -= instead of overwriting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public float FlatModifier = 0;
|
|
|
|
|
|
2023-03-13 00:19:05 +11:00
|
|
|
public StaminaMeleeHitEvent(List<(EntityUid Entity, StaminaComponent Component)> hitList)
|
2022-07-26 21:34:19 -04:00
|
|
|
{
|
|
|
|
|
HitList = hitList;
|
|
|
|
|
}
|
|
|
|
|
}
|