[Cleanup] Remove FellDownEvent (#39762)

* Remove

* Better description maybe

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
Princess Cheeseballs
2025-08-27 13:43:55 -07:00
committed by GitHub
parent ecc499a7d5
commit 63f38558ca
2 changed files with 2 additions and 19 deletions

View File

@@ -201,9 +201,6 @@ namespace Content.Server.Hands.Systems
var holderVelocity = _physicsQuery.TryComp(entity, out var physics) ? physics.LinearVelocity : Vector2.Zero;
var spreadMaxAngle = Angle.FromDegrees(DropHeldItemsSpread);
var fellEvent = new FellDownEvent(entity);
RaiseLocalEvent(entity, fellEvent);
foreach (var hand in entity.Comp.Hands.Keys)
{
if (!TryGetHeldItem(entity.AsNullable(), hand, out var heldEntity))

View File

@@ -243,22 +243,8 @@ public sealed class DownedEvent : EntityEventArgs, IInventoryRelayEvent
}
/// <summary>
/// Raised after an entity falls down.
/// </summary>
public sealed class FellDownEvent : EntityEventArgs
{
public EntityUid Uid { get; }
public FellDownEvent(EntityUid uid)
{
Uid = uid;
}
}
/// <summary>
/// Raised on the entity being thrown due to the holder falling down.
/// Raised on an inhand entity being held by an entity who is dropping items as part of an attempted state change to down.
/// If cancelled the inhand entity will not be dropped.
/// </summary>
[ByRefEvent]
public record struct FellDownThrowAttemptEvent(EntityUid Thrower, bool Cancelled = false);