Commit Graph

124 Commits

Author SHA1 Message Date
lutepickle cca7676bc0 Have ovulation and implant chance cache be nullable 2024-03-13 08:10:50 -07:00
lutepickle ba8801370f Have TotalFertCum account for destroyed pawns and animals 2024-03-13 08:03:02 -07:00
lutepickle f580d3232b Have breeder pawns boost implant chance for non-Biotech 2024-03-05 19:14:28 -08:00
lutepickle c6e4d81a20 Don't fertilize from destroyed pawns 2024-02-28 19:48:52 -08:00
lutepickle 1cdb12fd3a Replace some uses of Rand.Range with Utility.VariationRange 2024-02-27 21:56:59 -08:00
lutepickle ebb486179b Reformat RandomOvulationChance 2024-02-16 20:47:59 -08:00
lutepickle f79050483d Remove the originsize system. Nobody used it 2024-02-16 20:24:10 -08:00
lutepickle 836d3d69c8 Let CalculatedImpactChance return early to avoid unnecessarily hitting OvulationChance 2024-02-12 22:19:10 -08:00
lutepickle 82dea0f425 Always attempt to ovulate at least one egg 2024-02-11 07:30:25 -08:00
lutepickle 02b0045fb3 Some input sanitization for the egg life span and ovulation genes 2024-02-08 21:33:39 -08:00
lutepickle fcbc19825e Move gene properties and cycle disabled genes to ModExtensions 2024-02-08 20:30:49 -08:00
lutepickle cb8267bf0f Let a pawn be randomly initialized into their ovulatory stage 2024-02-04 19:49:20 -08:00
lutepickle d74d488d6e Reset the ovulation power cache when genes change 2024-01-12 05:21:24 -08:00
lutepickle 9e671b4a24 Move average litter size to its own function. Have the biosculptor account for average litter size 2024-01-08 14:23:03 -08:00
lutepickle 546d121cde Redo the quirk API to make the rest of the code a bit cleaner 2024-01-08 08:13:52 -08:00
lutepickle 1a8189d9af Fix passive absorption not making absorbers dirty. Add absorbed amount to detailed description. Move passive absorption rate to XML 2023-12-26 16:02:49 -08:00
lutepickle 0dd3507010 Simplify CalculatedImplantChance a little 2023-12-05 16:32:48 -08:00
lutepickle cb8d824a2c Simplify the too young/old check in the ovulation calculation a little 2023-12-05 16:20:36 -08:00
lutepickle c254ce039a Do the age adjustment for ovulation in FertilityByGenderAge instead of trying to patch RJW's StatWorker 2023-12-05 16:08:55 -08:00
lutepickle dc33024d42 Move the hash interval to the start of CompPostTick, since ShouldSimulate is getting heavy 2023-12-04 11:44:45 -08:00
lutepickle cb5522b0c3 Add interspecies factor to implantation failure debug message 2023-11-11 21:20:31 -08:00
lutepickle 68c4081f11 Have PregnantAction use get_Pregnancy instead since the same logic is in there 2023-10-29 20:45:29 -07:00
lutepickle d0eb2e8383 Move the stage time advancement into its own function 2023-10-29 18:11:51 -07:00
lutepickle a6afe494d8 Add an implanted egg to deadeggs even if getting the comp fails 2023-10-29 16:23:01 -07:00
lutepickle a8af20d024 Make Implant adding to biotech pregnancy use the casted Hediff_Pregnant 2023-10-29 16:21:27 -07:00
lutepickle b07d12b8f8 Remove StayCurrentStage and StayCurrentStageConst, as they don't do anything anymore 2023-10-28 20:09:59 -07:00
lutepickle 0a24b5556f Refactor InfertileAction 2023-10-28 17:19:09 -07:00
lutepickle 441ee1de48 Refactor GoNextStage to directly take a stage time 2023-10-28 10:43:23 -07:00
lutepickle f2a599ab08 Fix typos in function names 2023-10-27 06:56:27 -07:00
lutepickle db42fa0234 Optimize Notify_UpdatedGenes 2023-10-26 23:01:38 -07:00
lutepickle e8710149e5 Refactor the egg removing logic to make it a bit clearer 2023-10-23 09:57:52 -07:00
lutepickle 1ce69571f0 Refactor adding eggs to existing pregnancy, fix implanting eggs in a non-biotech pregnancy when set to biotech (e.g. animals) 2023-10-22 16:37:50 -07:00
lutepickle f08ff58b64 Split animal cycle check into generic ShouldCycle function, exclude egglaying races from cycling 2023-10-11 08:06:31 -07:00
lutepickle d5f2954aed Clarify ImplantChance: it's before the implant configuration setting 2023-09-06 12:16:43 -07:00
lutepickle 76eec3852a Use explicit types in a few places 2023-09-05 10:46:24 -07:00
lutepickle 8cdb00a8c2 Only give the littersizecurve ovulation warning once per pawn 2023-08-19 18:26:54 -07:00
lutepickle 690e61916c Ensure that bleeding ends right away if the pawn gains the no bleeding gene 2023-08-19 18:24:05 -07:00
lutepickle caccc36fbf Remove redundant debug check 2023-08-10 20:22:32 -07:00
lutepickle 9cdb887bdd If implant errors, see if there's a loose pregnancy to take. 2023-07-31 05:44:18 -07:00
lutepickle 0c38513084 Eliminate egg if there is an error implanting it. 2023-07-29 14:42:46 -07:00
lutepickle 214ab3ae88 Have the default constructor for eggs use the human lifespan 2023-07-28 09:50:13 -07:00
lutepickle eb0d40ea1a Check for null pawn cum when merging cum 2023-07-27 14:44:14 -07:00
lutepickle 39fe33acc6 Initialize after loading a pawn. This should cut down on uninitialized errors. 2023-07-03 09:08:38 -07:00
lutepickle f5a302c272 Rename SimulationsPerHour to HoursBetweenSimulations. Also fix climacteric/menopause sex need calculation 2023-06-22 21:56:26 -07:00
lutepickle 933c3cf626 Account for simulations per hour when increasing sex need in AfterSimulator 2023-06-17 11:21:34 -07:00
lutepickle aba8ea1693 Introduce TickIntervalMaximum constant 2023-05-19 20:07:10 -07:00
lutepickle f40a5f2246 Little refactor in GetCumsInfo 2023-05-19 19:45:27 -07:00
lutepickle ff22e534d1 Encapsulate calculatingOvulationChance 2023-05-18 22:37:31 -07:00
lutepickle 924dc73024 Apply cramps to the comp's parent part instead of going through RJW to find it 2023-05-14 19:25:12 -07:00
lutepickle d67592e245 Replace Position with PositionHeld and Map with MapHeld 2023-05-09 09:00:33 -07:00