mirror of
				https://github.com/vegapnk/RJW-Genes.git
				synced 2024-08-15 00:23:31 +00:00 
			
		
		
		
	unpatching vanilla pregnancy
This commit is contained in:
		
							parent
							
								
									ee6fdae351
								
							
						
					
					
						commit
						701168f642
					
				
					 17 changed files with 8 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,7 @@
 | 
			
		|||
using Verse;
 | 
			
		||||
using HarmonyLib;
 | 
			
		||||
using System;
 | 
			
		||||
using rjw;
 | 
			
		||||
 | 
			
		||||
namespace RJW_Genes
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -10,12 +11,17 @@ namespace RJW_Genes
 | 
			
		|||
        static HarmonyInit()
 | 
			
		||||
        {
 | 
			
		||||
            Harmony harmony = new Harmony("rjw_genes");
 | 
			
		||||
 | 
			
		||||
            var original = typeof(Hediff_Pregnant).GetMethod("Tick");
 | 
			
		||||
            harmony.Unpatch(original, HarmonyPatchType.Prefix, "rjw");
 | 
			
		||||
 | 
			
		||||
            harmony.PatchAll();
 | 
			
		||||
            
 | 
			
		||||
 | 
			
		||||
            // Patch Licentia, if Licentia exists
 | 
			
		||||
            // Logic & Explanation taken from https://rimworldwiki.com/wiki/Modding_Tutorials/Compatibility_with_DLLs
 | 
			
		||||
            // Adjusted to use ModsConfig (which makes it work, the example above does not run out of the box)
 | 
			
		||||
           
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -31,7 +31,6 @@
 | 
			
		|||
  </ItemGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Compile Include="Animal_Inheritance\InheritanceUtility.cs" />
 | 
			
		||||
    <Compile Include="Animal_Inheritance\Patches\PatchPregnancyHelper.cs" />
 | 
			
		||||
    <Compile Include="Animal_Inheritance\Patches\Patch_RJW_BestialityPregnancyUtility.cs" />
 | 
			
		||||
    <Compile Include="Animal_Inheritance\Patches\Patch_RJW_HediffInsect_Egg.cs" />
 | 
			
		||||
    <Compile Include="Animal_Inheritance\Patches\Patch_Vanilla_PregnancyUtility.cs" />
 | 
			
		||||
| 
						 | 
				
			
			@ -46,6 +45,7 @@
 | 
			
		|||
    <Compile Include="Common\ModLog.cs" />
 | 
			
		||||
    <Compile Include="Common\Defs\TickIntervalExtension.cs" />
 | 
			
		||||
    <Compile Include="Common\patches\PatchGetParents.cs" />
 | 
			
		||||
    <Compile Include="Common\patches\PatchPregnancyHelper.cs" />
 | 
			
		||||
    <Compile Include="GeneDefOf.cs" />
 | 
			
		||||
    <Compile Include="Genes\Breeding\Gene_MechBreeder.cs" />
 | 
			
		||||
    <Compile Include="Genes\Breeding\PatchMechBirth.cs" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue