Commit graph

272 commits

Author SHA1 Message Date
lutepickle
06ccb04a55 Clean up a bunch of unnecessary using statements 2024-03-04 18:25:44 -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
7e407a1cf9 Don't call Notify_UpdatedGenes if the gene isn't menstruation-related 2024-02-27 14:58:20 -08:00
lutepickle
32800a3499 Null check for apparel tracker in DirtyEffect 2024-02-22 22:09:12 -08:00
lutepickle
ff95b8da39 It's safe and a bit quicker to unconditionally remove forced in CheckDirty 2024-02-17 15:37:14 -08:00
lutepickle
8306439576 Refactor allraces and allkinds 2024-02-16 22:03:03 -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
d483e22ac2 Little cleanup 2024-02-16 16:55:53 -08:00
lutepickle
836d3d69c8 Let CalculatedImpactChance return early to avoid unnecessarily hitting OvulationChance 2024-02-12 22:19:10 -08:00
lutepickle
50310988ca Be sure the periodic can go into anestrus if it initializes into ovulatory 2024-02-11 10:47:01 -08:00
lutepickle
82dea0f425 Always attempt to ovulate at least one egg 2024-02-11 07:30:25 -08:00
lutepickle
56b11069da Little refactor in GetBabyInfo and GetFatherInfo 2024-02-10 10:11:24 -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
7b00579969 Exclude Erin's Covyia egg genes from cycling 2024-02-08 16:00:13 -08:00
lutepickle
cb8267bf0f Let a pawn be randomly initialized into their ovulatory stage 2024-02-04 19:49:20 -08:00
lutepickle
2dda753ab9 Be sure CheckDirty updates the stats if the old absorber had stats and the new doesn't 2024-02-04 17:07:10 -08:00
lutepickle
d34509dfc9 Fix CheckDirty having an inverted lock test 2024-01-27 05:49:50 -08:00
lutepickle
9902c50d81 Don't let egglaying animals menstruate. 2024-01-22 11:12:49 -08:00
lutepickle
a29aaf50c1 Just let everyone use the menstruation genes 2024-01-20 14:51:20 -08:00
lutepickle
d74d488d6e Reset the ovulation power cache when genes change 2024-01-12 05:21:24 -08:00
lutepickle
8e9acaa8ca Little refactor in ShouldCycle 2024-01-09 10:26:28 -08:00
lutepickle
8e6c38045c Small refactor in ShouldCycle 2024-01-08 16:32:05 -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
40b23fc9c9 Do a bit of housekeeping when an absorber goes dirty 2024-01-01 19:59:40 -08:00
lutepickle
f410f6bc0f Don't let pawns without a cycle wear absorbers 2024-01-01 07:35:52 -08:00
lutepickle
a9879b0b1b Remove force wear from absorbers when they become dirty 2024-01-01 07:08:29 -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
3498caf3a2 Let <= 0 age fertility stay in the patches 2023-12-05 16:23:23 -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
8cc72acf36 Just delete the milk module instead of trying to make it build with the new milkable colonists mod 2023-12-05 16:11:14 -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
02a96b957a Refactor EggLayerGenes a little 2023-12-04 12:14:18 -08:00
lutepickle
32ba7bcef8 Add sapling birth from VE Phytokin to the egg laying genes list 2023-12-04 11:51:09 -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
0e708c6c89 Have the womb status button patched into the health tab instead of the hediff row. Modified version of code contributed by Fern. 2023-12-01 19:39:20 -08:00
lutepickle
c12f9dbc87 Don't cycle for egglaying genes (Alpha Genes and VE Saurid) 2023-11-29 09:10:19 -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
95bdf4ca73 Don't reset the timer on periodic ovulators until it's breeding season 2023-10-28 21:30:55 -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