using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using LBoL.Core;
using LBoL.Core.Cards;
using LBoL.Presentation;
using LBoL.Presentation.UI.Panels;
using LBoL.Presentation.UI.Transitions;
using LBoL.Presentation.Units;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: IgnoresAccessChecksTo("LBoL.Base")]
[assembly: IgnoresAccessChecksTo("LBoL.ConfigData")]
[assembly: IgnoresAccessChecksTo("LBoL.Core")]
[assembly: IgnoresAccessChecksTo("LBoL.EntityLib")]
[assembly: IgnoresAccessChecksTo("LBoL.Presentation")]
[assembly: IgnoresAccessChecksTo("Untitled.ConfigDataBuilder.Base")]
[assembly: AssemblyCompany("FasterLBoL")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("FasterLBoL")]
[assembly: AssemblyTitle("FasterLBoL")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace FasterLBoL
{
[BepInPlugin("intoxicatedkid.fasterlbol", "Faster LBoL", "1.1.4")]
[BepInProcess("LBoL.exe")]
public class BepinexPlugin : BaseUnityPlugin
{
[HarmonyPatch(typeof(GameMaster), "SetTurboMode")]
private class FasterLBoL1
{
private static bool Prefix(bool turboMode)
{
Time.timeScale = (turboMode ? ((float)Math.Min(Math.Max(TurboOn.Value, 1), 1000) / 100f) : ((float)Math.Min(Math.Max(TurboOff.Value, 1), 1000) / 100f));
return false;
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL2
{
private static bool Prefix(ref string __result)
{
__result = ((float)TurboOn.Value / 100f).ToString("G0");
return false;
}
}
[HarmonyPatch(typeof(GameDirector), "GunShootAction", new Type[]
{
typeof(UnitView),
typeof(IList<ValueTuple<UnitView, DamageInfo>>),
typeof(string),
typeof(GunType)
})]
private class FasterLBoL3
{
private static void Prefix(GameDirector __instance, ref UnitView source, ref IList<(UnitView, DamageInfo)> pairs, ref string gunName, ref GunType type)
{
if (SkipDanmaku.Value)
{
gunName = "Instant";
}
}
}
[HarmonyPatch(typeof(CardUi), "FastRemoveHand")]
private class FasterLBoL4
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).InstructionEnumeration();
}
}
[HarmonyPatch(typeof(CardUi), "FastRemoveCard")]
private class FasterLBoL5
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL6
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).InstructionEnumeration();
}
}
[HarmonyPatch(typeof(CardUi), "SimpleCardFlyEffect")]
private class FasterLBoL7
{
private static void Prefix(CardUi __instance, ref CardZone from, ref CardZone to, ref float time)
{
time = 0.01f;
}
}
[HarmonyPatch(typeof(CardUi), "ShowCardMoveRunner")]
private class FasterLBoL8
{
private static void Prefix(CardUi __instance, ref Card card, ref int index, ref int total)
{
index = 99;
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL9
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).InstructionEnumeration();
}
}
[HarmonyPatch(typeof(CardUi), "DelayedAdjustCardsPosition")]
private class FasterLBoL10
{
private static void Prefix(CardUi __instance, ref float delay)
{
delay = 0.01f;
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL11
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_0089: Unknown result type (might be due to invalid IL or missing references)
//IL_008f: Expected O, but got Unknown
//IL_00c5: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Expected O, but got Unknown
//IL_0101: Unknown result type (might be due to invalid IL or missing references)
//IL_0107: Expected O, but got Unknown
//IL_013d: Unknown result type (might be due to invalid IL or missing references)
//IL_0143: Expected O, but got Unknown
//IL_0179: Unknown result type (might be due to invalid IL or missing references)
//IL_017f: Expected O, but got Unknown
//IL_01b5: Unknown result type (might be due to invalid IL or missing references)
//IL_01bb: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL12
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL13
{
private static int SkipShuffleCheck()
{
return (!SkipShuffle.Value) ? 10 : 0;
}
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_001c: Unknown result type (might be due to invalid IL or missing references)
//IL_0022: Expected O, but got Unknown
//IL_0064: Unknown result type (might be due to invalid IL or missing references)
//IL_006a: Expected O, but got Unknown
//IL_00a0: Unknown result type (might be due to invalid IL or missing references)
//IL_00a6: Expected O, but got Unknown
//IL_00dc: Unknown result type (might be due to invalid IL or missing references)
//IL_00e2: Expected O, but got Unknown
//IL_0118: Unknown result type (might be due to invalid IL or missing references)
//IL_011e: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_I4_S, (object)null, (string)null)
}).Set(OpCodes.Call, (object)AccessTools.Method(typeof(FasterLBoL13), "SkipShuffleCheck", (Type[])null, (Type[])null)).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.25f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.05f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL14
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00df: Expected O, but got Unknown
//IL_0115: Unknown result type (might be due to invalid IL or missing references)
//IL_011b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.05f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.25f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL15
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00df: Expected O, but got Unknown
//IL_0115: Unknown result type (might be due to invalid IL or missing references)
//IL_011b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.05f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.25f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL16
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00df: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.05f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL17
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00df: Expected O, but got Unknown
//IL_0115: Unknown result type (might be due to invalid IL or missing references)
//IL_011b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.05f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.25f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL18
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL19
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL20
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL21
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00df: Expected O, but got Unknown
//IL_0115: Unknown result type (might be due to invalid IL or missing references)
//IL_011b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.1f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.1f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.1f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.1f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL22
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00df: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.1f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(typeof(BattleNotifier), "ShowBattleStart")]
private class FasterLBoL23
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00df: Expected O, but got Unknown
//IL_0115: Unknown result type (might be due to invalid IL or missing references)
//IL_011b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(typeof(BattleNotifier), "DoShowTurn")]
private class FasterLBoL24
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00df: Expected O, but got Unknown
//IL_0115: Unknown result type (might be due to invalid IL or missing references)
//IL_011b: Expected O, but got Unknown
//IL_0151: Unknown result type (might be due to invalid IL or missing references)
//IL_0157: Expected O, but got Unknown
//IL_018d: Unknown result type (might be due to invalid IL or missing references)
//IL_0193: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.3f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(typeof(RewardPanel), "ShowCardSelection")]
private class FasterLBoL25
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
//IL_00d9: Unknown result type (might be due to invalid IL or missing references)
//IL_00df: Expected O, but got Unknown
//IL_0115: Unknown result type (might be due to invalid IL or missing references)
//IL_011b: Expected O, but got Unknown
//IL_0151: Unknown result type (might be due to invalid IL or missing references)
//IL_0157: Expected O, but got Unknown
//IL_018d: Unknown result type (might be due to invalid IL or missing references)
//IL_0193: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.1f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.05f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.45f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.1f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.05f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.35f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL26
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.2f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL27
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
//IL_009d: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL28
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
//IL_0061: Unknown result type (might be due to invalid IL or missing references)
//IL_0067: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)4f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)5f, (string)null)
})
.Set(OpCodes.Ldc_R4, (object)0.01f)
.InstructionEnumeration();
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class FasterLBoL29
{
private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
//IL_0003: Unknown result type (might be due to invalid IL or missing references)
//IL_0025: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Expected O, but got Unknown
return new CodeMatcher(instructions, (ILGenerator)null).MatchEndForward((CodeMatch[])(object)new CodeMatch[1]
{
new CodeMatch((OpCode?)OpCodes.Ldc_R4, (object)0.5f, (string)null)
}).Set(OpCodes.Ldc_R4, (object)0.01f).InstructionEnumeration();
}
}
[HarmonyPatch(typeof(MapTransition), "Animate")]
private class FasterLBoL30
{
private static void Prefix(MapTransition __instance, ref Transform target, ref bool isOut, ref Action onComplete)
{
__instance.duration = 0.01f;
}
}
private static readonly Harmony harmony = PInfo.harmony;
internal static ManualLogSource log;
public static ConfigEntry<int> TurboOff;
public static ConfigEntry<int> TurboOn;
public static ConfigEntry<bool> SkipDanmaku;
public static ConfigEntry<bool> SkipShuffle;
private void Awake()
{
//IL_0036: Unknown result type (might be due to invalid IL or missing references)
//IL_0048: Unknown result type (might be due to invalid IL or missing references)
//IL_0052: Expected O, but got Unknown
//IL_0052: Expected O, but got Unknown
//IL_0067: Unknown result type (might be due to invalid IL or missing references)
//IL_007c: Unknown result type (might be due to invalid IL or missing references)
//IL_0086: Expected O, but got Unknown
//IL_0086: Expected O, but got Unknown
//IL_009b: Unknown result type (might be due to invalid IL or missing references)
//IL_00ac: Unknown result type (might be due to invalid IL or missing references)
//IL_00b6: Expected O, but got Unknown
//IL_00b6: Expected O, but got Unknown
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00dc: Unknown result type (might be due to invalid IL or missing references)
//IL_00e6: Expected O, but got Unknown
//IL_00e6: Expected O, but got Unknown
log = ((BaseUnityPlugin)this).Logger;
Object.DontDestroyOnLoad((Object)(object)((Component)this).gameObject);
((Object)((Component)this).gameObject).hideFlags = (HideFlags)61;
TurboOff = ((BaseUnityPlugin)this).Config.Bind<int>(new ConfigDefinition("TurboOff", "Turbo Off"), 100, new ConfigDescription("Game speed when Turbo Mode is disabled. Range 1 - 1000.", (AcceptableValueBase)null, Array.Empty<object>()));
TurboOn = ((BaseUnityPlugin)this).Config.Bind<int>(new ConfigDefinition("TurboOn", "Turbo On"), 200, new ConfigDescription("Game speed when Turbo Mode is enabled. Range 1 - 1000.", (AcceptableValueBase)null, Array.Empty<object>()));
SkipDanmaku = ((BaseUnityPlugin)this).Config.Bind<bool>(new ConfigDefinition("SkipDanmaku", "Skip Danmaku"), false, new ConfigDescription("When enabled, many danmaku animations are skipped.", (AcceptableValueBase)null, Array.Empty<object>()));
SkipShuffle = ((BaseUnityPlugin)this).Config.Bind<bool>(new ConfigDefinition("SkipShuffle", "Skip Shuffle"), true, new ConfigDescription("When enabled, shuffle is skipped.", (AcceptableValueBase)null, Array.Empty<object>()));
harmony.PatchAll();
}
private void OnDestroy()
{
if (harmony != null)
{
harmony.UnpatchSelf();
}
}
}
public static class PInfo
{
public const string GUID = "intoxicatedkid.fasterlbol";
public const string Name = "Faster LBoL";
public const string version = "1.1.4";
public static readonly Harmony harmony = new Harmony("intoxicatedkid.fasterlbol");
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
internal IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}