Skip to content

Commit

Permalink
const
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainSqrBeard committed Nov 16, 2024
1 parent a25b91c commit f657b5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Server/Fluids/EntitySystems/AbsorbentSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public sealed class AbsorbentSystem : SharedAbsorbentSystem
[Dependency] private readonly MapSystem _mapSystem = default!;
[Dependency] private readonly EntityLookupSystem _lookup = default!;

public const float FootprintAbsorptionRange = 0.25f;

public override void Initialize()
{
base.Initialize();
Expand Down Expand Up @@ -341,7 +343,7 @@ private bool TryFootprintInteract(EntityUid user, EntityUid used, EntityUid targ
var soundPlayed = false;

var footPrints = new HashSet<Entity<FootprintComponent>>();
_lookup.GetEntitiesInRange(Transform(target).Coordinates, 0.25f, footPrints, LookupFlags.Dynamic | LookupFlags.Uncontained);
_lookup.GetEntitiesInRange(Transform(target).Coordinates, FootprintAbsorptionRange, footPrints, LookupFlags.Dynamic | LookupFlags.Uncontained);

foreach (var (footstepUid, comp) in footPrints)
{
Expand Down

0 comments on commit f657b5d

Please sign in to comment.