using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using LethalLib.Modules;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("Gintama Items")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Gintama Items")]
[assembly: AssemblyCopyright("Copyright © 2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("16df491b-fe78-4e09-a185-82b8be98ccb6")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Gintama_Items;
[BepInPlugin("2FLoor.GintamaScrap", "Gintama scrap", "0.1.0")]
public class Gintamamodels : BaseUnityPlugin
{
private const string modGUID = "2FLoor.GintamaScrap";
private const string modName = "Gintama scrap";
private const string modVersion = "0.1.0";
private readonly Harmony harmony = new Harmony("2FLoor.GintamaScrap");
private static Gintamamodels Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "gintamaitems");
AssetBundle val = AssetBundle.LoadFromFile(text);
Item val2 = val.LoadAsset<Item>("Assets/Scripts/JastaWayItem.asset");
NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
Utilities.FixMixerGroups(val2.spawnPrefab);
Items.RegisterScrap(val2, 40, (LevelTypes)(-1));
Item val3 = val.LoadAsset<Item>("Assets/Scripts/ShinpachiItem.asset");
NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab);
Utilities.FixMixerGroups(val3.spawnPrefab);
Items.RegisterScrap(val3, 20, (LevelTypes)(-1));
Item val4 = val.LoadAsset<Item>("Assets/Scripts/GintokiSwordItem.asset");
NetworkPrefabs.RegisterNetworkPrefab(val4.spawnPrefab);
Utilities.FixMixerGroups(val4.spawnPrefab);
Items.RegisterScrap(val4, 15, (LevelTypes)(-1));
Item val5 = val.LoadAsset<Item>("Assets/Scripts/UmbrellaItem.asset");
NetworkPrefabs.RegisterNetworkPrefab(val5.spawnPrefab);
Utilities.FixMixerGroups(val5.spawnPrefab);
Items.RegisterScrap(val5, 10, (LevelTypes)(-1));
Item val6 = val.LoadAsset<Item>("Assets/Scripts/MayoItem.asset");
NetworkPrefabs.RegisterNetworkPrefab(val6.spawnPrefab);
Utilities.FixMixerGroups(val6.spawnPrefab);
Items.RegisterScrap(val6, 25, (LevelTypes)(-1));
mls = Logger.CreateLogSource("2FLoor.GintamaScrap");
mls.LogInfo((object)"The Gintama scrap has flip :) ");
harmony.PatchAll(typeof(Gintamamodels));
}
}