Skip to content

Commit

Permalink
Replaced patch with c#, will now clone ALL recipes from their larger …
Browse files Browse the repository at this point in the history
…versions. Fixed the workspeed for the tailoring benches
  • Loading branch information
emipa606 committed Jun 8, 2022
1 parent f6ec119 commit 30323c8
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 6 deletions.
Binary file added 1.3/Assemblies/TinyWorkbenches.dll
Binary file not shown.
8 changes: 4 additions & 4 deletions 1.3/Defs/ThingsDefs/Buildings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@
<li>Metallic</li>
<li>Woody</li>
</stuffCategories>
<building>
<unpoweredWorkTableWorkSpeedFactor>0.5</unpoweredWorkTableWorkSpeedFactor>
</building>
<statBases>
<WorkTableWorkSpeedFactor>0.3</WorkTableWorkSpeedFactor>
</statBases>
<comps>
<li Class="CompProperties_AffectedByFacilities">
<linkableFacilities>
Expand Down Expand Up @@ -164,7 +164,7 @@
<li>Woody</li>
</stuffCategories>
<building>
<unpoweredWorkTableWorkSpeedFactor>0.5</unpoweredWorkTableWorkSpeedFactor>
<unpoweredWorkTableWorkSpeedFactor>0.3</unpoweredWorkTableWorkSpeedFactor>
</building>
<comps>
<li Class="CompProperties_Power">
Expand Down
5 changes: 5 additions & 0 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ https://steamcommunity.com/sharedfiles/filedetails/?id=1546657623
[td][url=https://invite.gg/Mlie][img]https://i.imgur.com/zdzzBrc.png[/img][/url][/td]
[td][url=https://github.com/emipa606/TinyWorkbenchs][img]https://i.imgur.com/kTkpTOE.png[/img][/url][/td]
[/tr]
[tr]
[td][img]https://i.imgur.com/WjDSfUn.png[/img][/td]
[td][img]https://i.imgur.com/Be8E2qJ.png[/img][/td]
[/tr]
[/table]

[img]https://i.imgur.com/Z4GOv8H.png[/img]
Expand Down Expand Up @@ -59,5 +63,6 @@ These textures aren't up to 1.0 quality, and I'm a lazy person who made them all
[*] Do not report errors by making a discussion-thread, I get no notification of that.
[*] If you have the solution for a problem, please post it to the GitHub repository.
[/list]

</description>
</ModMetaData>
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.1 - Replaced patch with c#, will now clone ALL recipes from their larger versions. Fixed the workspeed for the tailoring benches


1.0.6.0 - Made the research requirement less demanding. Added mass-values and terrain affordances


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.0.6.0</version>
<version>1.3.1</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.0.6.0</Version>
<Version>1.3.1</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 @@ -47,4 +47,5 @@ These textures aren't up to 1.0 quality, and I'm a lazy person who made them all
- If you have the solution for a problem, please post it to the GitHub repository.




Expand Down
File renamed without changes.
25 changes: 25 additions & 0 deletions Source/TinyWorkbenches.sln
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
31 changes: 31 additions & 0 deletions Source/TinyWorkbenches/TinyWorkbenches.cs
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);
}
}
}
}
}
18 changes: 18 additions & 0 deletions Source/TinyWorkbenches/TinyWorkbenches.csproj
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>
5 changes: 5 additions & 0 deletions Source/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Continued": true,
"CanAdd": "0",
"CanRemove": "2"
}

0 comments on commit 30323c8

Please sign in to comment.