mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Little cleanup
This commit is contained in:
		
							parent
							
								
									7e5b2000da
								
							
						
					
					
						commit
						d483e22ac2
					
				
					 1 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
					@ -141,7 +141,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
            else if (gestationProgress < 0.8f) icon = fetustex + "04";
 | 
					            else if (gestationProgress < 0.8f) icon = fetustex + "04";
 | 
				
			||||||
            else icon = fetustex + "05";
 | 
					            else icon = fetustex + "05";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return TryGetTwinsIcon(icon, babycount) ?? ContentFinder<Texture2D>.Get((icon), true);
 | 
					            return TryGetTwinsIcon(icon, babycount) ?? ContentFinder<Texture2D>.Get(icon, true);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public static Texture2D TryGetTwinsIcon(string path, int babycount)
 | 
					        public static Texture2D TryGetTwinsIcon(string path, int babycount)
 | 
				
			||||||
| 
						 | 
					@ -160,7 +160,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            List<Hediff_InsectEgg> insectEggs = new List<Hediff_InsectEgg>();
 | 
					            List<Hediff_InsectEgg> insectEggs = new List<Hediff_InsectEgg>();
 | 
				
			||||||
            comp.Pawn.health.hediffSet.GetHediffs(ref insectEggs);
 | 
					            comp.Pawn.health.hediffSet.GetHediffs(ref insectEggs);
 | 
				
			||||||
            if (!insectEggs.NullOrEmpty() && insectEggs.Sum(hediff => hediff.eggssize) > 1.0f) return null; // same logic as "Stuffed" in GetInsectEggedIcon
 | 
					            if (insectEggs?.Sum(hediff => hediff.eggssize) > 1.0f) return null; // same logic as "Stuffed" in GetInsectEggedIcon
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            string icon = comp.WombTex;
 | 
					            string icon = comp.WombTex;
 | 
				
			||||||
            float cumpercent = comp.TotalCumPercent;
 | 
					            float cumpercent = comp.TotalCumPercent;
 | 
				
			||||||
| 
						 | 
					@ -183,7 +183,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
            else if (cumpercent < 0.89f) icon += "_Cum_15";
 | 
					            else if (cumpercent < 0.89f) icon += "_Cum_15";
 | 
				
			||||||
            else if (cumpercent < 0.95f) icon += "_Cum_16";
 | 
					            else if (cumpercent < 0.95f) icon += "_Cum_16";
 | 
				
			||||||
            else icon += "_Cum_17";
 | 
					            else icon += "_Cum_17";
 | 
				
			||||||
            Texture2D cumtex = ContentFinder<Texture2D>.Get((icon), true);
 | 
					            Texture2D cumtex = ContentFinder<Texture2D>.Get(icon, true);
 | 
				
			||||||
            return cumtex;
 | 
					            return cumtex;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        public static Texture2D GetInsectEggedIcon(this HediffComp_Menstruation comp)
 | 
					        public static Texture2D GetInsectEggedIcon(this HediffComp_Menstruation comp)
 | 
				
			||||||
| 
						 | 
					@ -331,14 +331,14 @@ namespace RJW_Menstruation
 | 
				
			||||||
            else if (severity < 1.01f) icon += "10";   //cavernous
 | 
					            else if (severity < 1.01f) icon += "10";   //cavernous
 | 
				
			||||||
            else icon += "11";                                //abyssal
 | 
					            else icon += "11";                                //abyssal
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return ContentFinder<Texture2D>.Get((icon), true);
 | 
					            return ContentFinder<Texture2D>.Get(icon, true);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public static Texture2D GetAnalIcon(this Pawn pawn, bool drawOrigin = false)
 | 
					        public static Texture2D GetAnalIcon(this Pawn pawn, bool drawOrigin = false)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Hediff hediff = pawn.health.hediffSet.hediffs.FirstOrDefault(h => VariousDefOf.AllAnuses.Contains(h.def)) ??
 | 
					            Hediff hediff = pawn.health.hediffSet.hediffs.FirstOrDefault(h => VariousDefOf.AllAnuses.Contains(h.def)) ??
 | 
				
			||||||
                pawn.health.hediffSet.hediffs.FirstOrDefault(h => h.def.defName.ToLower().Contains("anus"));
 | 
					                pawn.health.hediffSet.hediffs.FirstOrDefault(h => h.def.defName.ToLower().Contains("anus"));
 | 
				
			||||||
            if (hediff == null) return ContentFinder<Texture2D>.Get(("Genitals/Anal00"), true);
 | 
					            if (hediff == null) return ContentFinder<Texture2D>.Get("Genitals/Anal00", true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            string icon;
 | 
					            string icon;
 | 
				
			||||||
            float severity;
 | 
					            float severity;
 | 
				
			||||||
| 
						 | 
					@ -362,7 +362,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
            else if (severity < 1.01f) icon += "04";   //cavernous
 | 
					            else if (severity < 1.01f) icon += "04";   //cavernous
 | 
				
			||||||
            else icon += "05";                                //abyssal
 | 
					            else icon += "05";                                //abyssal
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return ContentFinder<Texture2D>.Get((icon), true);
 | 
					            return ContentFinder<Texture2D>.Get(icon, true);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public static float GestationHours(this Hediff hediff)
 | 
					        public static float GestationHours(this Hediff hediff)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue