This oughta fix it
This commit is contained in:
parent
0de4c1646a
commit
ac3793dafc
|
|
@ -110,7 +110,7 @@ public sealed class ReverseEngineeringSystem : SharedReverseEngineeringSystem
|
|||
ReverseEngineeringTickResult.SuccessAverage => 25,
|
||||
ReverseEngineeringTickResult.SuccessMajor => 40,
|
||||
ReverseEngineeringTickResult.InstantSuccess => 100,
|
||||
_ => throw new ArgumentOutOfRangeException()
|
||||
_ => 0,
|
||||
};
|
||||
|
||||
rev.Progress = Math.Clamp(rev.Progress + bonus, 0, 100);
|
||||
|
|
|
|||
|
|
@ -55,6 +55,6 @@ public sealed class RadCollectorSignalSystem : EntitySystem
|
|||
RadCollectorState.Empty => EmptyPort,
|
||||
RadCollectorState.Low => LowPort,
|
||||
RadCollectorState.Full => FullPort,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(state), state, null)
|
||||
_ => EmptyPort,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ public abstract class SharedFishingSystem : EntitySystem
|
|||
[Dependency] private readonly SharedActionsSystem _actions = default!;
|
||||
[Dependency] private readonly SharedPopupSystem _popup = default!;
|
||||
[Dependency] private readonly SharedHandsSystem _hands = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!; // Delta V - Build Errors
|
||||
|
||||
protected EntityQuery<ActiveFisherComponent> FisherQuery;
|
||||
protected EntityQuery<ActiveFishingSpotComponent> ActiveFishSpotQuery;
|
||||
|
|
@ -347,10 +348,10 @@ public abstract class SharedFishingSystem : EntitySystem
|
|||
var attachedEnt = lureComp.AttachedEntity.Value;
|
||||
var targetCoords = Xform.GetMapCoordinates(Transform(attachedEnt));
|
||||
var playerCoords = Xform.GetMapCoordinates(Transform(player));
|
||||
var rand = new System.Random((int) Timing.CurTick.Value); // evil random prediction hack
|
||||
// var rand = new System.Random((int) Timing.CurTick.Value); // evil random prediction hack // Delta V - No idea, commenting out for now
|
||||
|
||||
// Calculate throw direction
|
||||
var direction = (playerCoords.Position - targetCoords.Position) * rand.NextFloat(0.2f, 0.85f);
|
||||
var direction = (playerCoords.Position - targetCoords.Position) * _random.NextFloat(0.2f, 0.85f);
|
||||
|
||||
// Yeet
|
||||
Throwing.TryThrow(attachedEnt, direction, 4f, player);
|
||||
|
|
|
|||
Loading…
Reference in New Issue