Skip to content

Commit

Permalink
fix the system, not sure why this wasn't merged correctly??
Browse files Browse the repository at this point in the history
  • Loading branch information
DangerRevolution committed Mar 23, 2024
1 parent 32f9f6f commit 818e8d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Content.Shared/Strip/SharedStrippableSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ public override void Initialize()
SubscribeLocalEvent<StrippableComponent, DragDropDraggedEvent>(OnDragDrop);
}

public (float Time, bool Stealth) GetStripTimeModifiers(EntityUid user, EntityUid target, float initialTime)
public (TimeSpan Time, bool Stealth) GetStripTimeModifiers(EntityUid user, EntityUid target, TimeSpan initialTime)
{
var userEv = new BeforeStripEvent(initialTime);
RaiseLocalEvent(user, userEv);
RaiseLocalEvent(user, ref userEv);
var ev = new BeforeGettingStrippedEvent(userEv.Time, userEv.Stealth);
RaiseLocalEvent(target, ev);
RaiseLocalEvent(target, ref ev);
return (ev.Time, ev.Stealth);
}

Expand Down

0 comments on commit 818e8d1

Please sign in to comment.