using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Unity.IL2CPP;
using GameData;
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(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("Fumo")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("Fumo")]
[assembly: AssemblyTitle("Fumo")]
[assembly: AssemblyVersion("1.0.0.0")]
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;
}
}
}
[BepInPlugin("FumoPacks", "FumoPacks", "1.0.0")]
internal class Loader : BasePlugin
{
private static Harmony? _harmony_fumo;
public override void Load()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_0010: Expected O, but got Unknown
_harmony_fumo = new Harmony("Fumo");
_harmony_fumo.PatchAll();
}
}
[HarmonyPatch]
internal static class FumoPacks
{
[HarmonyPatch(typeof(GameDataInit), "Initialize")]
[HarmonyPostfix]
internal static void Funky()
{
GameDataBlockBase<ItemDataBlock>.GetBlock(101u).FirstPersonPrefabs[1] = "Assets/FumoPacks/PCB/Youmu/Ammopack/FumoPack_Ammo.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(101u).ThirdPersonPrefabs[1] = "Assets/FumoPacks/PCB/Youmu/Ammopack/FumoPackAmmo_thirdperson.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(101u).PickupPrefabs[0] = "Assets/FumoPacks/PCB/Youmu/Ammopack/FumoPackWeaponPickup.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(102u).FirstPersonPrefabs[1] = "Assets/FumoPacks/IN/Reimu/Medipack/FumoMediPack.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(102u).ThirdPersonPrefabs[1] = "Assets/FumoPacks/IN/Reimu/Medipack/FumoMediPack_thirdperson.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(102u).PickupPrefabs[0] = "Assets/FumoPacks/IN/Reimu/Medipack/FumoMediPackPickup.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(127u).FirstPersonPrefabs[1] = "Assets/FumoPacks/MoF/Nitori/Tool Refill/FumoPackTool.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(127u).ThirdPersonPrefabs[1] = "Assets/FumoPacks/MoF/Nitori/Tool Refill/FumoPackTool_thirdperson.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(127u).PickupPrefabs[0] = "Assets/FumoPacks/MoF/Nitori/Tool Refill/FumoPackToolPickup.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(132u).FirstPersonPrefabs[1] = "Assets/FumoPacks/EoSD/Cirno/Disinfection/FumoPackFunky.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(132u).ThirdPersonPrefabs[1] = "Assets/FumoPacks/EoSD/Cirno/Disinfection/FumoPackFunky_thirdperson.prefab";
GameDataBlockBase<ItemDataBlock>.GetBlock(132u).PickupPrefabs[0] = "Assets/FumoPacks/EoSD/Cirno/Disinfection/FumoPackFunkyPickup.prefab";
}
}