Add snatcherprod (#422)
This commit is contained in:
@@ -24,8 +24,11 @@ public sealed class StaminaMeleeHitEvent : HandledEntityEventArgs
|
||||
/// </summary>
|
||||
public float FlatModifier = 0;
|
||||
|
||||
public StaminaMeleeHitEvent(List<(EntityUid Entity, StaminaComponent Component)> hitList)
|
||||
public EntityUid User; // WD
|
||||
|
||||
public StaminaMeleeHitEvent(List<(EntityUid Entity, StaminaComponent Component)> hitList, EntityUid user) // WD EDIT
|
||||
{
|
||||
HitList = hitList;
|
||||
User = user; // WD
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ public sealed partial class StaminaSystem : EntitySystem
|
||||
toHit.Add((ent, stam));
|
||||
}
|
||||
|
||||
var hitEvent = new StaminaMeleeHitEvent(toHit);
|
||||
var hitEvent = new StaminaMeleeHitEvent(toHit, args.User); // WD EDIT
|
||||
RaiseLocalEvent(uid, hitEvent);
|
||||
|
||||
if (hitEvent.Handled)
|
||||
|
||||
Reference in New Issue
Block a user