mirror of
				https://gitgud.io/Stardust3D/rjw-patch-autopsy.git
				synced 2024-08-15 00:43:41 +00:00 
			
		
		
		
	.
This commit is contained in:
		
							parent
							
								
									ffe44caaf1
								
							
						
					
					
						commit
						839101b02a
					
				
					 7 changed files with 9 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -11,11 +11,11 @@ namespace RJW_patch_Autopsy
 | 
			
		|||
    [HarmonyPatch(typeof(NewMedicalRecipesUtility), nameof(NewMedicalRecipesUtility.TraverseBody))]
 | 
			
		||||
    public static class NewMedicalRecipesUtilityPatch
 | 
			
		||||
    {
 | 
			
		||||
        private const bool DO_LOG = false;
 | 
			
		||||
        private const bool DEBUG = false;
 | 
			
		||||
 | 
			
		||||
        private static void log(String message)
 | 
			
		||||
        {
 | 
			
		||||
            if (DO_LOG)
 | 
			
		||||
            if (DEBUG)
 | 
			
		||||
            {
 | 
			
		||||
                Log.Message(message);
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			@ -78,11 +78,11 @@ namespace RJW_patch_Autopsy
 | 
			
		|||
            //Simulate success chance scaled with skill etc.
 | 
			
		||||
            rjwNaturalThings.ForEach(t =>
 | 
			
		||||
            {
 | 
			
		||||
                if (Rand.Chance(Math.Min(skillChance, recipeInfo.NaturalChance))) results.Add(t);
 | 
			
		||||
                if (DEBUG || Rand.Chance(Math.Min(skillChance, recipeInfo.NaturalChance))) results.Add(t);
 | 
			
		||||
            });
 | 
			
		||||
            rjwArtificialThings.ForEach(t =>
 | 
			
		||||
            {
 | 
			
		||||
                if (Rand.Chance(Math.Min(skillChance, recipeInfo.BionicChance))) results.Add(t);
 | 
			
		||||
                if (DEBUG || Rand.Chance(Math.Min(skillChance, recipeInfo.BionicChance))) results.Add(t);
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
            //Remove all parts that were tried to harvest from the corpse
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
 | 
			
		|||
// You can specify all the values or you can default the Build and Revision Numbers
 | 
			
		||||
// by using the '*' as shown below:
 | 
			
		||||
// [assembly: AssemblyVersion("1.0.*")]
 | 
			
		||||
[assembly: AssemblyVersion("4945.0.1.4")]
 | 
			
		||||
[assembly: AssemblyFileVersion("4945.0.1.4")] 
 | 
			
		||||
[assembly: AssemblyVersion("5000.0.1.4")]
 | 
			
		||||
[assembly: AssemblyFileVersion("5000.0.1.4")] 
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue