using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using DiskCardGame;
using HarmonyLib;
using Microsoft.CodeAnalysis;
[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 = ".NET Standard 2.0")]
[assembly: AssemblyCompany("MakeCutWoodcarverBossAccessible")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Placeholder description")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("MakeCutWoodcarverBossAccessible")]
[assembly: AssemblyTitle("MakeCutWoodcarverBossAccessible")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[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 MakeCutWoodcarverBossAccessible
{
[BepInPlugin("tvflabs.inscryption.MakeCutWoodcarverBossAccessible", "MakeCutWoodcarverBossAccessible", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
private class BossBattleNodeData_PrefabPath_Getter_Patch
{
private static void Postfix(BossBattleNodeData __instance, ref string __result)
{
//IL_0002: Unknown result type (might be due to invalid IL or missing references)
//IL_0008: Invalid comparison between Unknown and I4
if ((int)__instance.bossType == 5)
{
__result = "Prefabs/Map/MapNodesPart1/MapNode_TotemCardBattle";
}
}
}
[HarmonyPatch(typeof(MapGenerator), "CreateNode")]
private class MapGenerator_CreateNode_Patch
{
private static void Postfix(int x, int y, List<NodeData> nodesInRow, List<NodeData> previousNodes, int mapLength, MapGenerator __instance, ref NodeData __result)
{
//IL_0019: Unknown result type (might be due to invalid IL or missing references)
//IL_001f: Invalid comparison between Unknown and I4
//IL_002f: Unknown result type (might be due to invalid IL or missing references)
if (__result is BossBattleNodeData && (int)((BossBattleNodeData)/*isinst with value type is only supported in some contexts*/).bossType == 6)
{
NodeData obj = __result;
((BossBattleNodeData)((obj is BossBattleNodeData) ? obj : null)).bossType = (Type)5;
NodeData obj2 = __result;
((CardBattleNodeData)((obj2 is BossBattleNodeData) ? obj2 : null)).specialBattleId = BossBattleSequencer.GetSequencerIdForBoss((Type)5);
}
}
}
private Harmony harmony = new Harmony("tvflabs.inscryption.MakeCutWoodcarverBossAccessible");
private const string PluginGuid = "tvflabs.inscryption.MakeCutWoodcarverBossAccessible";
private const string PluginName = "MakeCutWoodcarverBossAccessible";
private const string PluginVersion = "1.0.0";
private const string PluginPrefix = "MakeCutWoodcarverBossAccessible";
private void Awake()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded MakeCutWoodcarverBossAccessible!");
harmony.PatchAll();
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "MakeCutWoodcarverBossAccessible";
public const string PLUGIN_NAME = "MakeCutWoodcarverBossAccessible";
public const string PLUGIN_VERSION = "1.0.0";
}
}