Skip to content

Commit

Permalink
Fixed the missing workgivers-add for the new clone of recipes.
Browse files Browse the repository at this point in the history
  • Loading branch information
emipa606 committed Jun 9, 2022
1 parent 30323c8 commit bc18114
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 4 deletions.
Binary file modified 1.3/Assemblies/TinyWorkbenches.dll
Binary file not shown.
1 change: 1 addition & 0 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ https://steamcommunity.com/sharedfiles/filedetails/?id=1546657623
- Reworked all graphics based on the vanilla benches and multi-textures
- Added a tiny brewery
- Added support for [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2574489704]Simple FX: Smoke[/url]
- Replaced the patch with c# logic, now all recipes will be cloned from the larger benches

[img]https://i.imgur.com/pufA0kM.png[/img]

Expand Down
3 changes: 3 additions & 0 deletions About/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog for TinyWorkbenchs

1.3.2 - Fixed the missing workgivers-add for the new clone of recipes.


1.3.1 - Replaced patch with c#, will now clone ALL recipes from their larger versions. Fixed the workspeed for the tailoring benches


Expand Down
2 changes: 1 addition & 1 deletion About/Manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>TinyWorkbenchs</identifier>
<version>1.3.1</version>
<version>1.3.2</version>
<dependencies />
<incompatibleWith />
<loadBefore />
Expand Down
2 changes: 1 addition & 1 deletion About/ModSync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ModSyncNinjaData>
<ID>3b55fe60-bf16-410e-b0fa-91f9da742a9d</ID>
<ModName>Tiny Workbenchs (Continued)</ModName>
<Version>1.3.1</Version>
<Version>1.3.2</Version>
<SaveBreaking>False</SaveBreaking>
<Host name="Github">
<Owner>emipa606</Owner>
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ https://steamcommunity.com/sharedfiles/filedetails/?id=1546657623
- Reworked all graphics based on the vanilla benches and multi-textures
- Added a tiny brewery
- Added support for https://steamcommunity.com/sharedfiles/filedetails/?id=2574489704]Simple FX: Smoke
- Replaced the patch with c# logic, now all recipes will be cloned from the larger benches

![Image](https://i.imgur.com/pufA0kM.png)

Expand Down
18 changes: 18 additions & 0 deletions Source/TinyWorkbenches.csproj.oldversioncscproj
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>
9 changes: 9 additions & 0 deletions Source/TinyWorkbenches/TinyWorkbenches.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using RimWorld;
using Verse;

namespace TinyWorkbenches;
Expand All @@ -26,6 +27,14 @@ static TinyWorkbenches()
bench.recipes.Add(recipeDef);
}
}

foreach (var workGiverDef in DefDatabase<WorkGiverDef>.AllDefsListForReading)
{
if (workGiverDef.fixedBillGiverDefs?.Contains(originalBench) == true)
{
workGiverDef.fixedBillGiverDefs.Add(bench);
}
}
}
}
}
4 changes: 2 additions & 2 deletions Source/TinyWorkbenches/TinyWorkbenches.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<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>
<FileVersion>1.3.2</FileVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref">
Expand Down

0 comments on commit bc18114

Please sign in to comment.