Make double employee
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection.Emit;
|
||||
using BepInEx;
|
||||
using BepInEx.Configuration;
|
||||
using HarmonyLib;
|
||||
@@ -11,10 +14,10 @@ namespace CykaMod {
|
||||
private const string pluginName = "SupermarketTogether";
|
||||
private const string pluginVersion = "1.0.0";
|
||||
|
||||
public static ConfigEntry<float> skillCap;
|
||||
// public static ConfigEntry<float> skillCap;
|
||||
|
||||
public void Awake() {
|
||||
skillCap = Config.Bind("General", "Skill Cap", 100f);
|
||||
// skillCap = Config.Bind("General", "Skill Cap", 100f);
|
||||
|
||||
Logger.LogInfo("Cyka mod loaded");
|
||||
HarmonyFileLog.Enabled = true;
|
||||
@@ -24,4 +27,20 @@ namespace CykaMod {
|
||||
Logger.LogInfo("Patched " + originalMethods.Count() + " methods");
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(UpgradesManager), "ManageExtraPerks")]
|
||||
public static class ConsoleProductionReductionPatch {
|
||||
static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions) {
|
||||
var codes = new List<CodeInstruction>(instructions);
|
||||
|
||||
for (int i = 0; i < codes.Count; i++) {
|
||||
if (codes[i].opcode == OpCodes.Ldc_I4_1) {
|
||||
Console.WriteLine("Found Ldc_I4_1");
|
||||
codes[i].opcode = OpCodes.Ldc_I4_2;
|
||||
}
|
||||
}
|
||||
|
||||
return codes.AsEnumerable();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user