vegapnk / RJW-Genes

Rimworld Biotech Genes related to RJW
MIT License
31 stars 38 forks source link

[Compat] Sperm Displacement Gene not working with rjw menstruation #201

Open Parciwal opened 1 week ago

Parciwal commented 1 week ago

Description Once the egg is fertilized, the parent can't be changed through the gene anymore. If pawn with the "sperm displacement" gene tries to overwrite the pregnancy, the parent does not change.

Put any error message here too.

To Reproduce Steps to reproduce the behavior:

  1. install both this and rjw menstruation
  2. get three pawns, two that can impregnate a female, one of them with the sperm displacement gene, one without. One female.
  3. Get the pawn without the sperm displacement gene to fertilize the egg and wait until it's implanted (to see the father)
  4. Get the pawn with the sperm displacement gene to try and change the father.
  5. Father stays the same

Hugslog / ModList

rjw rjw-genes rjw-menstruation

Additional context RJW Menstruation completely changes the way pregnancies work and (from what I've seen in the game and from what I understand of the code, but I could just have been getting very unlucky even though both have over 100% fertility), it is not compatible with the way the parent is changed.

vegapnk commented 3 days ago

Yeah, it makes some sense. So the way the current sperm displacement works code wise is to look for the RW Pregnancy, and if there is any, terminate it, start a new one with the new father, and set it to the progress of the old one. I am not sure if this can just be duplicated for menstruation but I guess.