Decompiled source of LargePupils v1.0.2

LargePupils.dll

Decompiled a month ago
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
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("LargePupils")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("HP")]
[assembly: AssemblyProduct("LargePupils")]
[assembly: AssemblyCopyright("Copyright © HP 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("9c065692-8a25-40c1-b906-72c5ac397789")]
[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 LargePupils;

[BepInPlugin("bobismods.largepupils.mod", "LargePupils", "1.0.1")]
public class LargePupils : BaseUnityPlugin
{
	public const string plugin_GUID = "bobismods.largepupils.mod";

	public const string plugin_name = "LargePupils";

	public const string plugin_version = "1.0.1";

	private readonly Harmony harmony = new Harmony("bobismods.largepupils.mod");

	public static LargePupils Instance;

	private void Awake()
	{
		if ((Object)(object)Instance == (Object)null)
		{
			Instance = this;
		}
		harmony.PatchAll(typeof(LargePupils));
		harmony.PatchAll(typeof(LargePupilsPatch));
	}
}
[HarmonyPatch(typeof(TruckScreenText))]
internal class LargePupilsPatch
{
	[HarmonyPatch("ArrowPointAtGoalLogic")]
	[HarmonyPostfix]
	private static void PrefixMethod()
	{
		List<PlayerAvatar> list = SemiFunc.PlayerGetAll();
		foreach (PlayerAvatar item in list)
		{
			AccessTools.Field(typeof(PlayerEyes), "pupilSizeMultiplier").SetValue(item.playerAvatarVisuals.playerEyes, 2f);
		}
	}
}