Add rotation speed log patch
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user