Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of LovePotionMoreLines v1.1.0
love.dll
Decompiled a year agousing System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Text.RegularExpressions; using BepInEx; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("love")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("love")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("59998082-1e70-4199-ad23-27a719403852")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8.1", FrameworkDisplayName = ".NET Framework 4.8.1")] [assembly: AssemblyVersion("1.0.0.0")] [BepInPlugin("peetxd", "LovePotionPrivate", "1.1")] public class LovePotionMoreLines : BaseUnityPlugin { [HarmonyPatch] private class LovePotionMessagePatch { private static MethodBase TargetMethod() { return AccessTools.Method(AccessTools.TypeByName("ValuableLovePotion"), "GenerateAffectionateSentence", (Type[])null, (Type[])null); } [HarmonyPrefix] private static bool Prefix(object __instance, ref string __result) { string input = ""; FieldInfo fieldInfo = AccessTools.Field(__instance.GetType(), "playerName"); if (fieldInfo != null) { input = (fieldInfo.GetValue(__instance) as string) ?? ""; } string newValue = Regex.Replace(input, "[^a-zA-Z0-9 ]", "").Trim(); List<string> list = new List<string> { "Ty muj jahodovy koblizku [player], vymrdal bych te do prdele lasko.", "Jenom jsem ti chtel rict [player], ze mas pero velky jak Eiffelovka.", "Uz jsem ti nekdy rekl [player], ze mas tu nejdokonalejsi prdel na svete.", "Nastav mi prdel [player] a ja ti tam poslu moji raketu.", "Chci ti neco rict [player], miluju te jak Roman casino.", "Mam na tebe prosbu [player], posles mi tve fotky ze sprchy?", "Mam na tebe dulezitou otazku. [player], budes moje Hafo prosim?", "Musim se ti k necemu priznat [player], rad cucham tve pouzite spodni pradlo.", "Muj nejvetsi sen je videt [player] jak mi seda na oblicej.", "Mas tak moc krasne telo [player], ze bych si koupil tvoje Only Fans." }; string text = list[Random.Range(0, list.Count)]; __result = text.Replace("[player]", newValue); return false; } [HarmonyPostfix] private static void Postfix(object __instance, ref string __result) { FieldInfo fieldInfo = AccessTools.Field(__instance.GetType(), "playerName"); if (fieldInfo != null) { string text = fieldInfo.GetValue(__instance) as string; if (!string.IsNullOrEmpty(text)) { string newValue = Regex.Replace(text, "[^a-zA-Z0-9 ]", ""); __result = __result.Replace(text, newValue); } } } } private static Harmony _harmony; private void Awake() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Expected O, but got Unknown _harmony = new Harmony("bonta.sarcasm"); _harmony.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"LovePotionMoreLines loaded – custom voice lines activated."); } }