Turnstiles (#36313)
* construction rotation fix * Turnstiles * renaming * review-slarticodefast-1 * mild attempts to fix (sorry sloth) * move some more shit * Remove engine dependency * grid agnostic * remove debug string * fix json * Update Content.Shared/Movement/Pulling/Systems/PullingSystem.cs Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com> * Update Content.Shared/Movement/Pulling/Systems/PullingSystem.cs Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com> * remove pass delay for mispredict reasons. * most minor of changes * Give directional indicator on examine --------- Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
This commit is contained in:
@@ -341,6 +341,16 @@ public sealed class PullingSystem : EntitySystem
|
||||
return Resolve(puller, ref component, false) && component.Pulling != null;
|
||||
}
|
||||
|
||||
public EntityUid? GetPuller(EntityUid puller, PullableComponent? component = null)
|
||||
{
|
||||
return !Resolve(puller, ref component, false) ? null : component.Puller;
|
||||
}
|
||||
|
||||
public EntityUid? GetPulling(EntityUid puller, PullerComponent? component = null)
|
||||
{
|
||||
return !Resolve(puller, ref component, false) ? null : component.Pulling;
|
||||
}
|
||||
|
||||
private void OnReleasePulledObject(ICommonSession? session)
|
||||
{
|
||||
if (session?.AttachedEntity is not { Valid: true } player)
|
||||
|
||||
Reference in New Issue
Block a user