mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Handle some properties for enzygotic siblings without a story
This commit is contained in:
parent
511e5286dc
commit
9ae8f3966d
2 changed files with 21 additions and 17 deletions
Binary file not shown.
|
@ -429,30 +429,34 @@ namespace RJW_Menstruation
|
|||
if (baby == null) break;
|
||||
if (division > 1)
|
||||
{
|
||||
if (i == 0) firstbaby = baby;
|
||||
else enzygoticSiblings?.Add(baby, firstbaby);
|
||||
|
||||
if (baby.story == null) continue;
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
firstbaby = baby;
|
||||
request.FixedGender = baby.gender;
|
||||
firstheadpath = (string)baby.story.GetMemberValue("headGraphicPath");
|
||||
if (firstheadpath == null)
|
||||
{
|
||||
Graphic_Multi head = GraphicDatabaseHeadRecords.GetHeadRandom(baby.gender, baby.story.SkinColor, baby.story.crownType, true);
|
||||
if (head != null) baby.story.SetMemberValue("headGraphicPath", head.GraphicPath);
|
||||
firstheadpath = (string)baby.story.GetMemberValue("headGraphicPath");
|
||||
}
|
||||
|
||||
if (baby.story != null)
|
||||
{
|
||||
firstheadpath = (string)baby.story.GetMemberValue("headGraphicPath");
|
||||
if (firstheadpath == null)
|
||||
{
|
||||
Graphic_Multi head = GraphicDatabaseHeadRecords.GetHeadRandom(baby.gender, baby.story.SkinColor, baby.story.crownType, true);
|
||||
if (head != null) baby.story.SetMemberValue("headGraphicPath", head.GraphicPath);
|
||||
firstheadpath = (string)baby.story.GetMemberValue("headGraphicPath");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
baby.story.hairDef = firstbaby.story.hairDef;
|
||||
baby.story.hairColor = firstbaby.story.hairColor;
|
||||
baby.story.bodyType = firstbaby.story.bodyType;
|
||||
baby.story.crownType = firstbaby.story.crownType;
|
||||
baby.story.SetMemberValue("headGraphicPath", firstheadpath);
|
||||
enzygoticSiblings?.Add(baby, firstbaby);
|
||||
|
||||
if (baby.story != null)
|
||||
{
|
||||
baby.story.hairDef = firstbaby.story.hairDef;
|
||||
baby.story.hairColor = firstbaby.story.hairColor;
|
||||
baby.story.bodyType = firstbaby.story.bodyType;
|
||||
baby.story.crownType = firstbaby.story.crownType;
|
||||
baby.story.SetMemberValue("headGraphicPath", firstheadpath);
|
||||
}
|
||||
|
||||
if (baby.IsHAR())
|
||||
HARCompatibility.CopyHARProperties(baby, firstbaby);
|
||||
|
|
Loading…
Reference in a new issue