Decompiled source of PlecakDlaCweli v1.1.0

plugins/PlecakCweli.dll

Decompiled a month ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using Jotunn;
using Jotunn.Entities;
using Jotunn.Managers;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("PlecakCweli")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("PlecakCweli")]
[assembly: AssemblyCopyright("Copyright © 2024 Dominik Z")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e3243d22-4307-4008-ba36-9f326008cde5")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8.1", FrameworkDisplayName = ".NET Framework 4.8.1")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.0")]
namespace PlecakCweli;

[BepInPlugin("pl.zienti.cwelinskiPlecak", "PlecakDlaCweli", "0.0.1")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
internal class PlecakCwelinskiego : BaseUnityPlugin
{
	[HarmonyPatch(typeof(Player))]
	[HarmonyPatch("GetMaxCarryWeight")]
	public class MaxCarryWeightPatch
	{
		[HarmonyPostfix]
		private static void Postfix(ref float __result)
		{
			__result = 9999f;
		}
	}

	public const string PluginGUID = "pl.zienti.cwelinskiPlecak";

	public const string PluginName = "PlecakDlaCweli";

	public const string PluginVersion = "0.0.1";

	public static CustomLocalization Localization = LocalizationManager.Instance.GetLocalization();

	private void Awake()
	{
		//IL_0011: Unknown result type (might be due to invalid IL or missing references)
		//IL_0017: Expected O, but got Unknown
		Logger.LogInfo((object)"Plecak Cweli Załadowany!");
		Harmony val = new Harmony("pl.zienti.cwelinskiPlecak");
		val.PatchAll();
	}
}