Compare commits
2 Commits
9d67968245
...
1af46039ea
Author | SHA1 | Date | |
---|---|---|---|
1af46039ea | |||
5adb7defec |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,3 +10,4 @@ Projects/Regiments/Regiments/obj/Release
|
||||
Projects/CykaOfQud/.vs/
|
||||
|
||||
Projects/CykaOfQud/.vscode/
|
||||
*.suo
|
||||
|
Binary file not shown.
Binary file not shown.
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user