Decompiled source of RomansAdditions v1.0.0

RomansAdditions.dll

Decompiled a day ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
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(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")]
[assembly: AssemblyCompany("RomansAdditions")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.1.0")]
[assembly: AssemblyInformationalVersion("1.0.1+c2b5f851c88c48feae0e1e3c2111c4dd4fb2457c")]
[assembly: AssemblyProduct("Romans Additions")]
[assembly: AssemblyTitle("RomansAdditions")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.1.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.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace RomansAdditions
{
	[BepInPlugin("RomansAdditions", "Romans Additions", "1.0.1")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BaseUnityPlugin
	{
		[HarmonyPatch(typeof(ZNetScene), "Awake")]
		public static class TraderAddToSellItems
		{
			public static void Postfix(ZNetScene __instance)
			{
				GameObject prefab = __instance.GetPrefab("IronBountyToken");
				ItemDrop component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 20;
				prefab = __instance.GetPrefab("GoldBountyToken");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 100;
				prefab = __instance.GetPrefab("ForestToken");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 15;
				prefab = __instance.GetPrefab("TrophyEikthyr");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 25;
				prefab = __instance.GetPrefab("TrophyTheElder");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 50;
				prefab = __instance.GetPrefab("TrophyBonemass");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 100;
				prefab = __instance.GetPrefab("TrophyDragonQueen");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 200;
				prefab = __instance.GetPrefab("TrophyGoblinKing");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 400;
				prefab = __instance.GetPrefab("TrophySeekerQueen");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 800;
				prefab = __instance.GetPrefab("TrophyFader");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 1600;
				prefab = __instance.GetPrefab("ShardMagic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 5;
				prefab = __instance.GetPrefab("DustMagic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 5;
				prefab = __instance.GetPrefab("ReagentMagic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 5;
				prefab = __instance.GetPrefab("EssenceMagic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 5;
				prefab = __instance.GetPrefab("ShardRare");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 10;
				prefab = __instance.GetPrefab("DustRare");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 10;
				prefab = __instance.GetPrefab("ReagentRare");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 10;
				prefab = __instance.GetPrefab("EssenceRare");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 10;
				prefab = __instance.GetPrefab("ShardEpic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 15;
				prefab = __instance.GetPrefab("DustEpic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 15;
				prefab = __instance.GetPrefab("ReagentEpic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 15;
				prefab = __instance.GetPrefab("EssenceEpic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 15;
				prefab = __instance.GetPrefab("ShardLegendary");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 20;
				prefab = __instance.GetPrefab("DustLegendary");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 20;
				prefab = __instance.GetPrefab("ReagentLegendary");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 20;
				prefab = __instance.GetPrefab("EssenceLegendary");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 20;
				prefab = __instance.GetPrefab("ShardMythic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 25;
				prefab = __instance.GetPrefab("DustMythic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 25;
				prefab = __instance.GetPrefab("ReagentMythic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 25;
				prefab = __instance.GetPrefab("EssenceMythic");
				component = prefab.GetComponent<ItemDrop>();
				component.m_itemData.m_shared.m_value = 25;
			}
		}

		internal static ManualLogSource Logger;

		private Harmony harmony;

		private void Awake()
		{
			Logger = ((BaseUnityPlugin)this).Logger;
			Logger.LogInfo((object)"Plugin testing");
			harmony = Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "RomansAdditions");
		}
	}
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "RomansAdditions";

		public const string PLUGIN_NAME = "Romans Additions";

		public const string PLUGIN_VERSION = "1.0.1";
	}
}