]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[Cleanup] Remove FellDownEvent (#39762)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Wed, 27 Aug 2025 20:43:55 +0000 (13:43 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Aug 2025 20:43:55 +0000 (22:43 +0200)
* Remove

* Better description maybe

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Server/Hands/Systems/HandsSystem.cs
Content.Shared/Standing/StandingStateSystem.cs

index 0f7b6ce3f93df12f93350aed7a7d48f9189842f5..4d47ea4a78039266cd3522d4a9e6661b969cb84d 100644 (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))
index ffe8f2c156ee54cbaccecb8c737c061cad2f6ada..e7bd9e5f58f9ef0feb0125563c15709390645eb5 100644 (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);
-
-