Remove obsolete melanin references

This commit is contained in:
lutepickle 2022-11-16 19:19:18 -08:00
parent 21144b0005
commit 889e8f90f2

View file

@ -378,31 +378,10 @@ namespace RJW_Menstruation
public bool AddNewBaby(Pawn mother, Pawn father)
{
//float melanin;
string lastname;
if (xxx.is_human(mother))
{
if (xxx.is_human(father))
{
//melanin = ChildRelationUtility.GetRandomChildSkinColor(father.story?.melanin ?? 0f, mother.story?.melanin ?? 0f);
//melanin = (mother.story?.melanin ?? 0f + father.story?.melanin ?? 0f) / 2;
}
else
{
//melanin = mother.story?.melanin ?? 0f;
}
lastname = NameTriple.FromString(mother.Name.ToStringFull).Last;
}
else if (xxx.is_human(father))
{
//melanin = father.story?.melanin ?? 0f;
lastname = NameTriple.FromString(father.Name.ToStringFull).Last;
}
else
{
//melanin = Rand.Range(0, 1.0f);
lastname = "";
}
if (xxx.is_human(mother)) lastname = NameTriple.FromString(mother.Name.ToStringFull).Last;
else if (xxx.is_human(father)) lastname = NameTriple.FromString(father.Name.ToStringFull).Last;
else lastname = "";
PawnGenerationRequest request = new PawnGenerationRequest(
developmentalStages: DevelopmentalStage.Newborn,
@ -424,7 +403,6 @@ namespace RJW_Menstruation
int division = 1;
Pawn firstbaby = null;
//string firstheadpath = null;
int traitSeed = Rand.Int;
List<Trait> parentTraits = GetInheritableTraits(mother, father);
while (Rand.Chance(Configurations.EnzygoticTwinsChance) && division < Configurations.MaxEnzygoticTwins) division++;