mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Remove unnecessary parameters from Harmony patches.
This commit is contained in:
		
							parent
							
								
									00ad2e94d4
								
							
						
					
					
						commit
						7b5f0880ed
					
				
					 8 changed files with 6 additions and 6 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -24,7 +24,7 @@ namespace MilkModule
 | 
			
		|||
    [HarmonyPatch(typeof(HumanCompHasGatherableBodyResource), "Gathered")]
 | 
			
		||||
    public static class Milk_Patch
 | 
			
		||||
    {
 | 
			
		||||
        public static void Postfix(Pawn doer, HumanCompHasGatherableBodyResource __instance)
 | 
			
		||||
        public static void Postfix(HumanCompHasGatherableBodyResource __instance)
 | 
			
		||||
        {
 | 
			
		||||
            HediffComp_Breast comp = null;
 | 
			
		||||
            if (__instance.parent is Pawn pawn) comp = pawn.GetBreastComp();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,7 +13,7 @@ namespace RJW_Menstruation
 | 
			
		|||
    [HarmonyPatch(typeof(Pawn), nameof(Pawn.SpawnSetup))]
 | 
			
		||||
    public class Pawn_Patch
 | 
			
		||||
    {
 | 
			
		||||
        public static void Postfix(Map map, bool respawningAfterLoad, Pawn __instance)
 | 
			
		||||
        public static void Postfix(Pawn __instance)
 | 
			
		||||
        {
 | 
			
		||||
            //Log.Message("Initialize on spawnsetup");
 | 
			
		||||
            HediffComp_Menstruation comp = __instance.GetMenstruationComp();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -104,7 +104,7 @@ namespace RJW_Menstruation
 | 
			
		|||
    [HarmonyPatch(typeof(Hediff_BasePregnancy), nameof(Hediff_BasePregnancy.PostBirth))]
 | 
			
		||||
    public static class RJW_Patch_PostBirth
 | 
			
		||||
    {
 | 
			
		||||
        public static void Postfix(Pawn mother, Pawn father, Pawn baby)
 | 
			
		||||
        public static void Postfix(Pawn mother, Pawn baby)
 | 
			
		||||
        {
 | 
			
		||||
            if (Configurations.EnableBirthVaginaMorph)
 | 
			
		||||
            {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,7 +16,7 @@ namespace RJW_Menstruation.Sexperience
 | 
			
		|||
    [HarmonyPatch(typeof(Pawn_GetGizmos), nameof(Pawn_GetGizmos.GetMenstruationGizmos))]
 | 
			
		||||
    public static class GetGizmos_Patch
 | 
			
		||||
    {
 | 
			
		||||
        public static void Postfix(Pawn pawn, HediffComp_Menstruation comp, ref List<Gizmo> __result)
 | 
			
		||||
        public static void Postfix(HediffComp_Menstruation comp, ref List<Gizmo> __result)
 | 
			
		||||
        {
 | 
			
		||||
            if (Configurations.EnableGatherCumGizmo)
 | 
			
		||||
                __result.Add(CreateGizmo_GatherCum(comp));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -18,7 +18,7 @@ namespace RJW_Menstruation.Sexperience
 | 
			
		|||
    {
 | 
			
		||||
        [HarmonyPrefix]
 | 
			
		||||
        [HarmonyPatch("HasJobOnThing")]
 | 
			
		||||
        public static bool HasJobOnThing(Pawn pawn, Thing t, bool forced, ref bool __result)
 | 
			
		||||
        public static bool HasJobOnThing(Pawn pawn, ref bool __result)
 | 
			
		||||
        {
 | 
			
		||||
            HediffComp_Menstruation comp = pawn.GetMenstruationComp();
 | 
			
		||||
            if (comp != null && comp.DoCleanWomb && comp.TotalCumPercent > 0.001f && pawn.Map.listerBuildings.ColonistsHaveBuilding(VariousDefOf.CumBucket))
 | 
			
		||||
| 
						 | 
				
			
			@ -31,7 +31,7 @@ namespace RJW_Menstruation.Sexperience
 | 
			
		|||
 | 
			
		||||
        [HarmonyPostfix]
 | 
			
		||||
        [HarmonyPatch("JobOnThing")]
 | 
			
		||||
        public static void JobOnThing(Pawn pawn, Thing t, bool forced, ref Job __result)
 | 
			
		||||
        public static void JobOnThing(Pawn pawn, ref Job __result)
 | 
			
		||||
        {
 | 
			
		||||
            HediffComp_Menstruation comp = pawn.GetMenstruationComp();
 | 
			
		||||
            if (comp != null && comp.DoCleanWomb && comp.TotalCumPercent > 0.001f)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue