Update content vectors to numerics (#17759)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Numerics;
|
||||
using Content.Shared.Interaction;
|
||||
using Content.Shared.Audio;
|
||||
using Content.Shared.Jittering;
|
||||
@@ -65,7 +66,7 @@ namespace Content.Server.Medical.BiomassReclaimer
|
||||
if (_robustRandom.Prob(0.03f) && reclaimer.SpawnedEntities.Count > 0)
|
||||
{
|
||||
var thrown = Spawn(_robustRandom.Pick(reclaimer.SpawnedEntities).PrototypeId, Transform(reclaimer.Owner).Coordinates);
|
||||
Vector2 direction = (_robustRandom.Next(-30, 30), _robustRandom.Next(-30, 30));
|
||||
var direction = new Vector2(_robustRandom.Next(-30, 30), _robustRandom.Next(-30, 30));
|
||||
_throwing.TryThrow(thrown, direction, _robustRandom.Next(1, 10));
|
||||
}
|
||||
reclaimer.RandomMessTimer += (float) reclaimer.RandomMessInterval.TotalSeconds;
|
||||
@@ -162,7 +163,7 @@ namespace Content.Server.Medical.BiomassReclaimer
|
||||
{
|
||||
if (!CanGib(uid, args.Climber, component))
|
||||
{
|
||||
Vector2 direction = (_robustRandom.Next(-2, 2), _robustRandom.Next(-2, 2));
|
||||
var direction = new Vector2(_robustRandom.Next(-2, 2), _robustRandom.Next(-2, 2));
|
||||
_throwing.TryThrow(args.Climber, direction, 0.5f);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user