mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Add various debug actions
This commit is contained in:
		
							parent
							
								
									531313f5d2
								
							
						
					
					
						commit
						26b49379b1
					
				
					 3 changed files with 58 additions and 0 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										57
									
								
								1.3/source/RJW_Menstruation/RJW_Menstruation/DebugActions.cs
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								1.3/source/RJW_Menstruation/RJW_Menstruation/DebugActions.cs
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,57 @@
 | 
				
			||||||
 | 
					using System;
 | 
				
			||||||
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					using System.Linq;
 | 
				
			||||||
 | 
					using System.Text;
 | 
				
			||||||
 | 
					using System.Threading.Tasks;
 | 
				
			||||||
 | 
					using Verse;
 | 
				
			||||||
 | 
					using RimWorld;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma warning disable IDE0051 // Remove unused private members
 | 
				
			||||||
 | 
					namespace RJW_Menstruation
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public static class DebugToolsMenstruation
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        [DebugAction("RJW Menstruation", "Set pawn's state to follicular", false, false, actionType = DebugActionType.ToolMapForPawns, allowedGameStates = AllowedGameStates.Playing)]
 | 
				
			||||||
 | 
					        private static void SetFollicular(Pawn p)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            p.GetMenstruationComp().curStage = HediffComp_Menstruation.Stage.Follicular;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        [DebugAction("RJW Menstruation", "Set pawn's state to ovulatory", false, false, actionType = DebugActionType.ToolMapForPawns, allowedGameStates = AllowedGameStates.Playing)]
 | 
				
			||||||
 | 
					        private static void SetOvulatory(Pawn p)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            p.GetMenstruationComp().curStage = HediffComp_Menstruation.Stage.Ovulatory;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        [DebugAction("RJW Menstruation", "Set pawn's state to luteal", false, false, actionType = DebugActionType.ToolMapForPawns, allowedGameStates = AllowedGameStates.Playing)]
 | 
				
			||||||
 | 
					        private static void SetLuteal(Pawn p)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            p.GetMenstruationComp().curStage = HediffComp_Menstruation.Stage.Ovulatory;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        [DebugAction("RJW Menstruation", "Set pawn's state to bleeding", false, false, actionType = DebugActionType.ToolMapForPawns, allowedGameStates = AllowedGameStates.Playing)]
 | 
				
			||||||
 | 
					        private static void SetBleeding(Pawn p)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            p.GetMenstruationComp().curStage = HediffComp_Menstruation.Stage.Bleeding;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        /*
 | 
				
			||||||
 | 
					        [DebugAction("RJW Menstruation", "Set pawn's state to recovering", false, false, actionType = DebugActionType.ToolMapForPawns, allowedGameStates = AllowedGameStates.Playing)]
 | 
				
			||||||
 | 
					        private static void setRecover(Pawn p)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            p.GetMenstruationComp().curStage = HediffComp_Menstruation.Stage.Recover;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        [DebugAction("RJW Menstruation", "Set pawn's state to young", false, false, actionType = DebugActionType.ToolMapForPawns, allowedGameStates = AllowedGameStates.Playing)]
 | 
				
			||||||
 | 
					        private static void setYoung(Pawn p)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            p.GetMenstruationComp().curStage = HediffComp_Menstruation.Stage.Young;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        */
 | 
				
			||||||
 | 
					        [DebugAction("RJW Menstruation", "Add egg to pawn's next ovulation", false, false, actionType = DebugActionType.ToolMapForPawns, allowedGameStates = AllowedGameStates.Playing)]
 | 
				
			||||||
 | 
					        private static void AddEgg(Pawn p)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            p.GetMenstruationComp().eggstack++;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#pragma warning restore IDE0051 // Remove unused private members
 | 
				
			||||||
| 
						 | 
					@ -60,6 +60,7 @@
 | 
				
			||||||
  <ItemGroup>
 | 
					  <ItemGroup>
 | 
				
			||||||
    <Compile Include="Configurations.cs" />
 | 
					    <Compile Include="Configurations.cs" />
 | 
				
			||||||
    <Compile Include="Cum.cs" />
 | 
					    <Compile Include="Cum.cs" />
 | 
				
			||||||
 | 
					    <Compile Include="DebugActions.cs" />
 | 
				
			||||||
    <Compile Include="HediffComps\MenstruationUtility.cs" />
 | 
					    <Compile Include="HediffComps\MenstruationUtility.cs" />
 | 
				
			||||||
    <Compile Include="IngestionOutcomeDoers.cs" />
 | 
					    <Compile Include="IngestionOutcomeDoers.cs" />
 | 
				
			||||||
    <Compile Include="Recipe_Surgery.cs" />
 | 
					    <Compile Include="Recipe_Surgery.cs" />
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue