mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Remove obsolete melanin references
This commit is contained in:
		
							parent
							
								
									21144b0005
								
							
						
					
					
						commit
						889e8f90f2
					
				
					 1 changed files with 3 additions and 25 deletions
				
			
		| 
						 | 
				
			
			@ -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++;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue