mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Add the new AllVaginas to a few more places
This commit is contained in:
		
							parent
							
								
									ef115b03fd
								
							
						
					
					
						commit
						4f72320696
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -220,7 +220,7 @@ namespace RJW_Menstruation
 | 
			
		|||
 | 
			
		||||
        public static Texture2D GetGenitalIcon(this Pawn pawn, HediffComp_Menstruation comp, bool drawOrigin = false)
 | 
			
		||||
        {
 | 
			
		||||
            Hediff hediff = Genital_Helper.get_PartsHediffList(pawn, Genital_Helper.get_genitalsBPR(pawn))?.Find((Hediff h) => h.def.defName.ToLower().Contains("vagina"));
 | 
			
		||||
            Hediff hediff = comp?.parent;
 | 
			
		||||
            if (hediff == null) return ContentFinder<Texture2D>.Get("Genitals/Vagina00", true);
 | 
			
		||||
            //HediffComp_Menstruation comp = hediff.GetMenstruationComp();
 | 
			
		||||
            string icon;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -328,7 +328,7 @@ namespace RJW_Menstruation
 | 
			
		|||
 | 
			
		||||
        public static string GetVaginaLabel(this Pawn pawn)
 | 
			
		||||
        {
 | 
			
		||||
            Hediff hediff = Genital_Helper.get_PartsHediffList(pawn, Genital_Helper.get_genitalsBPR(pawn)).Find((Hediff h) => h.def.defName.ToLower().Contains("vagina"));
 | 
			
		||||
            Hediff hediff = Genital_Helper.get_PartsHediffList(pawn, Genital_Helper.get_genitalsBPR(pawn)).Find(h => VariousDefOf.AllVaginas.Contains(h.def));
 | 
			
		||||
            return hediff.LabelBase.CapitalizeFirst() + "\n(" + hediff.LabelInBrackets + ")" + "\n" + xxx.CountOfSex.LabelCap.CapitalizeFirst() + ": " + pawn.records.GetAsInt(xxx.CountOfSex);
 | 
			
		||||
        }
 | 
			
		||||
        public static string GetAnusLabel(this Pawn pawn)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue