Fix old use of item shuffling (#2001)
This commit is contained in:
@@ -341,9 +341,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
//Put it on the floor
|
//Put it on the floor
|
||||||
pill.Transform.GridPosition = user.Transform.GridPosition;
|
pill.Transform.GridPosition = user.Transform.GridPosition;
|
||||||
//Give it an offset
|
//Give it an offset
|
||||||
var x_negative = random.Prob(0.5f) ? -1 : 1;
|
pill.RandomOffset(0.2f);
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user