using 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 HarmonyLib;
using Microsoft.CodeAnalysis;
using RoR2;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("FixRaR")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("FixRaR")]
[assembly: AssemblyTitle("FixRaR")]
[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 FixRaR
{
[BepInPlugin("_score.FixRecoveredAndReformed", "FixRecoveredAndReformed", "0.0.1")]
public class FixRaRPlugin : BaseUnityPlugin
{
public const string PluginGUID = "_score.FixRecoveredAndReformed";
public const string PluginAuthor = "score";
public const string PluginName = "FixRecoveredAndReformed";
public const string PluginVersion = "0.0.1";
public void Awake()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
//IL_000b: Expected O, but got Unknown
Harmony val = new Harmony("_score.FixRecoveredAndReformed");
try
{
val.CreateClassProcessor(typeof(FixVariety)).Patch();
}
catch (Exception)
{
}
}
}
[HarmonyPatch]
public class FixVariety
{
[HarmonyPatch("RecoveredAndReformed.Main+<>c__DisplayClass120_0, RecoveredAndReformed, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "<Awake>g__HandleDccs|13")]
[HarmonyPrefix]
public static bool FixName(DirectorCardCategorySelection dccs)
{
return (Object)(object)dccs != (Object)null;
}
}
}