mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Put the due date in the debug womb overlay when pregnant
This commit is contained in:
		
							parent
							
								
									610bffeaa7
								
							
						
					
					
						commit
						99844086db
					
				
					 3 changed files with 13 additions and 1 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -726,6 +726,12 @@ namespace RJW_Menstruation
 | 
			
		|||
            enzygoticSiblings = new Dictionary<Pawn, Pawn>();
 | 
			
		||||
            base.Initialize(mother, dad);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public string DueDate()
 | 
			
		||||
        {
 | 
			
		||||
            if (pawn.Map == null) return "";
 | 
			
		||||
            return GenDate.DateFullStringWithHourAt(GenDate.TickGameToAbs((int)p_end_tick), Find.WorldGrid.LongLatOf(pawn.Map.Tile));
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /// <summary>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -43,7 +43,13 @@ namespace RJW_Menstruation
 | 
			
		|||
        {
 | 
			
		||||
            Texture2D icon, icon_overay;
 | 
			
		||||
            string description = "";
 | 
			
		||||
            if (Configurations.Debug) description += comp.curStage + ": " + comp.curStageHrs + "\n" + "fertcums: " + comp.TotalFertCum + "\n" + "ovarypower: " + comp.ovarypower + "\n" + "eggs: " + comp.GetNumofEggs + "\n";
 | 
			
		||||
            if (Configurations.Debug) {
 | 
			
		||||
                description += comp.curStage + ": " + comp.curStageHrs + "\n" +
 | 
			
		||||
                (comp.Pregnancy is Hediff_MultiplePregnancy preg ? "due: " + preg.DueDate() + "\n" : "") +
 | 
			
		||||
                "fertcums: " + comp.TotalFertCum + "\n" +
 | 
			
		||||
                "ovarypower: " + comp.ovarypower + "\n" +
 | 
			
		||||
                "eggs: " + comp.GetNumofEggs + "\n";
 | 
			
		||||
            }
 | 
			
		||||
            else description += comp.GetCurStageLabel + "\n";
 | 
			
		||||
            if (pawn.IsPregnant())
 | 
			
		||||
            {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue