Let a baby take a last name from any father with a last name, even if not human

This commit is contained in:
lutepickle 2024-05-05 11:34:01 -07:00
parent 8f497764cb
commit 1573350c66
1 changed files with 1 additions and 2 deletions

View File

@ -68,7 +68,6 @@ namespace RJW_Menstruation
Scribe_Collections.Look(ref enzygoticSiblings, "enzygoticSiblings", keyLookMode: LookMode.Reference, valueLookMode: LookMode.Reference);
}
public void AddNewBaby(Pawn mother, Pawn father)
{
if (babies == null) babies = new List<Pawn>();
@ -78,7 +77,7 @@ namespace RJW_Menstruation
kind: babyPawnKind,
faction: mother.Faction,
allowDowned: true,
fixedLastName: (string)RandomLastName.Invoke(null, new object[] { mother, mother, xxx.is_human(father) ? father : null }),
fixedLastName: (string)RandomLastName.Invoke(null, new object[] { mother, mother, (father?.Name is NameTriple) ? father : null }),
forceNoIdeo: true,
forcedEndogenes: PregnancyUtility.GetInheritedGenes(father, mother),
forcedXenotype: XenotypeDefOf.Baseliner,