mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 04:13:32 +08:00
missing patch
This commit is contained in:
@@ -92,6 +92,21 @@ public class Patch : BaseUnityPlugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyTranspiler]
|
||||||
|
[HarmonyPatch(typeof(UIReplicatorWindow), "OnOkButtonClick")]
|
||||||
|
private static IEnumerable<CodeInstruction> UIReplicatorWindow_OnOkButtonClick_Transpiler(IEnumerable<CodeInstruction> instructions)
|
||||||
|
{
|
||||||
|
foreach (var instr in instructions)
|
||||||
|
{
|
||||||
|
if (instr.opcode == OpCodes.Ldc_I4_S && instr.OperandIs(10))
|
||||||
|
{
|
||||||
|
instr.opcode = OpCodes.Ldc_I4;
|
||||||
|
instr.operand = 1000;
|
||||||
|
}
|
||||||
|
yield return instr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[HarmonyTranspiler]
|
[HarmonyTranspiler]
|
||||||
[HarmonyPatch(typeof(UIReplicatorWindow), "OnPlusButtonClick")]
|
[HarmonyPatch(typeof(UIReplicatorWindow), "OnPlusButtonClick")]
|
||||||
[HarmonyPatch(typeof(UIReplicatorWindow), "OnMinusButtonClick")]
|
[HarmonyPatch(typeof(UIReplicatorWindow), "OnMinusButtonClick")]
|
||||||
|
|||||||
Reference in New Issue
Block a user