mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Trying to remove Sex-Change Thoughts for Babies, fixes #103
This commit is contained in:
parent
e13c00ce01
commit
70ffef13c8
4 changed files with 22 additions and 1 deletions
|
@ -101,5 +101,20 @@ namespace RJW_Genes
|
|||
pawn.health.RemoveHediff(hediff);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This check helps to get babies after birth, if the pawn was born with the gene it does not need to have thoughts.
|
||||
/// There are very different ways to do the life stages, and there are also HAR people still around,
|
||||
/// so instead of checking for stages I intentionally check for the biological ticks to be very low (that they can only exist basically if they are born right before).
|
||||
/// Issue is tracked in #103.
|
||||
/// </summary>
|
||||
/// <param name="pawn"></param>
|
||||
public static void RemoveSexChangeThoughtsIfTooYoung(Pawn pawn)
|
||||
{
|
||||
if (pawn.ageTracker.AgeBiologicalTicks < 1000)
|
||||
{
|
||||
GenderUtility.RemoveAllSexChangeThoughts(pawn);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue