mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Rimworld doesn't permit direct-adding a sibling relation, so remove all that code
This commit is contained in:
parent
54e41b7aa4
commit
947c61c8a2
1 changed files with 4 additions and 19 deletions
|
@ -52,16 +52,15 @@ namespace RJW_Menstruation
|
|||
Initialize(pawn, father);
|
||||
}
|
||||
|
||||
List<Pawn> siblings = new List<Pawn>();
|
||||
foreach (Pawn baby in babies)
|
||||
{
|
||||
if (xxx.is_animal(baby))
|
||||
{
|
||||
BestialBirth(baby, siblings);
|
||||
BestialBirth(baby);
|
||||
}
|
||||
else
|
||||
{
|
||||
HumanlikeBirth(baby, siblings);
|
||||
HumanlikeBirth(baby);
|
||||
}
|
||||
|
||||
baby.ageTracker.AgeChronologicalTicks = 0;
|
||||
|
@ -112,7 +111,7 @@ namespace RJW_Menstruation
|
|||
return res;
|
||||
}
|
||||
|
||||
private void HumanlikeBirth(Pawn baby, List<Pawn> siblings)
|
||||
private void HumanlikeBirth(Pawn baby)
|
||||
{
|
||||
Pawn mother = pawn; Pawn father = Utility.GetFather(baby, pawn);
|
||||
//backup melanin, LastName for when baby reset by other mod on spawn/backstorychange
|
||||
|
@ -150,19 +149,13 @@ namespace RJW_Menstruation
|
|||
baby.guest.SetGuestStatus(Faction.OfPlayer, GuestStatus.Prisoner);
|
||||
}
|
||||
|
||||
foreach (Pawn sibling in siblings)
|
||||
{
|
||||
baby.relations.AddDirectRelation(PawnRelationDefOf.Sibling, sibling);
|
||||
}
|
||||
siblings.Add(baby);
|
||||
|
||||
if (xxx.is_human(mother)) TaleRecorder.RecordTale(VariousDefOf.GaveBirth, new object[] { mother, baby });
|
||||
|
||||
PostBirth(mother, father, baby);
|
||||
}
|
||||
|
||||
|
||||
private void BestialBirth(Pawn baby, List<Pawn> siblings)
|
||||
private void BestialBirth(Pawn baby)
|
||||
{
|
||||
Pawn mother = pawn; Pawn father = Utility.GetFather(baby, pawn);
|
||||
//backup melanin, LastName for when baby reset by other mod on spawn/backstorychange
|
||||
|
@ -182,14 +175,6 @@ namespace RJW_Menstruation
|
|||
baby.SetFaction(mother.Faction);
|
||||
}
|
||||
|
||||
if (!RJWSettings.Disable_bestiality_pregnancy_relations)
|
||||
{
|
||||
foreach (Pawn sibling in siblings)
|
||||
{
|
||||
baby.relations.AddDirectRelation(PawnRelationDefOf.Sibling, sibling);
|
||||
}
|
||||
siblings.Add(baby);
|
||||
}
|
||||
Train(baby, mother);
|
||||
|
||||
PostBirth(mother, father, baby);
|
||||
|
|
Loading…
Reference in a new issue