Skip to content

Commit

Permalink
consider not yet mature creatures bred
Browse files Browse the repository at this point in the history
  • Loading branch information
cadon committed Dec 26, 2023
1 parent c9e8b90 commit 61b8add
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ARKBreedingStats/importExported/ImportExported.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static CreatureValues ImportExportedCreature(string filePath)
break;
case "DinoClass":
// despite the property is called DinoClass it contains the complete blueprint-path
cv.Species = Values.V.SpeciesByBlueprint(text,true);
cv.Species = Values.V.SpeciesByBlueprint(text, true);
if (cv.Species == null)
cv.speciesBlueprint = text; // species is unknown, check the needed mods later
break;
Expand Down Expand Up @@ -144,7 +144,10 @@ public static CreatureValues ImportExportedCreature(string filePath)
break;
case "BabyAge":
if (cv.Species?.breeding != null)
{
cv.growingUntil = DateTime.Now.AddSeconds((int)(cv.Species.breeding.maturationTimeAdjusted * (1 - value)));
if (value < 1) cv.isBred = true;
}
break;
case "CharacterLevel":
cv.level = (int)value;
Expand Down

0 comments on commit 61b8add

Please sign in to comment.