// Token: 0x0600082A RID: 2090 RVA: 0x00036A7C File Offset: 0x00034C7C
private void CombineTrait(Character fetus, Character mother, Character father)
{
SeqList<Trait> traitList = mother.GetTraitList();
SeqList<Trait> traitList2 = father.GetTraitList();
SeqList<Trait> traitList3 = fetus.GetTraitList();
List<Trait> list = new List<Trait>();
foreach (Trait trait in traitList)
{
if (!GameManager.<CombineTrait>g__TraitContains|478_1(list, trait))
{
list.Add(trait.Clone());
}
}
foreach (Trait trait2 in traitList2)
{
if (!GameManager.<CombineTrait>g__TraitContains|478_1(list, trait2))
{
list.Add(trait2.Clone());
}
}
Ut.ShuffleList<Trait>(list);
int num = Ut.GetRandomIndexFromChanceList(new float[]
{
40f,
30f,
15f,
10f,
5f
}) + 1;
traitList3.Clear();
int num2 = 0;
while (num2 < num && num2 < list.Count)
{
traitList3.Add(list[num2]);
num2++;
}
traitList3.Sort((Trait a, Trait b) => string.Compare(SeqLocalization.Localize(a.Name), SeqLocalization.Localize(b.Name), StringComparison.CurrentCulture));
}