mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Move Props.baseImplantationChanceFactor into ImplantFactor
This commit is contained in:
		
							parent
							
								
									3480366337
								
							
						
					
					
						commit
						5e4fadb4ba
					
				
					 2 changed files with 3 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -213,9 +213,7 @@ namespace RJW_Menstruation
 | 
			
		|||
            {
 | 
			
		||||
                float factor = 1.0f;
 | 
			
		||||
                if (parent.pawn.Has(Quirk.Breeder)) factor = 10.0f;
 | 
			
		||||
                //if (xxx.is_animal(parent.pawn)) factor *= RJWPregnancySettings.animal_impregnation_chance / 100f;
 | 
			
		||||
                //else factor *= RJWPregnancySettings.humanlike_impregnation_chance / 100f;
 | 
			
		||||
                return parent.pawn.health.capacities.GetLevel(xxx.reproduction) * factor;
 | 
			
		||||
                return parent.pawn.health.capacities.GetLevel(xxx.reproduction) * Props.baseImplantationChanceFactor * factor;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        public IEnumerable<string> GetCumsInfo
 | 
			
		||||
| 
						 | 
				
			
			@ -1099,7 +1097,7 @@ namespace RJW_Menstruation
 | 
			
		|||
                foreach (Egg egg in eggs)
 | 
			
		||||
                {
 | 
			
		||||
                    if (!egg.fertilized || egg.fertstage < 168) continue;
 | 
			
		||||
                    else if (Rand.Range(0.0f, 1.0f) <= Configurations.ImplantationChance * Props.baseImplantationChanceFactor * ImplantFactor * InterspeciesImplantFactor(egg.fertilizer))
 | 
			
		||||
                    else if (Rand.Range(0.0f, 1.0f) <= Configurations.ImplantationChance * ImplantFactor * InterspeciesImplantFactor(egg.fertilizer))
 | 
			
		||||
                    {
 | 
			
		||||
                        Hediff_BasePregnancy pregnancy = parent.pawn.GetRJWPregnancy();
 | 
			
		||||
                        if (pregnancy != null)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -426,7 +426,7 @@ namespace RJW_Menstruation
 | 
			
		|||
                lineRect.y += height;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            statvalue = Configurations.ImplantationChance * comp.Props.baseImplantationChanceFactor * comp.ImplantFactor;
 | 
			
		||||
            statvalue = Configurations.ImplantationChance * comp.ImplantFactor;
 | 
			
		||||
            float fertchance = comp.GetFertilityChance();
 | 
			
		||||
            FillableBarLabeled(lineRect, "  " + xxx.reproduction.LabelCap.CapitalizeFirst() + " " + statvalue.ToStringPercent(), statvalue, TextureCache.FertilityTexture, Texture2D.blackTexture, Translations.FertilityDesc(String.Format("{0:0.##}", fertchance*100)));
 | 
			
		||||
            Rect overayRect = new Rect(lineRect.x, lineRect.y, lineRect.width * Math.Min(1.0f, fertchance), lineRect.height);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue