mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Small refactor of MultiplePregnancy birth code
This commit is contained in:
parent
16d17e01d7
commit
b5bfec7498
1 changed files with 4 additions and 12 deletions
|
@ -87,14 +87,10 @@ namespace RJW_Menstruation
|
|||
PawnUtility.TrySpawnHatchedOrBornPawn(baby, mother);
|
||||
|
||||
Need_Sex sex_need = mother.needs?.TryGetNeed<Need_Sex>();
|
||||
if (mother.Faction != null && !(mother.Faction?.IsPlayer ?? false) && sex_need != null)
|
||||
{
|
||||
sex_need.CurLevel = 1.0f;
|
||||
}
|
||||
if (mother.Faction != null)
|
||||
{
|
||||
if (mother.Faction != baby.Faction)
|
||||
baby.SetFaction(mother.Faction);
|
||||
if (!mother.Faction.IsPlayer && sex_need != null) sex_need.CurLevel = 1.0f;
|
||||
if (mother.Faction != baby.Faction) baby.SetFaction(mother.Faction);
|
||||
}
|
||||
if (mother.IsSlaveOfColony)
|
||||
{
|
||||
|
@ -149,14 +145,10 @@ namespace RJW_Menstruation
|
|||
PawnUtility.TrySpawnHatchedOrBornPawn(baby, mother);
|
||||
|
||||
Need_Sex sex_need = mother.needs?.TryGetNeed<Need_Sex>();
|
||||
if (mother.Faction != null && !(mother.Faction?.IsPlayer ?? false) && sex_need != null)
|
||||
{
|
||||
sex_need.CurLevel = 1.0f;
|
||||
}
|
||||
if (mother.Faction != null)
|
||||
{
|
||||
if (mother.Faction != baby.Faction)
|
||||
baby.SetFaction(mother.Faction);
|
||||
if (!mother.Faction.IsPlayer && sex_need != null) sex_need.CurLevel = 1.0f;
|
||||
if (mother.Faction != baby.Faction) baby.SetFaction(mother.Faction);
|
||||
}
|
||||
|
||||
Train(baby, mother);
|
||||
|
|
Loading…
Reference in a new issue