Skip to content

Commit

Permalink
fix a ttk calculation error
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianusIV committed Jun 3, 2024
1 parent 4771540 commit 2613644
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions XDefiantWeaponStats/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,16 @@
critSTKPhantom.Add((int)Math.Round(120.0 / critDmg[i], MidpointRounding.ToPositiveInfinity));

var burstToKill = (int)Math.Round(baseSTK[i] / (double)gun.ShotsPerTrigger, MidpointRounding.ToPositiveInfinity);
baseTTK.Add((int)Math.Round(burstToKill * msPerRound));
baseTTK.Add((int)Math.Round(burstToKill - 1 * msPerRound));

burstToKill = (int)Math.Round(baseSTKPhantom[i] / (double)gun.ShotsPerTrigger, MidpointRounding.ToPositiveInfinity);
baseTTKPhantom.Add((int)Math.Round(burstToKill * msPerRound));
baseTTKPhantom.Add((int)Math.Round(burstToKill - 1 * msPerRound));

burstToKill = (int)Math.Round(critSTK[i] / (double)gun.ShotsPerTrigger, MidpointRounding.ToPositiveInfinity);
critTTK.Add((int)Math.Round(burstToKill * msPerRound));
critTTK.Add((int)Math.Round(burstToKill - 1 * msPerRound));

burstToKill = (int)Math.Round(critSTKPhantom[i] / (double)gun.ShotsPerTrigger, MidpointRounding.ToPositiveInfinity);
critTTKPhantom.Add((int)Math.Round(burstToKill * msPerRound));
critTTKPhantom.Add((int)Math.Round(burstToKill - 1 * msPerRound));
}

if (dmgSelected)
Expand Down

0 comments on commit 2613644

Please sign in to comment.