Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of Ye Olde Burn v1.0.1
YeOldeBurn.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using IL.RoR2; using Mono.Cecil.Cil; using MonoMod.Cil; using RoR2; [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.0", FrameworkDisplayName = "")] [assembly: AssemblyCompany("YeOldeBurn")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("YeOldeBurn")] [assembly: AssemblyTitle("YeOldeBurn")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace OldBurn; [BepInPlugin("xyz.yekoc.YeOldeBurn", "Ye Olde Burn", "1.0.0")] public class OldBurnPlugin : BaseUnityPlugin { [Serializable] [CompilerGenerated] private sealed class <>c { public static readonly <>c <>9 = new <>c(); public static Func<Instruction, bool> <>9__0_3; public static Action<InflictDotInfo, DamageInfo> <>9__0_5; public static Manipulator <>9__0_0; public static Func<Instruction, bool> <>9__0_6; public static Action<InflictDotInfo, int> <>9__0_8; public static Manipulator <>9__0_1; public static Func<Instruction, bool> <>9__0_9; public static Func<Instruction, bool> <>9__0_12; public static Func<Instruction, bool> <>9__0_13; public static Func<Instruction, bool> <>9__0_14; public static Action<InflictDotInfo, GrandParentSunController, int> <>9__0_15; public static Manipulator <>9__0_2; internal void <Awake>b__0_0(ILContext il) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) <>c__DisplayClass0_0 CS$<>8__locals0 = new <>c__DisplayClass0_0(); ILCursor val = new ILCursor(il); CS$<>8__locals0.InflictLoc = -1; val.GotoNext(new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")) }); val.GotoNext((MoveType)2, new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStloc(x, ref CS$<>8__locals0.InflictLoc) }); val.Emit(OpCodes.Ldloc, CS$<>8__locals0.InflictLoc); val.Emit(OpCodes.Ldarg, 1); val.EmitDelegate<Action<InflictDotInfo, DamageInfo>>((Action<InflictDotInfo, DamageInfo>)delegate(InflictDotInfo dot, DamageInfo damage) { dot.totalDamage = null; dot.duration = damage.procCoefficient * 4f; }); } internal bool <Awake>b__0_3(Instruction x) { return ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")); } internal void <Awake>b__0_5(InflictDotInfo dot, DamageInfo damage) { dot.totalDamage = null; dot.duration = damage.procCoefficient * 4f; } internal void <Awake>b__0_1(ILContext il) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) <>c__DisplayClass0_1 CS$<>8__locals0 = new <>c__DisplayClass0_1(); ILCursor val = new ILCursor(il); CS$<>8__locals0.InflictLoc = -1; val.GotoNext(new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")) }); val.GotoNext((MoveType)2, new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStloc(x, ref CS$<>8__locals0.InflictLoc) }); val.Emit(OpCodes.Ldloc, CS$<>8__locals0.InflictLoc); val.Emit(OpCodes.Ldarg, 1); val.EmitDelegate<Action<InflictDotInfo, int>>((Action<InflictDotInfo, int>)delegate(InflictDotInfo dot, int gasoline) { dot.totalDamage = null; dot.duration = 0.75f + 0.75f * (float)gasoline; }); } internal bool <Awake>b__0_6(Instruction x) { return ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")); } internal void <Awake>b__0_8(InflictDotInfo dot, int gasoline) { dot.totalDamage = null; dot.duration = 0.75f + 0.75f * (float)gasoline; } internal void <Awake>b__0_2(ILContext il) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Expected O, but got Unknown //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) <>c__DisplayClass0_2 CS$<>8__locals0 = new <>c__DisplayClass0_2(); ILCursor val = new ILCursor(il); CS$<>8__locals0.InflictLoc = -1; CS$<>8__locals0.num4loc = -1; val.GotoNext(new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")) }); val.GotoPrev(new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchLdloca(x, ref CS$<>8__locals0.InflictLoc) }); ILLabel val2 = default(ILLabel); val.GotoPrev(new Func<Instruction, bool>[3] { (Instruction x) => ILPatternMatchingExt.MatchLdloc(x, ref CS$<>8__locals0.num4loc), (Instruction x) => ILPatternMatchingExt.MatchLdcI4(x, 0), (Instruction x) => ILPatternMatchingExt.MatchBle(x, ref val2) }); val.GotoNext((MoveType)2, new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")) }); if (CS$<>8__locals0.InflictLoc != -1 && CS$<>8__locals0.num4loc != -1) { val.Emit(OpCodes.Ldloc, CS$<>8__locals0.InflictLoc); val.Emit(OpCodes.Ldarg, 0); val.Emit(OpCodes.Ldloc, CS$<>8__locals0.num4loc); val.EmitDelegate<Action<InflictDotInfo, GrandParentSunController, int>>((Action<InflictDotInfo, GrandParentSunController, int>)delegate(InflictDotInfo dot, GrandParentSunController self, int num4) { dot.totalDamage = null; dot.duration = self.burnDuration; dot.damageMultiplier = num4; }); } } internal bool <Awake>b__0_9(Instruction x) { return ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")); } internal bool <Awake>b__0_12(Instruction x) { return ILPatternMatchingExt.MatchLdcI4(x, 0); } internal bool <Awake>b__0_13(Instruction x) { ILLabel val = default(ILLabel); return ILPatternMatchingExt.MatchBle(x, ref val); } internal bool <Awake>b__0_14(Instruction x) { return ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")); } internal void <Awake>b__0_15(InflictDotInfo dot, GrandParentSunController self, int num4) { dot.totalDamage = null; dot.duration = self.burnDuration; dot.damageMultiplier = num4; } } [CompilerGenerated] private sealed class <>c__DisplayClass0_0 { public int InflictLoc; internal bool <Awake>b__4(Instruction x) { return ILPatternMatchingExt.MatchStloc(x, ref InflictLoc); } } [CompilerGenerated] private sealed class <>c__DisplayClass0_1 { public int InflictLoc; internal bool <Awake>b__7(Instruction x) { return ILPatternMatchingExt.MatchStloc(x, ref InflictLoc); } } [CompilerGenerated] private sealed class <>c__DisplayClass0_2 { public int InflictLoc; public int num4loc; internal bool <Awake>b__10(Instruction x) { return ILPatternMatchingExt.MatchLdloca(x, ref InflictLoc); } internal bool <Awake>b__11(Instruction x) { return ILPatternMatchingExt.MatchLdloc(x, ref num4loc); } } private void Awake() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_003f: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Expected O, but got Unknown //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Expected O, but got Unknown object obj = <>c.<>9__0_0; if (obj == null) { Manipulator val = delegate(ILContext il) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) ILCursor val7 = new ILCursor(il); int InflictLoc3 = -1; val7.GotoNext(new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")) }); val7.GotoNext((MoveType)2, new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStloc(x, ref InflictLoc3) }); val7.Emit(OpCodes.Ldloc, InflictLoc3); val7.Emit(OpCodes.Ldarg, 1); val7.EmitDelegate<Action<InflictDotInfo, DamageInfo>>((Action<InflictDotInfo, DamageInfo>)delegate(InflictDotInfo dot, DamageInfo damage) { dot.totalDamage = null; dot.duration = damage.procCoefficient * 4f; }); }; <>c.<>9__0_0 = val; obj = (object)val; } GlobalEventManager.OnHitEnemy += (Manipulator)obj; object obj2 = <>c.<>9__0_1; if (obj2 == null) { Manipulator val2 = delegate(ILContext il) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_0074: Unknown result type (might be due to invalid IL or missing references) ILCursor val6 = new ILCursor(il); int InflictLoc2 = -1; val6.GotoNext(new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")) }); val6.GotoNext((MoveType)2, new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStloc(x, ref InflictLoc2) }); val6.Emit(OpCodes.Ldloc, InflictLoc2); val6.Emit(OpCodes.Ldarg, 1); val6.EmitDelegate<Action<InflictDotInfo, int>>((Action<InflictDotInfo, int>)delegate(InflictDotInfo dot, int gasoline) { dot.totalDamage = null; dot.duration = 0.75f + 0.75f * (float)gasoline; }); }; <>c.<>9__0_1 = val2; obj2 = (object)val2; } GlobalEventManager.ProcIgniteOnKill += (Manipulator)obj2; object obj3 = <>c.<>9__0_2; if (obj3 == null) { Manipulator val3 = delegate(ILContext il) { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Expected O, but got Unknown //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_0134: Unknown result type (might be due to invalid IL or missing references) ILCursor val4 = new ILCursor(il); int InflictLoc = -1; int num4loc = -1; val4.GotoNext(new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")) }); val4.GotoPrev(new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchLdloca(x, ref InflictLoc) }); ILLabel val5 = default(ILLabel); val4.GotoPrev(new Func<Instruction, bool>[3] { (Instruction x) => ILPatternMatchingExt.MatchLdloc(x, ref num4loc), (Instruction x) => ILPatternMatchingExt.MatchLdcI4(x, 0), (Instruction x) => ILPatternMatchingExt.MatchBle(x, ref val5) }); val4.GotoNext((MoveType)2, new Func<Instruction, bool>[1] { (Instruction x) => ILPatternMatchingExt.MatchStfld(x, typeof(InflictDotInfo).GetField("totalDamage")) }); if (InflictLoc != -1 && num4loc != -1) { val4.Emit(OpCodes.Ldloc, InflictLoc); val4.Emit(OpCodes.Ldarg, 0); val4.Emit(OpCodes.Ldloc, num4loc); val4.EmitDelegate<Action<InflictDotInfo, GrandParentSunController, int>>((Action<InflictDotInfo, GrandParentSunController, int>)delegate(InflictDotInfo dot, GrandParentSunController self, int num4) { dot.totalDamage = null; dot.duration = self.burnDuration; dot.damageMultiplier = num4; }); } }; <>c.<>9__0_2 = val3; obj3 = (object)val3; } GrandParentSunController.ServerFixedUpdate += (Manipulator)obj3; } private void OnDestroy() { } }