Decompiled source of More Win Texts v1.0.0

MoreWinText.dll

Decompiled a month ago
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using BepInEx;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("StickFightTheGameMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("StickFightTheGameMod")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("07ad7751-658e-41ea-b1ee-8a7e59ffbe73")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace morewintxt;

[BepInPlugin("stfg.bayturtleking.morewintxt", "More Win Texts", "1.0.0")]
public class wintxtmodd : BaseUnityPlugin
{
	public static readonly string[] mywins = new string[22]
	{
		"Turtle Power!", "And that's a wrap!", "10/10, would win again", "You suck, unless you're this colour.", "Don't bring a splinter to a stick fight.", "I win some, I lose some, but mostly I win.", "The only thing better than winning is winning again.", "And the crowd goes wild!", "Stick that victory in your pipe and smoke it!", "the turtle has spoken, and it says you win.",
		"Don't worry, it was just a warm-up :)", "How do you like them apples?", "Congratulations, you are the best at this game!", "Get good other sticks", "Turtle-ly awesome!", "and the winner is... YOU!", "More wins than a turtle can count!", "If you're lucky, I'll let you win next time.", "Everyone else is just a speed bump to you", "Next time, don't die?",
		"You got sticked", "They're gone"
	};

	private void Awake()
	{
		//IL_0005: Unknown result type (might be due to invalid IL or missing references)
		new Harmony("stfg.bayturtleking.morewintxt").PatchAll();
	}
}
[HarmonyPatch(typeof(Vicotory), "GetRandomWinText")]
public static class randomtextstuff
{
	private static bool Prefix(Vicotory __instance, ref string __result)
	{
		string[] array = __instance.standard.Concat(wintxtmodd.mywins).ToArray();
		__result = array[Random.Range(0, array.Length)];
		return false;
	}
}