Handle some properties for enzygotic siblings without a story
This commit is contained in:
parent
511e5286dc
commit
9ae8f3966d
Binary file not shown.
|
@ -429,30 +429,34 @@ namespace RJW_Menstruation
|
||||||
if (baby == null) break;
|
if (baby == null) break;
|
||||||
if (division > 1)
|
if (division > 1)
|
||||||
{
|
{
|
||||||
if (i == 0) firstbaby = baby;
|
|
||||||
else enzygoticSiblings?.Add(baby, firstbaby);
|
|
||||||
|
|
||||||
if (baby.story == null) continue;
|
|
||||||
|
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
|
firstbaby = baby;
|
||||||
request.FixedGender = baby.gender;
|
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
|
else
|
||||||
{
|
{
|
||||||
baby.story.hairDef = firstbaby.story.hairDef;
|
enzygoticSiblings?.Add(baby, firstbaby);
|
||||||
baby.story.hairColor = firstbaby.story.hairColor;
|
|
||||||
baby.story.bodyType = firstbaby.story.bodyType;
|
if (baby.story != null)
|
||||||
baby.story.crownType = firstbaby.story.crownType;
|
{
|
||||||
baby.story.SetMemberValue("headGraphicPath", firstheadpath);
|
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())
|
if (baby.IsHAR())
|
||||||
HARCompatibility.CopyHARProperties(baby, firstbaby);
|
HARCompatibility.CopyHARProperties(baby, firstbaby);
|
||||||
|
|
Loading…
Reference in New Issue