Add rotation speed log patch

This commit is contained in:
2025-02-23 15:41:52 +01:00
parent 44c24e4ae7
commit b5d75ccffd
2 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
using HarmonyLib;
using System;
using HarmonyLib;
namespace TerraTech {
[HarmonyPatch]
@@ -24,7 +25,11 @@ namespace TerraTech {
[HarmonyPostfix]
[HarmonyPatch(typeof(ModuleWeaponGun), "RotateSpeed", MethodType.Getter)]
static void WeaponRotationSpeedMulti(ref float __result) {
if (Main.debug.Value)
Console.WriteLine("WeaponRotationSpeedMulti: {0}", __result);
__result *= Main.weaponRotationSpeedMultiplier.Value;
if (Main.debug.Value)
Console.WriteLine("WeaponRotationSpeedMulti: {0}", __result);
}
}
}