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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user