mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-08 23:33:33 +08:00
code cleanup
This commit is contained in:
@@ -20,7 +20,7 @@ public class Dustbin : BaseUnityPlugin, IModCanSave, IMultiplayerMod
|
||||
public new static readonly BepInEx.Logging.ManualLogSource Logger =
|
||||
BepInEx.Logging.Logger.CreateLogSource(PluginInfo.PLUGIN_NAME);
|
||||
|
||||
public static readonly int[] SandsFactors = new int[12001];
|
||||
private static readonly int[] SandsFactors = new int[12001];
|
||||
|
||||
public bool CheckVersion(string hostVersion, string clientVersion)
|
||||
{
|
||||
|
||||
@@ -91,7 +91,10 @@ public class LogisticMiner : BaseUnityPlugin
|
||||
{
|
||||
_miningSpeedScaleByTech = GameMain.history.miningSpeedScale;
|
||||
_miningSpeedScaleLong = (long)(_miningSpeedScaleByTech * 100);
|
||||
_miningFrames = 120f / _miningSpeedScaleByTech;
|
||||
lock (PlanetVeinCacheData)
|
||||
{
|
||||
_miningFrames = 120f / _miningSpeedScaleByTech;
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
|
||||
@@ -65,8 +65,8 @@ public class MechaDronesTweaksPlugin : BaseUnityPlugin
|
||||
|
||||
public static class MechaDronesTweaks
|
||||
{
|
||||
public static bool UseFixedSpeed = false;
|
||||
public static bool SkipStage1 = false;
|
||||
public static bool UseFixedSpeed;
|
||||
public static bool SkipStage1;
|
||||
public static bool RemoveSpeedLimitForStage1 = true;
|
||||
public static float FixedSpeed = 300f;
|
||||
public static float SpeedMultiplier = 4f;
|
||||
|
||||
@@ -13,7 +13,7 @@ public class OrbitalCollectorBatchBuild : BaseUnityPlugin
|
||||
|
||||
private bool _cfgEnabled = true;
|
||||
private static int _maxBuildCount;
|
||||
private static bool _instantBuild = false;
|
||||
private static bool _instantBuild;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ public static class BeltFix
|
||||
[HarmonyPatch(typeof(ConnGizmoRenderer), "Update")]
|
||||
public static IEnumerable<CodeInstruction> ConnGizmoRenderer_Update_Transpiler(IEnumerable<CodeInstruction> instructions, ILGenerator generator)
|
||||
{
|
||||
bool lastIsLdcI4_3 = false;
|
||||
var lastIsLdcI4_3 = false;
|
||||
foreach (var instr in instructions)
|
||||
{
|
||||
if (lastIsLdcI4_3)
|
||||
|
||||
@@ -18,7 +18,7 @@ public class Patch : BaseUnityPlugin, IModCanSave
|
||||
BepInEx.Logging.Logger.CreateLogSource(PluginInfo.PLUGIN_NAME);
|
||||
|
||||
private const ushort SaveVersion = 1;
|
||||
private static bool _initialized = false;
|
||||
private static bool _initialized;
|
||||
public static Cfg Cfg = new();
|
||||
private static Cfg _oldCfg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user