using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using DiskCardGame; using HarmonyLib; using InscryptionAPI.Card; using InscryptionAPI.Helpers; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("OldSa_Martyr's Sting_station")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("OldSa_Martyr's Sting_station")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("292d45ee-add0-4f6e-b6d7-c6be983e9d4a")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace OLD_SA.MartyrsSting; public class MartyrsSting : VariableStatBehaviour { public static SpecialStatIcon iconType; protected override SpecialStatIcon IconType => iconType; public static void Init() { //IL_0086: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) StatIconInfo val = ScriptableObject.CreateInstance(); val.rulebookName = "Martyr's Sting"; val.rulebookDescription = "The lower this creature's health, the higher its attack."; Texture2D imageAsTexture = TextureHelper.GetImageAsTexture("Martyr's Sting.png", (FilterMode)0); val.iconGraphic = (Texture)(object)imageAsTexture; Texture2D imageAsTexture2 = TextureHelper.GetImageAsTexture("Martyr's Sting_px.png", (FilterMode)0); AbilityExtensions.SetPixelIcon(val, imageAsTexture2, (FilterMode?)null); val.metaCategories = new List { (AbilityMetaCategory)0 }; val.appliesToAttack = true; val.appliesToHealth = false; FullStatIcon val2 = StatIconManager.Add("OLD_SA", val, typeof(MartyrsSting)); iconType = val2.Id; } protected override int[] GetStatValues() { if ((Object)(object)((SpecialCardBehaviour)this).PlayableCard == (Object)null || (Object)(object)((SpecialCardBehaviour)this).PlayableCard.Slot == (Object)null) { return new int[2]; } int maxHealth = ((SpecialCardBehaviour)this).PlayableCard.MaxHealth; int health = ((SpecialCardBehaviour)this).PlayableCard.Health; int num = maxHealth - health; return new int[2] { 1 + num, 0 }; } } [BepInPlugin("OLD_SA.MartyrsSting", "OLD_SA Martyr's Sting", "1.0.0")] public class Plugin : BaseUnityPlugin { private void Awake() { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown MartyrsSting.Init(); Harmony val = new Harmony("OLD_SA.MartyrsSting"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"OLD_SA Martyr's Sting Loaded"); } }