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 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(".NETFramework,Version=v4.8", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("ItemCapPlus")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("0.0.0.0")]
[assembly: AssemblyInformationalVersion("0.0.0-alpha.0+4c0e79c91fa993ea137961651c441fdc1f94664d")]
[assembly: AssemblyProduct("Increase the cap for some items")]
[assembly: AssemblyTitle("ItemCapPlus")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.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 ItemCapPlus
{
[MycoMod(/*Could not decode attribute arguments.*/)]
[BepInPlugin("hed14.itemcapplus", "ItemCapPlus", "0.1.0")]
public class Plugin : BaseUnityPlugin
{
public const string PluginGUID = "hed14.itemcapplus";
public const string PluginName = "ItemCapPlus";
public const string PluginVersion = "0.1.0";
internal static ManualLogSource Logger;
private void Awake()
{
//IL_0021: Unknown result type (might be due to invalid IL or missing references)
//IL_0027: Expected O, but got Unknown
Logger = ((BaseUnityPlugin)this).Logger;
Logger.LogInfo((object)"Plugin hed14.itemcapplus is loaded!");
Harmony val = new Harmony("hed14.itemcapplus");
val.PatchAll();
Logger.LogInfo((object)"Harmony patches applied.");
}
}
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
public class PlayerResourceMaxPatch
{
private static void Postfix(PlayerResource __instance, ref int __result)
{
string iD = __instance.ID;
if (1 == 0)
{
}
int num = iD switch
{
"equip_loot" => 99,
"pa_token" => 99,
"dur_drops" => 99,
"r_replicator" => 99,
"scrap_standard" => 999,
"scrap_rare" => 999,
"scrap_epic" => 999,
"scrap_exotic" => 999,
_ => __result,
};
if (1 == 0)
{
}
__result = num;
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "ItemCapPlus";
public const string PLUGIN_NAME = "Increase the cap for some items";
public const string PLUGIN_VERSION = "0.0.0";
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}