Add rotation speed log patch
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using HarmonyLib;
|
using System;
|
||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
namespace TerraTech {
|
namespace TerraTech {
|
||||||
[HarmonyPatch]
|
[HarmonyPatch]
|
||||||
@@ -24,7 +25,11 @@ namespace TerraTech {
|
|||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
[HarmonyPatch(typeof(ModuleWeaponGun), "RotateSpeed", MethodType.Getter)]
|
[HarmonyPatch(typeof(ModuleWeaponGun), "RotateSpeed", MethodType.Getter)]
|
||||||
static void WeaponRotationSpeedMulti(ref float __result) {
|
static void WeaponRotationSpeedMulti(ref float __result) {
|
||||||
|
if (Main.debug.Value)
|
||||||
|
Console.WriteLine("WeaponRotationSpeedMulti: {0}", __result);
|
||||||
__result *= Main.weaponRotationSpeedMultiplier.Value;
|
__result *= Main.weaponRotationSpeedMultiplier.Value;
|
||||||
|
if (Main.debug.Value)
|
||||||
|
Console.WriteLine("WeaponRotationSpeedMulti: {0}", __result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user