Notice: Wrestling Empire is now using Steam Workshop for official mod support. This page is going to remain accessible, but it's likely the content is not going to be kept up to date.
Decompiled source of OnePunch v2.0.0
plugins/gam3r-OnePunch-2.0.0/OnePunch.dll
Decompiled a month agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyCompany("OnePunch")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("OnePunch")] [assembly: AssemblyTitle("OnePunch")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace OnePunch { [BepInPlugin("com.gam3r.OnePunch", "OnePunch", "2.0.0")] public class OnePunchMod : BaseUnityPlugin { private void Awake() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) new Harmony("com.gam3r.OnePunch").PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"ONE PUNCH ENABLED! Old School 2.0.0 by gam3r"); } } [HarmonyPatch(typeof(Character), "ENFFLODMENJ")] public class Patch_CharacterDamage { private static void Prefix(Character __instance) { if (__instance.id == Characters.star) { __instance.health = 999999f; __instance.spirit = 999999f; __instance.injury = 0; } } private static void Postfix(Character __instance) { if (__instance.id != Characters.star) { __instance.health = 0f; __instance.injury = int.MaxValue; } } } }