using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using Bifrost.ItemConsumable;
using Bifrost.ItemEquipment;
using HarmonyLib;
using MelonLoader;
using Microsoft.CodeAnalysis;
using MimesisMods.DualWield;
using MimesisMods.InfiniteAmmo;
using MimesisMods.NoWeight;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(DualWieldMod), "DualWield", "1.0.0", "YourName", null)]
[assembly: MelonInfo(typeof(InfiniteAmmoMod), "InfiniteAmmo", "1.0.0", "YourName", null)]
[assembly: MelonInfo(typeof(NoWeightMod), "NoWeight", "1.0.0", "YourName", null)]
[assembly: MelonGame("ReLUGames", "MIMESIS")]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("MimesisMods")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("MimesisMods")]
[assembly: AssemblyTitle("MimesisMods")]
[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.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
[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 MimesisMods.NoWeight
{
public class NoWeightMod : MelonMod
{
public override void OnInitializeMelon()
{
((MelonBase)this).LoggerInstance.Msg("NoWeight 초기화 중...");
((MelonBase)this).HarmonyInstance.PatchAll(typeof(NoWeightMod).Assembly);
((MelonBase)this).LoggerInstance.Msg("NoWeight 완료! 모든 아이템 무게 = 0");
}
}
[HarmonyPatch(typeof(ItemEquipment_MasterData), "Load", new Type[] { typeof(BinaryReader) })]
public class NoWeightEquipmentPatch
{
private static void Postfix(ItemEquipment_MasterData __instance)
{
__instance.weight = 0;
}
}
[HarmonyPatch(typeof(ItemConsumable_MasterData), "Load", new Type[] { typeof(BinaryReader) })]
public class NoWeightConsumablePatch
{
private static void Postfix(ItemConsumable_MasterData __instance)
{
__instance.weight = 0;
}
}
}
namespace MimesisMods.InfiniteAmmo
{
public class InfiniteAmmoMod : MelonMod
{
public override void OnInitializeMelon()
{
((MelonBase)this).LoggerInstance.Msg("InfiniteAmmo 초기화 중...");
((MelonBase)this).HarmonyInstance.PatchAll(typeof(InfiniteAmmoMod).Assembly);
((MelonBase)this).LoggerInstance.Msg("InfiniteAmmo 완료! 탄약 소모량 = 0");
}
}
[HarmonyPatch(typeof(ItemEquipment_MasterData), "Load", new Type[] { typeof(BinaryReader) })]
public class InfiniteAmmoEquipmentPatch
{
private static void Postfix(ItemEquipment_MasterData __instance)
{
if (__instance.max_gauge > 0)
{
__instance.dec_gauge_per_use = 0;
__instance.max_gauge = 9999;
}
}
}
[HarmonyPatch(typeof(ItemConsumable_MasterData), "Load", new Type[] { typeof(BinaryReader) })]
public class InfiniteAmmoConsumablePatch
{
private static void Postfix(ItemConsumable_MasterData __instance)
{
__instance.max_stack_count = 9999;
}
}
}
namespace MimesisMods.DualWield
{
public class DualWieldMod : MelonMod
{
public override void OnInitializeMelon()
{
((MelonBase)this).LoggerInstance.Msg("DualWield 초기화 중...");
((MelonBase)this).HarmonyInstance.PatchAll(typeof(DualWieldMod).Assembly);
((MelonBase)this).LoggerInstance.Msg("DualWield 완료! 모든 아이템을 한 손으로 들 수 있음");
}
}
[HarmonyPatch(typeof(ItemEquipment_MasterData), "Load", new Type[] { typeof(BinaryReader) })]
public class DualWieldPatch
{
private static void Postfix(ItemEquipment_MasterData __instance)
{
__instance.is_two_hand = false;
}
}
}