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.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("BrainrotMod")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+7e143f08d8e4c9f93aebe0989c3cd97680c140cc")]
[assembly: AssemblyProduct("MBrainrot Mod")]
[assembly: AssemblyTitle("BrainrotMod")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.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 BrainrotMod
{
[BepInPlugin("sunryze.BrainrotMod", "BrainrotMod", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
[HarmonyPatch(typeof(ChatManager))]
public class PatchChatManagerMessageSend
{
[HarmonyPatch("MessageSend")]
private static void Prefix()
{
ChatManager instance = ChatManager.instance;
if (Random.Range(0f, 1f) < 0.1f)
{
Traverse.Create((object)instance).Field("chatMessage").SetValue((object)Sentences[Random.RandomRangeInt(0, Sentences.Length)]);
}
}
}
private static ManualLogSource _logger;
private const string ModGuid = "sunryze.BrainrotMod";
private const string ModName = "BrainrotMod";
private const string ModVersion = "1.0.0";
private static Plugin _pluginInstance;
public static ManualLogSource LoggerInstance;
private readonly Harmony _harmony = new Harmony("sunryze.BrainrotMod");
private static readonly string[] Sentences = new string[34]
{
"that is so skibidi!", "holy gyatt", "can you rizz me pls", "only in ohio does this shit happen", "did you pray today?", "u sussy imposter", "STOP EDGING", "bro is goonmaxxing rn", "sticking out my gyatt for the rizzler", "if diddy did diddle dudes, how many dudes did diddy diddle?",
"I SAID LET, HIM, COOK!", "L bozo", "what da dog doin", "im mewing rn", "i am the rizzler", "edgemaxxing", "dont be ishowmeat", "thats cap", "im gooning to your sigma aura", "im literally on the verge of gooning rn",
"i am literally the rizzler", "okay. 19 dollar fortnite card. who wants it?", "thats so sigma!", "i just have that aura dude", "looksmaxxing with that gyatt", "do u know da wae", "fanum tax", "ahh shit, here we go again", "tiktok rizz party", "skibidi rizz",
"nah thats cap", "this is fire.", "ur so sigma", "blud shut the fuck up"
};
private void Awake()
{
_logger = ((BaseUnityPlugin)this).Logger;
if ((Object)(object)_pluginInstance == (Object)null)
{
_pluginInstance = this;
}
LoggerInstance = _logger;
_harmony.PatchAll();
_logger.LogInfo((object)"welcome to the brainrot zone from sunryze.BrainrotMod");
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "BrainrotMod";
public const string PLUGIN_NAME = "MBrainrot Mod";
public const string PLUGIN_VERSION = "1.0.0";
}
}