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 BepInEx.Logging;
using DiskCardGame;
using Fuck_Dialog_Saving.PATCHES;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: IgnoresAccessChecksTo("Sirenix.Serialization")]
[assembly: AssemblyCompany("Fuck_Dialog_Saving")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("You Shall Not Save My Dialog")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+9fda639320129452e468b221cdf65bb2dfbd67c8")]
[assembly: AssemblyProduct("Fuck_Dialog_Saving")]
[assembly: AssemblyTitle("Fuck_Dialog_Saving")]
[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 Fuck_Dialog_Saving.PATCHES
{
[HarmonyPatch]
internal static class ProgressionDataNew
{
[HarmonyPrefix]
[HarmonyPatch(typeof(ProgressionData), "SetAbilityLearned")]
public static bool PrefixAbilityLearned(Ability ability)
{
//IL_000a: Unknown result type (might be due to invalid IL or missing references)
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
if (!ProgressionData.Data.learnedAbilities.Contains(ability))
{
Console.WriteLine($"[ProgressionDataPatches] Skipping saving ability: {ability}");
}
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(ProgressionData), "SetMechanicLearned")]
public static bool PrefixMechanicLearned(MechanicsConcept mechanic)
{
//IL_0011: Unknown result type (might be due to invalid IL or missing references)
//IL_001e: Unknown result type (might be due to invalid IL or missing references)
if (!SaveFile.IsAscension && !ProgressionData.Data.learnedMechanics.Contains(mechanic))
{
Console.WriteLine($"[ProgressionDataPatches] Skipping saving mechanic: {mechanic}");
}
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(ProgressionData), "SetCardLearned")]
public static bool PrefixCardLearned(CardInfo card)
{
if (!ProgressionData.Data.learnedCards.Contains(((Object)card).name))
{
Console.WriteLine("[ProgressionDataPatches] Skipping saving card: " + ((Object)card).name);
}
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(ProgressionData), "SetCardIntroduced")]
public static bool PrefixCardIntroduced(CardInfo card)
{
if (!ProgressionData.Data.introducedCards.Contains(((Object)card).name))
{
Console.WriteLine("[ProgressionDataPatches] Skipping saving introduced card: " + ((Object)card).name);
}
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(ProgressionData), "SetConsumableIntroduced", new Type[] { typeof(ItemData) })]
public static bool PrefixItemIntroduced(ItemData item)
{
Console.WriteLine($"[ProgressionDataPatches] Skipping saving introduced consumable: {item}");
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(ProgressionData), "SetConsumableIntroduced", new Type[] { typeof(string) })]
public static bool PrefixItemIntroduced(string name)
{
if (!ProgressionData.Data.introducedConsumables.Contains(name))
{
Console.WriteLine("[ProgressionDataPatches] Skipping saving introduced consumable: " + name);
}
return false;
}
}
}
namespace Fuck_Dialouge_Saving
{
public class Fuck_Dialog_Saving : BaseUnityPlugin
{
public const string PluginGuid = "creator.FuckDialougeSaving";
public const string PluginName = "Fuck Dialouge Saving";
public const string PluginVersion = "1.0.0";
public const string PluginPrefix = "Fuck_Dialog_Saving";
public static ManualLogSource Log = new ManualLogSource("Fuck Dialouge Saving");
public static Harmony harmony = new Harmony("creator.FuckDialougeSaving");
public void Awake()
{
harmony.PatchAll(typeof(ProgressionDataNew));
((BaseUnityPlugin)this).Logger.LogMessage((object)"creator.FuckDialougeSaving: Loaded Mod: Fuck Dialouge Saving - 1.0.0");
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "Fuck_Dialog_Saving";
public const string PLUGIN_NAME = "Fuck_Dialog_Saving";
public const string PLUGIN_VERSION = "1.0.0";
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}