Skip to content

Commit

Permalink
removes mod counter
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Jul 28, 2021
1 parent 063efab commit 03f6818
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 35 deletions.
Binary file modified 1.3/Assemblies/CameraPlus.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions Source/CameraPlus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.3.3069" />
<PackageReference Include="Lib.Harmony" Version="2.1.0" ExcludeAssets="runtime" />
<PackageReference Include="Krafs.Rimworld.Ref" Version="1.3.3072" />
<PackageReference Include="Lib.Harmony" Version="2.1.1" ExcludeAssets="runtime" />
<PackageReference Include="Microsoft.NETCore.Platforms" Version="5.0.2" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net472" Version="1.0.2">
<PrivateAssets>all</PrivateAssets>
Expand Down
13 changes: 2 additions & 11 deletions Source/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@ public override string SettingsCategory()
}
}

[HarmonyPatch(typeof(Game), nameof(Game.FinalizeInit))]
static class Game_FinalizeInit_Patch
{
static void Postfix()
{
ModCounter.Trigger();
}
}

[HarmonyPatch(typeof(CameraDriver), nameof(CameraDriver.Update))]
static class CameraDriver_Update_Patch
{
Expand Down Expand Up @@ -328,7 +319,7 @@ static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> inst
[HarmonyPatch(typeof(CameraDriver), nameof(CameraDriver.CurrentZoom), MethodType.Getter)]
static class CameraDriver_CurrentZoom_Patch
{
static bool Prefix(ref CameraZoomRange __result, float ___rootSize)
public static bool Prefix(ref CameraZoomRange __result, float ___rootSize)
{
// these values are from vanilla
// we remap them to the range 30 - 60
Expand Down Expand Up @@ -393,7 +384,7 @@ static class CameraDriver_CurrentViewRect_Patch
{
static readonly MethodInfo m_Main_LerpRootSize = SymbolExtensions.GetMethodInfo(() => Tools.LerpRootSize(0f));

static IEnumerable<CodeInstruction> Transpiler(ILGenerator generator, IEnumerable<CodeInstruction> instructions)
public static IEnumerable<CodeInstruction> Transpiler(ILGenerator generator, IEnumerable<CodeInstruction> instructions)
{
var v_lerpedRootSize = generator.DeclareLocal(typeof(float));

Expand Down
22 changes: 0 additions & 22 deletions Source/ModCounter.cs

This file was deleted.

0 comments on commit 03f6818

Please sign in to comment.