Decompiled source of Bullpapa v1.2.3

Bulpapa.dll

Decompiled 2 weeks 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.Unity.IL2CPP;
using GTFO.API;
using GameData;
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(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("Bulpapa")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("Bulpapa")]
[assembly: AssemblyTitle("Bulpapa")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
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;
		}
	}
}
internal class bulpapa : MonoBehaviour
{
	public static void Initialize()
	{
		//IL_002d: Unknown result type (might be due to invalid IL or missing references)
		//IL_008d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0147: Unknown result type (might be due to invalid IL or missing references)
		//IL_0167: Unknown result type (might be due to invalid IL or missing references)
		ArchetypeDataBlock block = GameDataBlockBase<ArchetypeDataBlock>.GetBlock(77u);
		block.Damage = 2.35f;
		Vector2 damageFalloff = default(Vector2);
		((Vector2)(ref damageFalloff))..ctor(10f, 65f);
		GameDataBlockBase<ArchetypeDataBlock>.GetBlock(77u).DamageFalloff = damageFalloff;
		ArchetypeDataBlock block2 = GameDataBlockBase<ArchetypeDataBlock>.GetBlock(49u);
		block2.DefaultClipSize = 44;
		block2.Damage = 2.41f;
		block2.DefaultReloadTime = 1.35f;
		block2.ShotDelay = 0.064f;
		block2.PrecisionDamageMulti = 0.8f;
		Vector2 damageFalloff2 = default(Vector2);
		((Vector2)(ref damageFalloff2))..ctor(12f, 65f);
		GameDataBlockBase<ArchetypeDataBlock>.GetBlock(49u).DamageFalloff = damageFalloff2;
		ArchetypeDataBlock block3 = GameDataBlockBase<ArchetypeDataBlock>.GetBlock(19u);
		block3.Damage = 2.35f;
		ArchetypeDataBlock block4 = GameDataBlockBase<ArchetypeDataBlock>.GetBlock(69u);
		block4.PiercingBullets = true;
		block4.PiercingDamageCountLimit = 2;
		ArchetypeDataBlock block5 = GameDataBlockBase<ArchetypeDataBlock>.GetBlock(5u);
		block5.Damage = 2.45f;
		block5.DefaultClipSize = 40;
		block5.DefaultReloadTime = 1.6f;
		ArchetypeDataBlock block6 = GameDataBlockBase<ArchetypeDataBlock>.GetBlock(81u);
		block6.ShotDelay = 0.35f;
		block6.DefaultClipSize = 8;
		block6.PiercingBullets = true;
		block6.PiercingDamageCountLimit = 2;
		block6.CostOfBullet = 10f;
		Vector2 damageFalloff3 = default(Vector2);
		((Vector2)(ref damageFalloff3))..ctor(10f, 40f);
		GameDataBlockBase<ArchetypeDataBlock>.GetBlock(81u).DamageFalloff = damageFalloff3;
		Vector2 damageFalloff4 = default(Vector2);
		((Vector2)(ref damageFalloff4))..ctor(15f, 80f);
		GameDataBlockBase<ArchetypeDataBlock>.GetBlock(73u).DamageFalloff = damageFalloff4;
		ArchetypeDataBlock block7 = GameDataBlockBase<ArchetypeDataBlock>.GetBlock(73u);
		block7.DefaultReloadTime = 2.01f;
		RecoilDataBlock block8 = GameDataBlockBase<RecoilDataBlock>.GetBlock(42u);
		block8.power.Min = 0.45f;
		block8.power.Max = 0.575f;
		block8.recoilAimingWeight = 0.5f;
		ArchetypeDataBlock block9 = GameDataBlockBase<ArchetypeDataBlock>.GetBlock(79u);
		block9.DefaultReloadTime = 2.8f;
		block9.ShotDelay = 0.2f;
		block9.CostOfBullet = 3.5f;
	}
}
namespace Bulpapa
{
	[BepInPlugin("Caera.BetterGuns", "BetterGuns", "0.0.1")]
	internal sealed class EntryPoint : BasePlugin
	{
		public const string MODNAME = "BetterGuns";

		public override void Load()
		{
			((BasePlugin)this).Log.LogMessage((object)"Loading BetterGuns");
			((BasePlugin)this).AddComponent<bulpapa>();
			EventAPI.OnAssetsLoaded += bulpapa.Initialize;
			((BasePlugin)this).Log.LogMessage((object)"Loaded BetterGuns");
		}
	}
}