Skip to content

Commit 977ab64

Browse files
committed
v1.0.4.0
1 parent b614422 commit 977ab64

File tree

13 files changed

+11
-133
lines changed

13 files changed

+11
-133
lines changed

1.1/Assemblies/TinyTweaks.dll

0 Bytes
Binary file not shown.

About/About.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
<li>Ludeon.RimWorld</li>
2121
<li>Ludeon.RimWorld.Royalty</li>
2222
<li>brrainz.harmony</li>
23+
<li>VanillaExpanded.VFEProduction</li>
2324
</loadAfter>
2425
</ModMetaData>
-24 KB
Binary file not shown.
0 Bytes
Binary file not shown.

Source/TinyTweaks/HarmonyPatches/Patch_OverlayDrawHandler.cs

Lines changed: 0 additions & 34 deletions
This file was deleted.

Source/TinyTweaks/HarmonyPatches/Patch_PawnGenerator.cs renamed to Source/TinyTweaks/HarmonyPatches/Patch_PawnComponentsUtility.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@
1414
namespace TinyTweaks
1515
{
1616

17-
public static class Patch_PawnGenerator
17+
public static class Patch_Pawn_TimetableTracker
1818
{
1919

20-
[HarmonyPatch(typeof(PawnGenerator), "GenerateNewPawnInternal")]
21-
public static class GenerateNewPawnInternal
20+
[HarmonyPatch(typeof(Pawn_TimetableTracker), MethodType.Constructor, new Type[] { typeof(Pawn) })]
21+
public static class AddAndRemoveDynamicComponents
2222
{
2323

24-
public static void Postfix(Pawn __result)
24+
public static void Postfix(Pawn_TimetableTracker __instance, Pawn pawn)
2525
{
2626
// AutoOwl functionality
27-
if (TinyTweaksSettings.autoOwl && __result != null && __result.timetable is Pawn_TimetableTracker timetable && __result.story?.traits?.HasTrait(TraitDefOf.NightOwl) == true)
27+
if (TinyTweaksSettings.autoOwl && pawn.story?.traits?.HasTrait(TraitDefOf.NightOwl) == true)
2828
{
2929
for (int i = 0; i < GenDate.HoursPerDay; i++)
3030
{
3131
if (i >= 11 && i <= 18)
32-
timetable.times[i] = TimeAssignmentDefOf.Sleep;
32+
__instance.times[i] = TimeAssignmentDefOf.Sleep;
3333
else
34-
timetable.times[i] = TimeAssignmentDefOf.Anything;
34+
__instance.times[i] = TimeAssignmentDefOf.Anything;
3535
}
3636
}
3737
}

Source/TinyTweaks/HarmonyPatches/Patch_PlaySettings.cs

Lines changed: 0 additions & 46 deletions
This file was deleted.

Source/TinyTweaks/HarmonyPatches/Patch_ThingFilter.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.

Source/TinyTweaks/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.3.0")]
36-
[assembly: AssemblyFileVersion("1.0.3.0")]
35+
[assembly: AssemblyVersion("1.0.4.0")]
36+
[assembly: AssemblyFileVersion("1.0.4.0")]

Source/TinyTweaks/TinyTweaks.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,9 @@
8080
<Compile Include="HarmonyPatches\Patch_CompTerrainPump.cs" />
8181
<Compile Include="HarmonyPatches\Patch_Alert_ColonistNeedsTend.cs" />
8282
<Compile Include="HarmonyPatches\Patch_Pawn_PlayerSettings.cs" />
83-
<Compile Include="HarmonyPatches\Patch_PawnGenerator.cs" />
83+
<Compile Include="HarmonyPatches\Patch_PawnComponentsUtility.cs" />
8484
<Compile Include="HarmonyPatches\Patch_SkillRecord.cs" />
85-
<None Include="HarmonyPatches\Patch_OverlayDrawHandler.cs" />
86-
<None Include="HarmonyPatches\Patch_PlaySettings.cs" />
8785
<Compile Include="HarmonyPatches\Patch_HediffSet.cs" />
88-
<None Include="HarmonyPatches\Patch_ThingFilter.cs" />
8986
<Compile Include="HarmonyPatches\Patch_VerbProperties.cs" />
9087
<Compile Include="HarmonyPatches\Patch_WITab_Caravan_Items.cs" />
9188
<Compile Include="HarmonyPatches\Patch_ThingDef.cs" />

0 commit comments

Comments
 (0)