Decompiled source of Traffic Cone v1.0.0

plugins/Pachoêek/Pacholek.dll

Decompiled 3 weeks ago
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
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: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("Pacholek")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("Pacholek")]
[assembly: AssemblyTitle("Pacholek")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace TrafficCone;

[BepInPlugin("crazy.TrafficCone", "Traffic Cone", "0.0.1")]
public class Plugin : BaseUnityPlugin
{
	private const string modGUID = "crazy.TrafficCone";

	private const string modName = "Traffic Cone";

	private const string modVersion = "0.0.1";

	private static Plugin Instance;

	private void Awake()
	{
		Instance = this;
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "trafficcone");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		Item val2 = val.LoadAsset<Item>("Assets/Traffic Cone/Traffic Cone Scrap.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
		Utilities.FixMixerGroups(val2.spawnPrefab);
		Items.RegisterScrap(val2, 11, (LevelTypes)2048);
		Items.RegisterScrap(val2, 7, (LevelTypes)4096);
		Items.RegisterScrap(val2, 23, (LevelTypes)32);
		Items.RegisterScrap(val2, 33, (LevelTypes)4);
		Items.RegisterScrap(val2, 7, (LevelTypes)512);
		Items.RegisterScrap(val2, 35, (LevelTypes)8192);
		Items.RegisterScrap(val2, 8, (LevelTypes)8);
		Items.RegisterScrap(val2, 10, (LevelTypes)16);
		Items.RegisterScrap(val2, 2, (LevelTypes)256);
		Items.RegisterScrap(val2, 5, (LevelTypes)128);
		Items.RegisterScrap(val2, 6, (LevelTypes)64);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded a Traffic Cone :)");
	}
}