Add logs to taverndave
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.Linq;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using BepInEx;
|
using BepInEx;
|
||||||
using BepInEx.Configuration;
|
using BepInEx.Configuration;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
@@ -35,16 +36,20 @@ namespace TavernDave {
|
|||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(TavernModel), "ChangeMoney")]
|
[HarmonyPatch(typeof(TavernModel), "ChangeMoney")]
|
||||||
public static void PrefixMoney(ref int value) {
|
public static void PrefixMoney(ref int value) {
|
||||||
|
Console.WriteLine($"Money is {value}");
|
||||||
if (value > 0) {
|
if (value > 0) {
|
||||||
value = (int)(value * Main.moneyMultiplier.Value);
|
value = (int)(value * Main.moneyMultiplier.Value);
|
||||||
|
Console.WriteLine($"Money modified to {value}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(UiController), "ChangeGameSpeed")]
|
[HarmonyPatch(typeof(UiController), "ChangeGameSpeed")]
|
||||||
public static void PrefixSpeed(ref int gameSpeed) {
|
public static void PrefixSpeed(ref int gameSpeed) {
|
||||||
|
Console.WriteLine($"Game speed is {gameSpeed}");
|
||||||
if (gameSpeed > 0) {
|
if (gameSpeed > 0) {
|
||||||
gameSpeed = Main.fastSpeed.Value;
|
gameSpeed = Main.fastSpeed.Value;
|
||||||
|
Console.WriteLine($"Game speed modified to {gameSpeed}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user