Skip to content

Commit

Permalink
fix for 100% imprinted creatures.
Browse files Browse the repository at this point in the history
  • Loading branch information
cadaei committed Jan 6, 2017
1 parent d05e49f commit 92d3ff6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ARKBreedingStats/Extraction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ public void extractLevels(int speciesI, int level, List<StatIO> statIOs, double
// needed to handle Torpor-bug
this.justTamed = justTamed;

if (Values.V.species[speciesI].breeding != null)
if (imprintingBonusRounded == 1)
imprintingBonus = 1;
else if (Values.V.species[speciesI].breeding != null)
imprintingBonus = Math.Round(imprintingBonusRounded * Values.V.species[speciesI].breeding.maturationTimeAdjusted / 14400) * 14400 / Values.V.species[speciesI].breeding.maturationTimeAdjusted;
else
imprintingBonus = 0;
Expand Down

0 comments on commit 92d3ff6

Please sign in to comment.