Add Diona rooting (#32782)

* Initial commit

* Add sound

* Review commets

* addressing review

* I think this is what Slart meant?

* Review fixes

* More fixes

* tiny formatting

* Review fixes

* Review fixes

* Fix small timing error

* Follow new action system

* review

---------

Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
Co-authored-by: ScarKy0 <scarky0@onet.eu>
This commit is contained in:
SlamBamActionman
2025-06-04 12:52:59 +02:00
committed by GitHub
parent 1c8c85ea1d
commit d81e82cef7
15 changed files with 369 additions and 7 deletions

View File

@@ -95,7 +95,7 @@ public sealed class SlipperySystem : EntitySystem
if (HasComp<KnockedDownComponent>(other) && !component.SlipData.SuperSlippery)
return;
var attemptEv = new SlipAttemptEvent();
var attemptEv = new SlipAttemptEvent(uid);
RaiseLocalEvent(other, attemptEv);
if (attemptEv.SlowOverSlippery)
_speedModifier.AddModifiedEntity(other);
@@ -148,7 +148,14 @@ public sealed class SlipAttemptEvent : EntityEventArgs, IInventoryRelayEvent
public bool SlowOverSlippery;
public EntityUid? SlipCausingEntity;
public SlotFlags TargetSlots { get; } = SlotFlags.FEET;
public SlipAttemptEvent(EntityUid? slipCausingEntity)
{
SlipCausingEntity = slipCausingEntity;
}
}
/// <summary>