Skip to content

Commit

Permalink
Fix for speed-levels if torpor-bug is present.
Browse files Browse the repository at this point in the history
  • Loading branch information
cadon committed Jul 5, 2016
1 parent c8ea9d7 commit 384caa2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ARKBreedingStats/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,19 +411,22 @@ private bool extractLevels()
setPossibility(5, cR);
}

setWildSpeedLevelAccordingToOthers();
setActiveStat(activeStatKeeper);
if (Extraction.E.postTamed) { setUniqueTE(); }
else
{
labelTE.Text = "not yet tamed";
labelTE.BackColor = System.Drawing.Color.Transparent;
}

setWildSpeedLevelAccordingToOthers();

labelSumWildSB.Text = "≤" + Extraction.E.levelWildFromTorporRange[1].ToString();
labelSumDomSB.Text = (Extraction.E.levelDomFromTorporAndTotalRange[0] != Extraction.E.levelDomFromTorporAndTotalRange[1] ? Extraction.E.levelDomFromTorporAndTotalRange[0].ToString() + "-" : "") + Extraction.E.levelDomFromTorporAndTotalRange[1].ToString();
showSumOfChosenLevels();
showStatsInOverlay();

setActiveStat(activeStatKeeper);

if (!Extraction.E.postTamed)
{
labelFootnote.Text = "*Creature is not yet tamed and may get better values then.";
Expand Down Expand Up @@ -458,7 +461,7 @@ private void setUniqueTE()
{
labelTE.Text = "Extracted: " + Math.Round(100 * te, 1) + " %";
if (Extraction.E.postTamed && !checkBoxAlreadyBred.Checked)
labelTE.Text += " (wildlevel: " + Math.Ceiling(Math.Round((Extraction.E.trueTorporLevel(te) + 1) / (1 + te / 2), 6)) + ")";
labelTE.Text += " (wildlevel: " + Math.Ceiling(Math.Round((statIOs[7].LevelWild + 1) / (1 + te / 2), 6)) + ")";
labelTE.BackColor = System.Drawing.Color.Transparent;
}
else
Expand Down Expand Up @@ -691,12 +694,12 @@ private void setWildSpeedLevelAccordingToOthers()
//int notDeterminedLevels = (int)numericUpDownLevel.Value - 1 - (Values.V.speciesNames[sE] == "Plesiosaur" ? 34 : 0);
int notDeterminedLevels = statIOs[7].LevelWild;
bool unique = true;
for (int s = 0; s < 7; s++)
for (int s = 0; s < 6; s++)
{
if (activeStats[s])
{
//notDeterminedLevels -= statIOs[s].LevelDom;
notDeterminedLevels -= (s == 6 ? 0 : statIOs[s].LevelWild);
notDeterminedLevels -= statIOs[s].LevelWild;
}
else { unique = false; break; }
}
Expand Down

0 comments on commit 384caa2

Please sign in to comment.