From 00d7d8e15eb54a561c8d3acf5e3161194fb974da Mon Sep 17 00:00:00 2001 From: Jules Date: Wed, 21 Sep 2022 23:02:52 +0200 Subject: [PATCH] chore: lulz --- TestMod/TestMod.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/TestMod/TestMod.cs b/TestMod/TestMod.cs index b7e2b5855..b72a1d3cb 100644 --- a/TestMod/TestMod.cs +++ b/TestMod/TestMod.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; +using System.Security.Cryptography; using BepInEx; using BepInEx.Configuration; using HarmonyLib; @@ -148,6 +149,17 @@ private void Awake() // Get current version for the mod compatibility test CurrentVersion = new System.Version(Info.Metadata.Version.ToString()); SetVersion(); + + // lulzthing for the win! + CreatureManager.OnVanillaCreaturesAvailable += () => + { + var fab = PrefabManager.Instance.GetPrefab("piece_lel"); + ZNetView.m_forceDisableInit = true; + var inst = Instantiate(fab, FejdStartup.instance.m_characterPreviewPoint.position, FejdStartup.instance.m_characterPreviewPoint.rotation); + ZNetView.m_forceDisableInit = false; + inst.transform.localPosition += new Vector3(-1.5f, 0.6f, -5f); + inst.transform.rotation = Quaternion.Euler(0f, 350f, 0f); + }; } // Called every frame