Some mods target the Mono version of the game, which is available by opting into the Steam beta branch "alternate"
Decompiled source of EVERYONEHATESYOU v1.0.0
EveryoneHatesYou.dll
Decompiled 10 months agousing System; using System.Collections; using System.Diagnostics; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using EveryoneHatesYou; using Il2CppInterop.Runtime.InteropTypes.Arrays; using Il2CppScheduleOne.NPCs; using Il2CppScheduleOne.Quests; using MelonLoader; using Microsoft.CodeAnalysis; using UnityEngine; using UnityEngine.Events; using UnityEngine.SceneManagement; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: MelonInfo(typeof(global::EveryoneHatesYou.EveryoneHatesYou), "EveryoneHatesYou", "1.0.0", "Soul", null)] [assembly: MelonGame("TVGS", "Schedule I")] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("EveryoneHatesYou")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("EveryoneHatesYou")] [assembly: AssemblyTitle("EveryoneHatesYou")] [assembly: NeutralResourcesLanguage("en-US")] [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 EveryoneHatesYou { public class EveryoneHatesYou : MelonMod { public override void OnInitializeMelon() { Melon<EveryoneHatesYou>.Logger.Msg("Initialized!"); SceneManager.sceneLoaded += UnityAction<Scene, LoadSceneMode>.op_Implicit((Action<Scene, LoadSceneMode>)OnSceneLoaded); } private static void OnSceneLoaded(Scene scene, LoadSceneMode mode) { if (((Scene)(ref scene)).name.Equals("Main")) { Melon<EveryoneHatesYou>.Logger.Msg("Waiting!"); MelonCoroutines.Start(Load()); } } private static IEnumerator Load() { for (int i = 0; i < 40; i++) { yield return (object)new WaitForEndOfFrame(); } if (CheckFirstQuest()) { MakeEveryoneHateYou(); } } public static void MakeEveryoneHateYou() { int num = 0; foreach (NPC item in Object.FindObjectsOfType<NPC>()) { if (!((Object)(object)item == (Object)null) && item.RelationData != null) { item.RelationData.RelationDelta = 0f; num++; Melon<EveryoneHatesYou>.Logger.Msg("Set RelationDelta to 0 (hostile) for NPC: " + ((Object)item).name); } } Melon<EveryoneHatesYou>.Logger.Msg($"Everyone hates you now. ({num} NPCs updated)"); } public static bool CheckFirstQuest() { //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Invalid comparison between Unknown and I4 //IL_0087: Unknown result type (might be due to invalid IL or missing references) foreach (QuestEntry item in Object.FindObjectsOfType<QuestEntry>()) { if (((item == null) ? null : item.Title?.Trim()) == "Open your phone and read your messages") { bool flag = (int)item.state != 2; Melon<EveryoneHatesYou>.Logger.Msg($"Quest '{"Open your phone and read your messages"}' is {item.state} => shouldClear = {flag}"); return flag; } } Melon<EveryoneHatesYou>.Logger.Warning("First quest not found — defaulting to shouldClear = true"); return true; } public static void DumpAllQuests() { //IL_00a5: Unknown result type (might be due to invalid IL or missing references) Il2CppArrayBase<QuestEntry> val = Object.FindObjectsOfType<QuestEntry>(); Melon<EveryoneHatesYou>.Logger.Msg($"[QuestDump] Found {val.Length} quest entries:"); foreach (QuestEntry item in val) { if (!((Object)(object)item == (Object)null)) { Melon<EveryoneHatesYou>.Logger.Msg($"[QuestDump] Title: '{item.Title}' | State: {item.state}"); } } } } }