33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using System.Linq;
|
|
using BepInEx;
|
|
using BepInEx.Configuration;
|
|
using HarmonyLib;
|
|
using HarmonyLib.Tools;
|
|
|
|
// TODO: Make shield and repair bigger
|
|
// TODO: Maybe make props faster, thrusters work fine
|
|
|
|
namespace Zompiercer {
|
|
[BepInPlugin(PluginGuid, PluginName, PluginVersion)]
|
|
public class Main : BaseUnityPlugin {
|
|
private const string PluginGuid = "CykPiercer";
|
|
private const string PluginName = "CykaPiercer";
|
|
private const string PluginVersion = "1.0.0";
|
|
|
|
public static ConfigEntry<bool> debug;
|
|
public static ConfigEntry<float> weightMultiplier;
|
|
|
|
public void Awake() {
|
|
debug = Config.Bind("General", "Debug", false);
|
|
weightMultiplier = Config.Bind("General", "Weight Multiplier", 1.0f, "Multiplier for the weight of the tank");
|
|
|
|
Logger.LogInfo("Cyka mod loaded");
|
|
HarmonyFileLog.Enabled = true;
|
|
Harmony harmony = new Harmony(PluginGuid);
|
|
harmony.PatchAll();
|
|
var originalMethods = harmony.GetPatchedMethods();
|
|
Logger.LogInfo("Patched " + originalMethods.Count() + " methods");
|
|
}
|
|
}
|
|
}
|