mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Small refactor in the estrus PostAdd
This commit is contained in:
		
							parent
							
								
									334c62b59f
								
							
						
					
					
						commit
						c7bb6bde18
					
				
					 3 changed files with 3 additions and 2 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -204,7 +204,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
                if (comp?.HasBaby ?? false)
 | 
					                if (comp?.HasBaby ?? false)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    RitualOutcomePossibility thisOutcome = outcome;
 | 
					                    RitualOutcomePossibility thisOutcome = outcome;
 | 
				
			||||||
                    Precept_Ritual precept_Ritual = (Precept_Ritual)comp.Pawn.Ideo.GetPrecept(PreceptDefOf.ChildBirth);
 | 
					                    Precept_Ritual precept_Ritual = (Precept_Ritual)comp.Pawn.Ideo.GetPrecept(RimWorld.PreceptDefOf.ChildBirth);
 | 
				
			||||||
                    float birthQuality = PregnancyUtility.GetBirthQualityFor(mother);
 | 
					                    float birthQuality = PregnancyUtility.GetBirthQualityFor(mother);
 | 
				
			||||||
                    do
 | 
					                    do
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,7 +30,8 @@ namespace RJW_Menstruation
 | 
				
			||||||
            base.PostAdd(dinfo);
 | 
					            base.PostAdd(dinfo);
 | 
				
			||||||
            if (IsVisible)
 | 
					            if (IsVisible)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                List<Hediff> removals = pawn.health.hediffSet.hediffs.Where(hediff => hediff.def == VariousDefOf.Hediff_Estrus_Concealed).ToList();
 | 
					                List <Hediff> removals = new List <Hediff>();
 | 
				
			||||||
 | 
					                pawn.health.hediffSet.GetHediffs(ref removals, hediff => hediff.def == VariousDefOf.Hediff_Estrus_Concealed);
 | 
				
			||||||
                foreach (Hediff concealedEstrus in removals)
 | 
					                foreach (Hediff concealedEstrus in removals)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    pawn.health.RemoveHediff(concealedEstrus);
 | 
					                    pawn.health.RemoveHediff(concealedEstrus);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue