-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced patch with c#, will now clone ALL recipes from their larger …
…versions. Fixed the workspeed for the tailoring benches
- Loading branch information
Showing
12 changed files
with
94 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.2.32526.322 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TinyWorkbenches", "TinyWorkbenches\TinyWorkbenches.csproj", "{8DDCB1A9-4D22-4627-A2A5-BE2DC6220448}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{8DDCB1A9-4D22-4627-A2A5-BE2DC6220448}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{8DDCB1A9-4D22-4627-A2A5-BE2DC6220448}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{8DDCB1A9-4D22-4627-A2A5-BE2DC6220448}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{8DDCB1A9-4D22-4627-A2A5-BE2DC6220448}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {C45EC6C7-E247-4017-92B2-AAFA8CB8D706} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Verse; | ||
|
||
namespace TinyWorkbenches; | ||
|
||
[StaticConstructorOnStartup] | ||
public class TinyWorkbenches | ||
{ | ||
static TinyWorkbenches() | ||
{ | ||
foreach (var bench in DefDatabase<ThingDef>.AllDefsListForReading.Where(def => def.defName.StartsWith("TWB_"))) | ||
{ | ||
var originalBench = ThingDef.Named(bench.defName.Replace("TWB_", "").Replace("Mini", "")); | ||
Log.Message( | ||
$"[TinyWorkbenches]: Cloning {originalBench.AllRecipes.Count} recipes from {originalBench.LabelCap} to {bench.LabelCap}"); | ||
foreach (var recipeDef in originalBench.AllRecipes) | ||
{ | ||
if (bench.recipes == null) | ||
{ | ||
bench.recipes = new List<RecipeDef>(); | ||
} | ||
|
||
if (!bench.recipes.Contains(recipeDef)) | ||
{ | ||
bench.recipes.Add(recipeDef); | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputPath>..\..\1.3\Assemblies</OutputPath> | ||
<TargetFramework>net472</TargetFramework> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath> | ||
<DebugType>None</DebugType> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Krafs.Rimworld.Ref"> | ||
<Version>*</Version> | ||
<ExcludeAssets>runtime</ExcludeAssets> | ||
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"Continued": true, | ||
"CanAdd": "0", | ||
"CanRemove": "2" | ||
} |