Fix old use of item shuffling (#2001)

This commit is contained in:
DrSmugleaf
2020-09-02 01:23:43 +02:00
committed by GitHub
parent 538eac8a15
commit 3a54ace1a8

View File

@@ -341,9 +341,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
//Put it on the floor
pill.Transform.GridPosition = user.Transform.GridPosition;
//Give it an offset
var x_negative = random.Prob(0.5f) ? -1 : 1;
var y_negative = random.Prob(0.5f) ? -1 : 1;
pill.Transform.LocalPosition += new Vector2(random.NextFloat() * 0.2f * x_negative, random.NextFloat() * 0.2f * y_negative);
pill.RandomOffset(0.2f);
}
}