Decompiled source of WaterBottles v1.3.2

WaterBottles.dll

Decompiled 2 weeks ago
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using REPOLib.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("testingvaluables")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("testingvaluables")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e51ff833-8769-4780-98fa-2f5e8cf546b4")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8.1", FrameworkDisplayName = ".NET Framework 4.8.1")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace RandomScrapMod;

[BepInPlugin("Bocon.WaterBottles", "Water Bottles", "1.3.0")]
public class Plugin : BaseUnityPlugin
{
	private const string GUID = "Bocon.WaterBottles";

	private const string NAME = "Water Bottles";

	private const string VERSION = "1.3.0";

	public static Plugin instance;

	private void Awake()
	{
		instance = this;
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Assets");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		GameObject val2 = val.LoadAsset<GameObject>("Assets/REPO/Mods/plugins/WaterBottle.prefab");
		GameObject val3 = val.LoadAsset<GameObject>("Assets/REPO/Mods/plugins/FancyWaterBottle.prefab");
		GameObject val4 = val.LoadAsset<GameObject>("Assets/REPO/Mods/plugins/InsulatedWaterBottle.prefab");
		GameObject val5 = val.LoadAsset<GameObject>("Assets/REPO/Mods/plugins/5GalWaterBottle.prefab");
		GameObject val6 = val.LoadAsset<GameObject>("Assets/REPO/Mods/plugins/WaterDispenser.prefab");
		GameObject val7 = val.LoadAsset<GameObject>("Assets/REPO/Mods/plugins/XXLWaterTank.prefab");
		Valuables.RegisterValuable(val2);
		Valuables.RegisterValuable(val3);
		Valuables.RegisterValuable(val4);
		Valuables.RegisterValuable(val5);
		Valuables.RegisterValuable(val6);
		Valuables.RegisterValuable(val7);
	}
}