Skip to content

Commit

Permalink
Update UplinkSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
notquitehadouken authored Feb 22, 2025
1 parent bfa28ab commit b502c9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Content.Server/Traitor/Uplink/UplinkSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ private void SetUplink(EntityUid user, EntityUid uplink, FixedPoint2 balance, bo
try
{
balance *= -Math.Log2(1f - Random.Shared.NextSingle()) / 1.442f;
// 1.442 is (about) the number we need to divide by to make sure it still averages at balance
balance = Math.Round((float)balance);
}
catch { }
Expand Down

0 comments on commit b502c9b

Please sign in to comment.