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.Configuration;
|
||||
using HarmonyLib;
|
||||
@@ -35,16 +36,20 @@ namespace TavernDave {
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(TavernModel), "ChangeMoney")]
|
||||
public static void PrefixMoney(ref int value) {
|
||||
Console.WriteLine($"Money is {value}");
|
||||
if (value > 0) {
|
||||
value = (int)(value * Main.moneyMultiplier.Value);
|
||||
value = (int)(value * Main.moneyMultiplier.Value);
|
||||
Console.WriteLine($"Money modified to {value}");
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(UiController), "ChangeGameSpeed")]
|
||||
public static void PrefixSpeed(ref int gameSpeed) {
|
||||
Console.WriteLine($"Game speed is {gameSpeed}");
|
||||
if (gameSpeed > 0) {
|
||||
gameSpeed = Main.fastSpeed.Value;
|
||||
Console.WriteLine($"Game speed modified to {gameSpeed}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user