mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Originvagsize is unused and took up save file space, so get rid of it
This commit is contained in:
		
							parent
							
								
									52b0c3ab95
								
							
						
					
					
						commit
						d8fcb15f39
					
				
					 2 changed files with 2 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -118,7 +118,6 @@ namespace RJW_Menstruation
 | 
			
		|||
        protected int opcache = -1;
 | 
			
		||||
        protected HediffComp_Breast breastcache = null;
 | 
			
		||||
        protected float antisperm = 0.0f;
 | 
			
		||||
        protected float? originvagsize = null;
 | 
			
		||||
        protected Hediff_BasePregnancy pregnancy = null;
 | 
			
		||||
 | 
			
		||||
        public Hediff_BasePregnancy Pregnancy { get => pregnancy; set => pregnancy = value; }
 | 
			
		||||
| 
						 | 
				
			
			@ -447,22 +446,6 @@ namespace RJW_Menstruation
 | 
			
		|||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public float OriginVagSize
 | 
			
		||||
        {
 | 
			
		||||
            get
 | 
			
		||||
            {
 | 
			
		||||
                if (originvagsize == null)
 | 
			
		||||
                {
 | 
			
		||||
                    originvagsize = parent.Severity;
 | 
			
		||||
                }
 | 
			
		||||
                return originvagsize ?? 0.1f;
 | 
			
		||||
            }
 | 
			
		||||
            set
 | 
			
		||||
            {
 | 
			
		||||
                originvagsize = value;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public float CurStageIntervalHours
 | 
			
		||||
        {
 | 
			
		||||
            get
 | 
			
		||||
| 
						 | 
				
			
			@ -502,7 +485,6 @@ namespace RJW_Menstruation
 | 
			
		|||
            Scribe_Values.Look(ref ovarypower, "ovarypower", ovarypower, true);
 | 
			
		||||
            Scribe_Values.Look(ref eggstack, "eggstack", eggstack, true);
 | 
			
		||||
            Scribe_Values.Look(ref estrusflag, "estrusflag", estrusflag, true);
 | 
			
		||||
            Scribe_Values.Look(ref originvagsize, "originvagsize", originvagsize, true);
 | 
			
		||||
            Scribe_Values.Look(ref DoCleanWomb, "DoCleanWomb", DoCleanWomb, true);
 | 
			
		||||
            Scribe_References.Look(ref pregnancy, "pregnancy");
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -218,15 +218,13 @@ namespace RJW_Menstruation
 | 
			
		|||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        public static Texture2D GetGenitalIcon(this Pawn pawn, HediffComp_Menstruation comp, bool drawOrigin = false)
 | 
			
		||||
        public static Texture2D GetGenitalIcon(this Pawn pawn, HediffComp_Menstruation comp)
 | 
			
		||||
        {
 | 
			
		||||
            Hediff hediff = comp?.parent;
 | 
			
		||||
            if (hediff == null) return ContentFinder<Texture2D>.Get("Genitals/Vagina00", true);
 | 
			
		||||
            //HediffComp_Menstruation comp = hediff.GetMenstruationComp();
 | 
			
		||||
            string icon;
 | 
			
		||||
            float severity;
 | 
			
		||||
            if (drawOrigin) severity = comp.OriginVagSize;
 | 
			
		||||
            else severity = hediff.Severity;
 | 
			
		||||
            float severity = hediff.Severity;
 | 
			
		||||
            if (comp != null) icon = comp.VagTex;
 | 
			
		||||
            else icon = "Genitals/Vagina";
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue