Rename ProcessIdenticalZygote to ProcessIdenticalSibling

This commit is contained in:
lutepickle 2022-07-27 14:32:50 -07:00
parent aab02f07fb
commit 5b6093fd86
2 changed files with 5 additions and 3 deletions

View File

@ -232,7 +232,7 @@ namespace RJW_Menstruation
}
// Baby is the sibling to be changed, original is the first of the set and the one to copy to the rest.
public virtual void ProcessIdenticalZygote(Pawn baby, Pawn original)
public virtual void ProcessIdenticalSibling(Pawn baby, Pawn original)
{
// They'll be the same pawnkind, which lets us make a lot of useful assumptions
// However, some RNG might still be involved in genital generation (e.g. futas), so the easiest method is to clear out and re-generate
@ -247,7 +247,7 @@ namespace RJW_Menstruation
base.PostBirth(mother, father, baby);
if (zygotes.NullOrEmpty() || !zygotes.TryGetValue(baby, out Pawn original) || baby == original) return;
// Has to happen on birth since RJW redoes the genitals at birth
ProcessIdenticalZygote(baby, original);
ProcessIdenticalSibling(baby, original);
}
// From RJW's trait code

View File

@ -1,6 +1,8 @@
Version 1.0.7.1
- Identical twins conceived after this update will have identical sex part sizes, properties, etc. upon being born.
- Race modders: The function Hediff_MultiplePregnancy.ProcessIdenticalZygote is called on every identical sibling when born except the first. Feel free to patch race-specific things into it.
- For modders:
- The function Hediff_MultiplePregnancy.ProcessIdenticalSibling is called on every identical sibling when born except the first. Any race-specfic genetic properties can be patched in there.
- Any mods that add comps to RJW parts should copy what they need to on a postfix to Hediff_MultiplePregnancy.CopyBodyPartProperties, e.g. how menstruation itself does in that function.
Version 1.0.7.0
- Not save compatible with previous versions. Expect glitches and many red errors if you try. However, things should stabilize eventually.