Skip to content

Commit

Permalink
Ooops
Browse files Browse the repository at this point in the history
  • Loading branch information
Roudenn committed Jan 9, 2025
1 parent 7d65e16 commit 4b500c9
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions Content.Shared/Backmen/Blob/SharedBlobTileSystem.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
using System.Numerics;
using Content.Shared.Backmen.Blob.Components;
using Content.Shared.Backmen.Blob.Components;
using Content.Shared.Verbs;
using Robust.Shared.Player;

namespace Content.Shared.Backmen.Blob;

public abstract class SharedBlobTileSystem : EntitySystem
{
[Dependency] private readonly SharedTransformSystem _transform = default!;

protected EntityQuery<BlobObserverComponent> ObserverQuery;
protected EntityQuery<BlobCoreComponent> CoreQuery;
protected EntityQuery<TransformComponent> TransformQuery;
Expand Down Expand Up @@ -46,16 +42,4 @@ private void AddUpgradeVerb(EntityUid uid, BlobUpgradeableTileComponent comp, Ge
};
args.Verbs.Add(verb);
}

public void DoLunge(EntityUid from, EntityUid target)
{
if(!TransformQuery.TryComp(from, out var userXform))
return;

var targetPos = _transform.GetWorldPosition(target);
var localPos = Vector2.Transform(targetPos, _transform.GetInvWorldMatrix(userXform));
localPos = userXform.LocalRotation.RotateVec(localPos);

RaiseNetworkEvent(new BlobAttackEvent(GetNetEntity(from), GetNetEntity(target), localPos), Filter.Pvs(from));
}
}

0 comments on commit 4b500c9

Please sign in to comment.