mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Let a baby take a last name from any father with a last name, even if not human
This commit is contained in:
parent
8f497764cb
commit
1573350c66
1 changed files with 1 additions and 2 deletions
|
@ -68,7 +68,6 @@ namespace RJW_Menstruation
|
||||||
Scribe_Collections.Look(ref enzygoticSiblings, "enzygoticSiblings", keyLookMode: LookMode.Reference, valueLookMode: LookMode.Reference);
|
Scribe_Collections.Look(ref enzygoticSiblings, "enzygoticSiblings", keyLookMode: LookMode.Reference, valueLookMode: LookMode.Reference);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void AddNewBaby(Pawn mother, Pawn father)
|
public void AddNewBaby(Pawn mother, Pawn father)
|
||||||
{
|
{
|
||||||
if (babies == null) babies = new List<Pawn>();
|
if (babies == null) babies = new List<Pawn>();
|
||||||
|
@ -78,7 +77,7 @@ namespace RJW_Menstruation
|
||||||
kind: babyPawnKind,
|
kind: babyPawnKind,
|
||||||
faction: mother.Faction,
|
faction: mother.Faction,
|
||||||
allowDowned: true,
|
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,
|
forceNoIdeo: true,
|
||||||
forcedEndogenes: PregnancyUtility.GetInheritedGenes(father, mother),
|
forcedEndogenes: PregnancyUtility.GetInheritedGenes(father, mother),
|
||||||
forcedXenotype: XenotypeDefOf.Baseliner,
|
forcedXenotype: XenotypeDefOf.Baseliner,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue