mirror of
				https://github.com/amevarashi/RJW-Sexperience.git
				synced 2024-08-14 23:54:08 +00:00 
			
		
		
		
	Move ThinkNode_ChancePerHour patches to a separate file
This commit is contained in:
		
							parent
							
								
									11858368af
								
							
						
					
					
						commit
						e3b16082d7
					
				
					 2 changed files with 51 additions and 44 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1,51 @@
 | 
			
		|||
using HarmonyLib;
 | 
			
		||||
using RimWorld;
 | 
			
		||||
using rjw;
 | 
			
		||||
using RJWSexperience.Ideology.Precepts;
 | 
			
		||||
using Verse;
 | 
			
		||||
 | 
			
		||||
namespace RJWSexperience.Ideology
 | 
			
		||||
{
 | 
			
		||||
	[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Bestiality), "MtbHours")]
 | 
			
		||||
	public static class RJW_Patch_ChancePerHour_Bestiality
 | 
			
		||||
	{
 | 
			
		||||
		public static void Postfix(Pawn pawn, ref float __result)
 | 
			
		||||
		{
 | 
			
		||||
			Ideo ideo = pawn.Ideo;
 | 
			
		||||
			if (ideo != null) // ideo is null if don't have dlc
 | 
			
		||||
				__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyBestialityMtb>(ideo);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	[HarmonyPatch(typeof(ThinkNode_ChancePerHour_RapeCP), "MtbHours")]
 | 
			
		||||
	public static class RJW_Patch_ChancePerHour_RapeCP
 | 
			
		||||
	{
 | 
			
		||||
		public static void Postfix(Pawn pawn, ref float __result)
 | 
			
		||||
		{
 | 
			
		||||
			Ideo ideo = pawn.Ideo;
 | 
			
		||||
			if (ideo != null) // ideo is null if don't have dlc
 | 
			
		||||
				__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyRapeCPMtb>(ideo);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Necro), "MtbHours")]
 | 
			
		||||
	public static class RJW_Patch_ThinkNode_ChancePerHour_Necro
 | 
			
		||||
	{
 | 
			
		||||
		public static void Postfix(Pawn pawn, ref float __result)
 | 
			
		||||
		{
 | 
			
		||||
			Ideo ideo = pawn.Ideo;
 | 
			
		||||
			if (ideo != null) // ideo is null if don't have dlc
 | 
			
		||||
				__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyNecroMtb>(ideo);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Fappin), "MtbHours")]
 | 
			
		||||
	public static class RJW_Patch_ThinkNode_ChancePerHour_Fappin
 | 
			
		||||
	{
 | 
			
		||||
		public static void Postfix(Pawn pawn, ref float __result)
 | 
			
		||||
		{
 | 
			
		||||
			Ideo ideo = pawn.Ideo;
 | 
			
		||||
			if (ideo != null) // ideo is null if don't have dlc
 | 
			
		||||
				__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyFappinMtb>(ideo);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -41,50 +41,6 @@ namespace RJWSexperience.Ideology
 | 
			
		|||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Bestiality), "MtbHours")]
 | 
			
		||||
	public static class RJW_Patch_ChancePerHour_Bestiality
 | 
			
		||||
	{
 | 
			
		||||
		public static void Postfix(Pawn pawn, ref float __result)
 | 
			
		||||
		{
 | 
			
		||||
			Ideo ideo = pawn.Ideo;
 | 
			
		||||
			if (ideo != null) // ideo is null if don't have dlc
 | 
			
		||||
				__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyBestialityMtb>(ideo);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	[HarmonyPatch(typeof(ThinkNode_ChancePerHour_RapeCP), "MtbHours")]
 | 
			
		||||
	public static class RJW_Patch_ChancePerHour_RapeCP
 | 
			
		||||
	{
 | 
			
		||||
		public static void Postfix(Pawn pawn, ref float __result)
 | 
			
		||||
		{
 | 
			
		||||
			Ideo ideo = pawn.Ideo;
 | 
			
		||||
			if (ideo != null) // ideo is null if don't have dlc
 | 
			
		||||
				__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyRapeCPMtb>(ideo);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Necro), "MtbHours")]
 | 
			
		||||
	public static class RJW_Patch_ThinkNode_ChancePerHour_Necro
 | 
			
		||||
	{
 | 
			
		||||
		public static void Postfix(Pawn pawn, ref float __result)
 | 
			
		||||
		{
 | 
			
		||||
			Ideo ideo = pawn.Ideo;
 | 
			
		||||
			if (ideo != null) // ideo is null if don't have dlc
 | 
			
		||||
				__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyNecroMtb>(ideo);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Fappin), "MtbHours")]
 | 
			
		||||
	public static class RJW_Patch_ThinkNode_ChancePerHour_Fappin
 | 
			
		||||
	{
 | 
			
		||||
		public static void Postfix(Pawn pawn, ref float __result)
 | 
			
		||||
		{
 | 
			
		||||
			Ideo ideo = pawn.Ideo;
 | 
			
		||||
			if (ideo != null) // ideo is null if don't have dlc
 | 
			
		||||
				__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyFappinMtb>(ideo);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	[HarmonyPatch(typeof(xxx), "is_rapist")]
 | 
			
		||||
	public static class RJW_Patch_is_rapist
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue