2 Commits

Author SHA1 Message Date
1af46039ea Remove suo files
What the fuck anyway...
2025-05-17 11:11:38 +02:00
5adb7defec Multiply the monies 2025-05-17 11:11:15 +02:00
6 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@@ -10,3 +10,4 @@ Projects/Regiments/Regiments/obj/Release
Projects/CykaOfQud/.vs/
Projects/CykaOfQud/.vscode/
*.suo

View File

@@ -52,11 +52,11 @@ namespace BlacksmithMaster {
[HarmonyPatch(typeof(TavernModel), "ChangeMoney")]
public class TavernModel_ChangeMoney {
public static void Prefix(ref int amount) {
Main.LogDebug("Original money amount: " + amount);
if (amount > 0)
amount = (int)((float)amount * Main.moneyMultiplier.Value);
Main.LogDebug("Modified money amount: " + amount);
public static void Prefix(ref int value) {
Main.LogDebug("Original money amount: " + value);
if (value > 0)
value = (int)((float)value * Main.moneyMultiplier.Value);
Main.LogDebug("Modified money amount: " + value);
}
}
}