Add dependencies

This commit is contained in:
2024-04-17 13:21:49 +02:00
parent 15b35f7904
commit 8a38ba5aa8
24 changed files with 131 additions and 7920 deletions

View File

@@ -0,0 +1,24 @@
using HarmonyLib;
namespace TerraTech {
[HarmonyPatch]
public class Patches {
[HarmonyPrefix]
[HarmonyPatch(typeof(ManLicenses), "AddXP")]
static void XPMulti(FactionSubTypes corporation, ref int xp, bool showUI = true) {
xp = (int)(xp * Main.xpMultiplier.Value);
}
[HarmonyPrefix]
[HarmonyPatch(typeof(ManPlayer), "AddMoney")]
static void MoneyMulti(ref int amount) {
amount = (int)(amount * Main.moneyMultiplier.Value);
}
[HarmonyPrefix]
[HarmonyPatch(typeof(TechHolders), "SetHeartbeatInterval")]
static void HeartbeatMulti(ref float interval) {
interval *= Main.heartbeatIntervalMultiplier.Value;
}
}
}

View File

@@ -0,0 +1,5 @@
namespace Regiments {
public class Transpiler {
}
}