mirror of
https://gitgud.io/Stardust3D/rjw-patch-autopsy.git
synced 2024-08-15 00:43:41 +00:00
Compare commits
19 commits
11284fbd3f
...
09a090eb35
Author | SHA1 | Date | |
---|---|---|---|
|
09a090eb35 | ||
|
74cca35f51 | ||
|
a86f28cf03 | ||
|
92d6f3df9d | ||
|
2e90926892 | ||
|
480df6f738 | ||
|
48d13476ff | ||
|
664820b5c8 | ||
|
930ca229ba | ||
|
513d762bb1 | ||
|
8a14ca4712 | ||
|
20296413a0 | ||
|
a69bb21b4b | ||
|
09f87e394f | ||
|
60f373bdd8 | ||
|
5d02e3eb6a | ||
|
8555a43e15 | ||
|
b674530677 | ||
|
30d8f148b9 |
12 changed files with 21 additions and 134 deletions
Binary file not shown.
Binary file not shown.
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
<Manifest>
|
<Manifest>
|
||||||
<identifier>RJW patch - Harvest Organs Post Mortem</identifier>
|
<identifier>RJW patch - Harvest Organs Post Mortem</identifier>
|
||||||
<version>5380.0.1.4</version>
|
<version>5371.0.1.4</version>
|
||||||
</Manifest>
|
</Manifest>
|
|
@ -1 +0,0 @@
|
||||||
I am sorry for the force push, but I had to remove some information from the repository's history.
|
|
|
@ -5,9 +5,7 @@ VisualStudioVersion = 17.1.32113.165
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RJW_patch_Autopsy_1.3", "RJW_patch_Autopsy\RJW_patch_Autopsy_1.3.csproj", "{F17C6B3F-BA9D-4133-A201-1265A64BCB71}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RJW_patch_Autopsy_1.3", "RJW_patch_Autopsy\RJW_patch_Autopsy_1.3.csproj", "{F17C6B3F-BA9D-4133-A201-1265A64BCB71}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{AE4F3486-62B9-4146-845F-22D8FFA362AE}") = "RJW_patch_Autopsy_1.4", "RJW_patch_Autopsy\RJW_patch_Autopsy_1.4.csproj", "{FC20CA27-4400-4AAC-99AF-F18CAFAC942E}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RJW_patch_Autopsy_1.4", "RJW_patch_Autopsy\RJW_patch_Autopsy_1.4.csproj", "{FC20CA27-4400-4AAC-99AF-F18CAFAC942E}"
|
||||||
EndProject
|
|
||||||
Project("{37127962-1266-4597-90C6-EBE1D79600EA}") = "RJW_patch_Autopsy_1.5", "RJW_patch_Autopsy\RJW_patch_Autopsy_1.5.csproj", "{25A0821A-6B42-4FB0-A454-0AD22A7716E7}"
|
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
<Manifest>
|
<Manifest>
|
||||||
<identifier>RJW patch - Harvest Organs Post Mortem</identifier>
|
<identifier>RJW patch - Harvest Organs Post Mortem</identifier>
|
||||||
<version>5380.0.1.4</version>
|
<version>5371.0.1.4</version>
|
||||||
</Manifest>
|
</Manifest>
|
|
@ -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 DEBUG = false;
|
private const bool DO_LOG = false;
|
||||||
|
|
||||||
private static void log(String message)
|
private static void log(String message)
|
||||||
{
|
{
|
||||||
if (DEBUG)
|
if (DO_LOG)
|
||||||
{
|
{
|
||||||
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 (DEBUG || Rand.Chance(Math.Min(skillChance, recipeInfo.NaturalChance))) results.Add(t);
|
if (Rand.Chance(Math.Min(skillChance, recipeInfo.NaturalChance))) results.Add(t);
|
||||||
});
|
});
|
||||||
rjwArtificialThings.ForEach(t =>
|
rjwArtificialThings.ForEach(t =>
|
||||||
{
|
{
|
||||||
if (DEBUG || Rand.Chance(Math.Min(skillChance, recipeInfo.BionicChance))) results.Add(t);
|
if (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
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
<TargetFrameworkProfile>
|
<TargetFrameworkProfile>
|
||||||
</TargetFrameworkProfile>
|
</TargetFrameworkProfile>
|
||||||
<LangVersion>11</LangVersion>
|
<LangVersion>11</LangVersion>
|
||||||
<Copyright>©2024 Stardust3D</Copyright>
|
<Copyright>©2023 Stardust3D</Copyright>
|
||||||
<Company>Stardust3D</Company>
|
<Company>Stardust3D</Company>
|
||||||
<AssemblyVersion>5380.0.1.4</AssemblyVersion>
|
<AssemblyVersion>5371.0.1.4</AssemblyVersion>
|
||||||
<FileVersion>5380.0.1.4</FileVersion>
|
<FileVersion>5371.0.1.4</FileVersion>
|
||||||
<SignAssembly>true</SignAssembly>
|
<SignAssembly>true</SignAssembly>
|
||||||
<AssemblyOriginatorKeyFile>RJW_patch_Autopsy.snk</AssemblyOriginatorKeyFile>
|
<AssemblyOriginatorKeyFile>RJW_patch_Autopsy.snk</AssemblyOriginatorKeyFile>
|
||||||
<Description>This is a compatibility patch to enable 'Harvest Organs post mortem'/Autopsy to yield RJW bodyparts.</Description>
|
<Description>This is a compatibility patch to enable 'Harvest Organs post mortem'/Autopsy to yield RJW bodyparts.</Description>
|
||||||
|
@ -26,13 +26,12 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Remove="1.4\**"/>
|
<None Remove="1.4\**"/>
|
||||||
<None Remove="1.5\**"/>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Lib.Harmony" Version="2.3.1.1" />
|
<PackageReference Include="Lib.Harmony" Version="2.2.2"/>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0"/>
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0"/>
|
||||||
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.3.3389" />
|
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.4.3704"/>
|
||||||
<PackageReference Include="UnlimitedHugs.Rimworld.HugsLib" Version="11.0.3" />
|
<PackageReference Include="UnlimitedHugs.Rimworld.HugsLib" Version="10.0.1"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Autopsy">
|
<Reference Include="Autopsy">
|
||||||
|
@ -44,11 +43,9 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Remove="1.4\**"/>
|
<Compile Remove="1.4\**"/>
|
||||||
<Compile Remove="1.5\**"/>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Remove="1.4\**"/>
|
<EmbeddedResource Remove="1.4\**"/>
|
||||||
<EmbeddedResource Remove="1.5\**"/>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Properties\" />
|
<Folder Include="Properties\" />
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
<TargetFrameworkProfile>
|
<TargetFrameworkProfile>
|
||||||
</TargetFrameworkProfile>
|
</TargetFrameworkProfile>
|
||||||
<LangVersion>11</LangVersion>
|
<LangVersion>11</LangVersion>
|
||||||
<Copyright>©2024 Stardust3D</Copyright>
|
<Copyright>©2023 Stardust3D</Copyright>
|
||||||
<Company>Stardust3D</Company>
|
<Company>Stardust3D</Company>
|
||||||
<AssemblyVersion>5380.0.1.4</AssemblyVersion>
|
<AssemblyVersion>5371.0.1.4</AssemblyVersion>
|
||||||
<FileVersion>5380.0.1.4</FileVersion>
|
<FileVersion>5371.0.1.4</FileVersion>
|
||||||
<SignAssembly>true</SignAssembly>
|
<SignAssembly>true</SignAssembly>
|
||||||
<AssemblyOriginatorKeyFile>RJW_patch_Autopsy.snk</AssemblyOriginatorKeyFile>
|
<AssemblyOriginatorKeyFile>RJW_patch_Autopsy.snk</AssemblyOriginatorKeyFile>
|
||||||
<Description>This is a compatibility patch to enable 'Harvest Organs post mortem'/Autopsy to yield RJW bodyparts.</Description>
|
<Description>This is a compatibility patch to enable 'Harvest Organs post mortem'/Autopsy to yield RJW bodyparts.</Description>
|
||||||
|
@ -26,13 +26,12 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Remove="1.3\**"/>
|
<None Remove="1.3\**"/>
|
||||||
<None Remove="1.5\**"/>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Lib.Harmony" Version="2.3.1.1" />
|
<PackageReference Include="Lib.Harmony" Version="2.2.2"/>
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0"/>
|
<PackageReference Include="Microsoft.CSharp" Version="4.7.0"/>
|
||||||
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.4.3901" />
|
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.4.3704"/>
|
||||||
<PackageReference Include="UnlimitedHugs.Rimworld.HugsLib" Version="11.0.3" />
|
<PackageReference Include="UnlimitedHugs.Rimworld.HugsLib" Version="10.0.1"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Autopsy">
|
<Reference Include="Autopsy">
|
||||||
|
@ -44,11 +43,9 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Remove="1.3\**"/>
|
<Compile Remove="1.3\**"/>
|
||||||
<Compile Remove="1.5\**"/>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Remove="1.3\**"/>
|
<EmbeddedResource Remove="1.3\**"/>
|
||||||
<EmbeddedResource Remove="1.5\**"/>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Properties\" />
|
<Folder Include="Properties\" />
|
||||||
|
|
|
@ -1,56 +0,0 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"/>
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProjectGuid>{25a0821a-6b42-4fb0-a454-0ad22a7716e7}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>RJW_patch_Autopsy</RootNamespace>
|
|
||||||
<AssemblyName>RJW_patch_Autopsy</AssemblyName>
|
|
||||||
<TargetFramework>net48</TargetFramework>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<TargetFrameworkProfile>
|
|
||||||
</TargetFrameworkProfile>
|
|
||||||
<LangVersion>11</LangVersion>
|
|
||||||
<Copyright>©2024 Stardust3D</Copyright>
|
|
||||||
<Company>Stardust3D</Company>
|
|
||||||
<AssemblyVersion>5380.0.1.4</AssemblyVersion>
|
|
||||||
<FileVersion>5380.0.1.4</FileVersion>
|
|
||||||
<SignAssembly>true</SignAssembly>
|
|
||||||
<AssemblyOriginatorKeyFile>RJW_patch_Autopsy.snk</AssemblyOriginatorKeyFile>
|
|
||||||
<Description>This is a compatibility patch to enable 'Harvest Organs post mortem'/Autopsy to yield RJW bodyparts.</Description>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
|
||||||
<OutputPath>bin\Release\1.5\</OutputPath>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Remove="1.3\**"/>
|
|
||||||
<None Remove="1.4\**"/>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Lib.Harmony" Version="2.3.1.1" />
|
|
||||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0"/>
|
|
||||||
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.5.4042-beta" />
|
|
||||||
<PackageReference Include="UnlimitedHugs.Rimworld.HugsLib" Version="11.0.3" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="Autopsy">
|
|
||||||
<HintPath>..\..\..\RimwoldAutopsy\1.5\Assemblies\Autopsy.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="RJW">
|
|
||||||
<HintPath>..\..\..\rjw-base\1.5\Assemblies\RJW.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Remove="1.3\**"/>
|
|
||||||
<Compile Remove="1.4\**"/>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<EmbeddedResource Remove="1.3\**"/>
|
|
||||||
<EmbeddedResource Remove="1.4\**"/>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="Properties\" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
|
@ -7,11 +7,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.msbuild)
|
id("com.ullink.msbuild") version "3.15"
|
||||||
alias(libs.plugins.versions)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
version = "5380.0.1.4"
|
version = "5371.0.1.4"
|
||||||
val friendlyName = "rjw-patch-autopsy"
|
val friendlyName = "rjw-patch-autopsy"
|
||||||
|
|
||||||
tasks.register<com.ullink.Msbuild>("buildC#_1.3") {
|
tasks.register<com.ullink.Msbuild>("buildC#_1.3") {
|
||||||
|
@ -38,18 +37,6 @@ tasks.register<com.ullink.Msbuild>("buildC#_1.4") {
|
||||||
// destinationDir = "build/msbuild/bin"
|
// destinationDir = "build/msbuild/bin"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<com.ullink.Msbuild>("buildC#_1.5") {
|
|
||||||
// either a solution file
|
|
||||||
// solutionFile = "${rootProject.name}.sln"
|
|
||||||
// or a project file (.csproj or .vbproj)
|
|
||||||
projectFile = file("${rootProject.name}/${rootProject.name}_1.5.csproj")
|
|
||||||
|
|
||||||
targets = listOf("Clean", "Rebuild")
|
|
||||||
configuration = "Release"
|
|
||||||
|
|
||||||
// destinationDir = "build/msbuild/bin"
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.register<Exec>("sign_1.3") {
|
tasks.register<Exec>("sign_1.3") {
|
||||||
dependsOn("buildC#_1.3")
|
dependsOn("buildC#_1.3")
|
||||||
workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.3/net48")
|
workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.3/net48")
|
||||||
|
@ -86,24 +73,6 @@ tasks.register<Exec>("sign_1.4") {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<Exec>("sign_1.5") {
|
|
||||||
dependsOn("buildC#_1.5")
|
|
||||||
workingDir = project.projectDir.resolve("${rootProject.name}/bin/Release/1.5/net48")
|
|
||||||
executable = "H:\\Windows Kits\\10\\bin\\10.0.22621.0\\x64\\signtool.exe"
|
|
||||||
args = listOf(
|
|
||||||
"sign",
|
|
||||||
"/seal",
|
|
||||||
"/t",
|
|
||||||
"http://timestamp.digicert.com",
|
|
||||||
"/a",
|
|
||||||
"/n",
|
|
||||||
"Stardust3D",
|
|
||||||
"/fd",
|
|
||||||
"certHash",
|
|
||||||
"${rootProject.name}.dll"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.register("copy") {
|
tasks.register("copy") {
|
||||||
dependsOn("copy_1.3", "copy_1.4", "copy_about")
|
dependsOn("copy_1.3", "copy_1.4", "copy_about")
|
||||||
}
|
}
|
||||||
|
@ -137,12 +106,6 @@ tasks.register<Copy>("copyDll_1.4") {
|
||||||
into(project.projectDir.parentFile.resolve("1.4/Assemblies"))
|
into(project.projectDir.parentFile.resolve("1.4/Assemblies"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<Copy>("copyDll_1.5") {
|
|
||||||
dependsOn("sign_1.5")
|
|
||||||
from(project.projectDir.resolve("${rootProject.name}/bin/Release/1.5/net48/${rootProject.name}.dll"))
|
|
||||||
into(project.projectDir.parentFile.resolve("1.5/Assemblies"))
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.register<Zip>("buildZip") {
|
tasks.register<Zip>("buildZip") {
|
||||||
dependsOn("clean", ":copy")
|
dependsOn("clean", ":copy")
|
||||||
into("$friendlyName/1.3") {
|
into("$friendlyName/1.3") {
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
[versions]
|
|
||||||
versions = "0.51.0"
|
|
||||||
msbuild = "4.6"
|
|
||||||
|
|
||||||
[libraries]
|
|
||||||
|
|
||||||
[bundles]
|
|
||||||
|
|
||||||
[plugins]
|
|
||||||
versions = { id = "com.github.ben-manes.versions", version.ref = "versions" }
|
|
||||||
msbuild = { id = "com.ullink.msbuild", version.ref = "msbuild" }
|
|
Loading…
Add table
Add a link
Reference in a new issue