я устала босс

This commit is contained in:
Remuchi
2024-03-27 19:30:19 +07:00
parent 8514b94683
commit c04b962141
45 changed files with 693 additions and 927 deletions

View File

@@ -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;