From 61b8add630dc7d47022d302d45a5fbcb7290a15f Mon Sep 17 00:00:00 2001 From: cadaei Date: Tue, 26 Dec 2023 12:05:19 +0100 Subject: [PATCH] consider not yet mature creatures bred --- ARKBreedingStats/importExported/ImportExported.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ARKBreedingStats/importExported/ImportExported.cs b/ARKBreedingStats/importExported/ImportExported.cs index db9dff44..9ec313be 100644 --- a/ARKBreedingStats/importExported/ImportExported.cs +++ b/ARKBreedingStats/importExported/ImportExported.cs @@ -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; @@ -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;