This commit is contained in:
Stardust3D 2022-09-12 18:26:15 +02:00
parent ffe44caaf1
commit 839101b02a
7 changed files with 9 additions and 9 deletions

Binary file not shown.

View file

@ -2,5 +2,5 @@
<Manifest> <Manifest>
<identifier>RJW patch - Harvest Organs Post Mortem</identifier> <identifier>RJW patch - Harvest Organs Post Mortem</identifier>
<version>4945.0.1.4</version> <version>4961.0.1.4</version>
</Manifest> </Manifest>

Binary file not shown.

View file

@ -11,11 +11,11 @@ namespace RJW_patch_Autopsy
[HarmonyPatch(typeof(NewMedicalRecipesUtility), nameof(NewMedicalRecipesUtility.TraverseBody))] [HarmonyPatch(typeof(NewMedicalRecipesUtility), nameof(NewMedicalRecipesUtility.TraverseBody))]
public static class NewMedicalRecipesUtilityPatch public static class NewMedicalRecipesUtilityPatch
{ {
private const bool DO_LOG = false; private const bool DEBUG = false;
private static void log(String message) private static void log(String message)
{ {
if (DO_LOG) if (DEBUG)
{ {
Log.Message(message); Log.Message(message);
} }
@ -78,11 +78,11 @@ namespace RJW_patch_Autopsy
//Simulate success chance scaled with skill etc. //Simulate success chance scaled with skill etc.
rjwNaturalThings.ForEach(t => 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 => 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 //Remove all parts that were tried to harvest from the corpse

View file

@ -33,5 +33,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4945.0.1.4")] [assembly: AssemblyVersion("5000.0.1.4")]
[assembly: AssemblyFileVersion("4945.0.1.4")] [assembly: AssemblyFileVersion("5000.0.1.4")]

View file

@ -11,7 +11,7 @@ plugins {
//id("com.ullink.nunit") version "1.12" //id("com.ullink.nunit") version "1.12"
} }
version = "4945.0.1.4" version = "4961.0.1.4"
val friendlyName = "rjw-patch-autopsy" val friendlyName = "rjw-patch-autopsy"
tasks.register<com.ullink.Msbuild>("buildC#") { tasks.register<com.ullink.Msbuild>("buildC#") {

View file

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists