Decouple interactions from hands, cleanup old events, add new fears (#28393)
* ok basic shit * second part * pretend it isn't real it can't hurt you. * 👁️ 👁️ * shadowcommander review
This commit is contained in:
@@ -96,9 +96,9 @@ namespace Content.Shared.ActionBlocker
|
||||
/// involve using a held entity. In the majority of cases, systems that provide interactions will not need
|
||||
/// to check this themselves.
|
||||
/// </remarks>
|
||||
public bool CanUseHeldEntity(EntityUid user)
|
||||
public bool CanUseHeldEntity(EntityUid user, EntityUid used)
|
||||
{
|
||||
var ev = new UseAttemptEvent(user);
|
||||
var ev = new UseAttemptEvent(user, used);
|
||||
RaiseLocalEvent(user, ev);
|
||||
|
||||
return !ev.Cancelled;
|
||||
|
||||
Reference in New Issue
Block a user