static void Prefix() { XRL.World.GameObject player = XRLCore.Core?.Game?.Player?.Body; if (player != null) { player.RequirePart <XRL.World.Parts.QudUX_ConversationHelper>(); } ConsoleUtilities.SuppressScreenBufferImposters(true); }
public static void GameLoadHandler() { XRL.World.GameObject player = XRL.Core.XRLCore.Core?.Game?.Player?.Body; if (player == null) { return; } // add part only if it's not already present player.RequirePart <HZMapPinTogglePart>(); // also set up ability if needed HZMapPinTogglePart.AddAbility(player); }