Skip to content

Commit

Permalink
added support for baby-weight (can be used to determine growth and ti…
Browse files Browse the repository at this point in the history
…me until maturation, is also read by OCR). input for cooldown and growth changed to the format d:h:m. added support for mutation-counter.
  • Loading branch information
cadaei committed Jan 27, 2017
1 parent 600e731 commit f825ab1
Show file tree
Hide file tree
Showing 24 changed files with 550 additions and 237 deletions.
3 changes: 3 additions & 0 deletions ARKBreedingStats/ARKBreedingStats.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@
<Compile Include="TribesControl.Designer.cs">
<DependentUpon>TribesControl.cs</DependentUpon>
</Compile>
<Compile Include="uiControls\dhmInput.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Utils.cs" />
<Compile Include="Values.cs" />
<Compile Include="Win32Stuff.cs" />
Expand Down
2 changes: 1 addition & 1 deletion ARKBreedingStats/ArkOCR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ public float[] doOCR(out string OCRText, out string dinoName, out string ownerNa
else
dinoName = testStatName;
// remove prefixes Baby, Juvenile and Adolescent
r = new Regex("^(?:Baby|Juven[il]le|Adolescent) *");
r = new Regex("^(?:Ba[bh]y|Juven[il]le|Adolescent) *");
dinoName = r.Replace(dinoName, "");

// common OCR-mistake, 'I' is taken instead of 'i' in names
Expand Down
30 changes: 15 additions & 15 deletions ARKBreedingStats/BreedingPlan.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions ARKBreedingStats/BreedingPlan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void drawBestParents(BreedingMode breedingMode, bool updateBreedingData =
panelCombinations.Controls.Add(pc);
pcs.Add(pc);
pc = new PedigreeCreature(males[combinedTops[1][comboOrder[i]]], enabledColorRegions, comboOrder[i]);
pc.Location = new Point(350 + xS, 5 + 35 * row + yS);
pc.Location = new Point(397 + xS, 5 + 35 * row + yS);
pc.CreatureClicked += new PedigreeCreature.CreatureChangedEventHandler(CreatureClicked);
pc.CreatureEdit += new PedigreeCreature.CreatureEditEventHandler(CreatureEdit);
pc.BPRecalc += new BPRecalcEventHandler(BPRecalc);
Expand All @@ -212,7 +212,7 @@ public void drawBestParents(BreedingMode breedingMode, bool updateBreedingData =
pbs.Add(pb);
panelCombinations.Controls.Add(pb);
pb.Size = new Size(87, 15);
pb.Location = new Point(261 + xS, 19 + 35 * row + yS);
pb.Location = new Point(308 + xS, 19 + 35 * row + yS);
bm = new Bitmap(pb.Width, pb.Height);
g = Graphics.FromImage(bm);
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
Expand Down Expand Up @@ -405,6 +405,9 @@ private void setParents(int comboIndex)
crW.name = "Worst Possible";
pedigreeCreatureBest.totalLevelUnknown = totalLevelUnknown;
pedigreeCreatureWorst.totalLevelUnknown = totalLevelUnknown;
int mutationCounter = mother.mutationCounter + father.mutationCounter;
crB.mutationCounter = mutationCounter;
crW.mutationCounter = mutationCounter;
pedigreeCreatureBest.setCreature(crB);
pedigreeCreatureWorst.setCreature(crW);
labelProbabilityBest.Text = "Probability for this Best Possible outcome: " + Math.Round(100 * probabilityBest, 1).ToString() + "%";
Expand Down
1 change: 1 addition & 0 deletions ARKBreedingStats/Creature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class Creature : IEquatable<Creature>
public DateTime cooldownUntil = new DateTime(0);
public DateTime domesticatedAt = new DateTime(0);
public bool neutered = false;
public int mutationCounter;

public Creature()
{
Expand Down
Loading

0 comments on commit f825ab1

Please sign in to comment.