(2aa8e6b24) Reduce the get item range.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:31:15 +03:00
parent ddd61a9243
commit 27506eb10f
9 changed files with 151 additions and 217 deletions
@@ -108,7 +108,7 @@ namespace Barotrauma
}
if (moveToTarget.CurrentHull == character.CurrentHull &&
Vector2.DistanceSquared(character.Position, moveToTarget.Position) < MathUtils.Pow(targetItem.InteractDistance * 2, 2))
Vector2.DistanceSquared(character.Position, moveToTarget.Position) < MathUtils.Pow(targetItem.InteractDistance, 2))
{
int targetSlot = -1;
if (equip)