using System; using System.Collections; 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 InscryptionAPI.Card; using InscryptionAPI.Helpers; using InscryptionAPI.Helpers.Extensions; using OLD_SA.SmallSigils; 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_Inferno_sigil")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("OldSa_Inferno_sigil")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("f922c8b9-44d0-47d2-9c0b-c7807a8cbfad")] [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.Inferno; public static class InfernoAPI { public static FullAbility ability; public unsafe static void Init() { //IL_00a8: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Unknown result type (might be due to invalid IL or missing references) AbilityInfo val = ScriptableObject.CreateInstance(); ((Object)val).name = "Inferno"; val.rulebookName = "Inferno"; val.metaCategories = new List { (AbilityMetaCategory)0 }; val.powerLevel = 4; val.opponentUsable = false; val.canStack = false; Texture imageAsTexture = (Texture)(object)TextureHelper.GetImageAsTexture("OldSa_Inferno.png", (FilterMode)0); FieldInfo field = typeof(AbilityInfo).GetField("rulebookDescription", BindingFlags.Instance | BindingFlags.NonPublic); if (field != null) { field.SetValue(val, "At the start of the turn, [creature] gives 1 Blaze to all opposing creatures."); } ability = AbilityManager.Add("OLD_SA", val, typeof(InfernoBehaviour), imageAsTexture); Ability id = ability.Id; Debug.Log((object)("Inferno registered ID=" + ((object)(*(Ability*)(&id))/*cast due to .constrained prefix*/).ToString())); } } public class InfernoBehaviour : AbilityBehaviour { public static Ability AbilityID => InfernoAPI.ability.Id; public override Ability Ability => AbilityID; public override bool RespondsToUpkeep(bool playerUpkeep) { if ((Object)(object)((AbilityBehaviour)this).Card == (Object)null || ((AbilityBehaviour)this).Card.Dead) { return false; } return ((AbilityBehaviour)this).Card.OpponentCard != playerUpkeep; } public override IEnumerator OnUpkeep(bool playerUpkeep) { if ((Object)(object)((AbilityBehaviour)this).Card == (Object)null || ((AbilityBehaviour)this).Card.Dead) { yield break; } yield return ((AbilityBehaviour)this).PreSuccessfulTriggerSequence(); List opposingCards = BoardManagerExtensions.GetCards(Singleton.Instance, !((AbilityBehaviour)this).Card.OpponentCard, (Predicate)null); foreach (PlayableCard target in opposingCards) { if (!((Object)(object)target == (Object)null) && !target.Dead) { SmallSigilManager.AddStacks(target, (SmallSigilType)0, 1); yield return null; } } yield return ((AbilityBehaviour)this).LearnAbility(0.25f); } } [BepInPlugin("OLD_SA.Inferno", "OLD SA Inferno Sigil", "1.0.0")] public class Plugin : BaseUnityPlugin { private void Awake() { Debug.Log((object)"[OLD SA Inferno] Loading..."); InfernoAPI.Init(); Debug.Log((object)"[OLD SA Inferno] Loaded."); } }