я устала босс
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Numerics;
|
||||
using Content.Shared.ActionBlocker;
|
||||
using Content.Shared.Administration.Logs;
|
||||
@@ -273,6 +274,23 @@ public sealed class PullingSystem : EntitySystem
|
||||
return false;
|
||||
}
|
||||
|
||||
// WD ADDED
|
||||
public bool TryGetPulledEntity(
|
||||
EntityUid puller,
|
||||
[NotNullWhen(true)] out EntityUid? pulled,
|
||||
PullerComponent? component = null)
|
||||
{
|
||||
pulled = null;
|
||||
if (!Resolve(puller, ref component))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
pulled = component.Pulling;
|
||||
return pulled is not null;
|
||||
}
|
||||
// WD ADDED END
|
||||
|
||||
public bool IsPulling(EntityUid puller, PullerComponent? component = null)
|
||||
{
|
||||
return Resolve(puller, ref component, false) && component.Pulling != null;
|
||||
|
||||
Reference in New Issue
Block a user