Skip to content

Commit

Permalink
Recompile Stock Bug Fix against the Bionic Booster Pack DLLs, and upd…
Browse files Browse the repository at this point in the history
…ate those stub libraries.
  • Loading branch information
peterhaneve committed Dec 12, 2024
1 parent 6a5ab03 commit cafb563
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 25 deletions.
Binary file modified Lib/Assembly-CSharp-firstpass.dll
Binary file not shown.
Binary file modified Lib/Assembly-CSharp-firstpass_public.dll
Binary file not shown.
Binary file modified Lib/Assembly-CSharp.dll
Binary file not shown.
Binary file modified Lib/Assembly-CSharp_public.dll
Binary file not shown.
23 changes: 0 additions & 23 deletions StockBugFix/StockBugsPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -775,29 +775,6 @@ internal static void Postfix(BuildingDef __result) {
}
}

/// <summary>
/// Applied to Substance to fix the freezing into debris temperature reset bug, by
/// actually using the set-temperature callback instead of modifying the internal
/// temperature (which is unused by sim chunks).
/// </summary>
[HarmonyPatch(typeof(Substance), nameof(Substance.SpawnResource))]
public static class Substance_SpawnResource_Patch {
private static void SetTemperature(PrimaryElement element, float value) {
if (value > 0.0f && value < Sim.MaxTemperature)
element.Temperature = value;
}

/// <summary>
/// Transpiles SpawnResource to use the right temperature setter.
/// </summary>
internal static TranspiledMethod Transpiler(TranspiledMethod method) {
return PPatchTools.ReplaceMethodCallSafe(method, typeof(PrimaryElement).
GetPropertySafe<float>(nameof(PrimaryElement.InternalTemperature), false).
GetSetMethod(true), typeof(Substance_SpawnResource_Patch).GetMethodSafe(
nameof(SetTemperature), true, typeof(PrimaryElement), typeof(float)));
}
}

/// <summary>
/// Applied to Timelapser to squash a useless warning and fix timelapses not being saved.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions WorkshopProfiles/WorkshopProfiles.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyTitle>Workshop Profiles</AssemblyTitle>
<FileVersion>2.7.0.0</FileVersion>
<FileVersion>2.8.0.0</FileVersion>
<RootNamespace>PeterHan.WorkshopProfiles</RootNamespace>
<Description>Limits usage of most work buildings to the Duplicants specified on an access list.</Description>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
<LastWorkingBuild>493472</LastWorkingBuild>
<LastWorkingBuild>642443</LastWorkingBuild>
<Platforms>Vanilla;Mergedown</Platforms>
</PropertyGroup>
</Project>

0 comments on commit cafb563

Please sign in to comment.