1.0.0 public release!

This commit is contained in:
msk
2022-01-24 00:34:25 -08:00
parent 2f4ef7c87c
commit 28dddcc0d0
11 changed files with 172 additions and 6 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ MonoBehaviour:
PackageName: TNH_Quality_of_Life_Improvements
Author: muskit
Version: 1.0.0
Icon: {fileID: 2800000, guid: f999bddab1821b94691466e97cc6891f, type: 3}
Icon: {fileID: 2800000, guid: 785b7946398f5314b95bf593d2d77d67, type: 3}
ReadMe: {fileID: 102900000, guid: ab1d6dea017447a48ac348db588a6f35, type: 3}
WebsiteURL:
WebsiteURL: https://github.com/muskit/TNH-Quality-of-Life-Improvements
Description: Quality of life improvements to the Take and Hold experience.
AdditionalDependencies:
- BepInEx-BepInExPack_H3VR-5.4.1700
+22
View File
@@ -2,6 +2,7 @@
using System.IO;
using System.Reflection;
using BepInEx;
using BepInEx.Bootstrap;
using BepInEx.Configuration;
using UnityEngine;
using UnityEngine.SceneManagement;
@@ -32,6 +33,8 @@ public class MeatKitPlugin : BaseUnityPlugin
private static readonly string BasePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
#pragma warning restore 414
private bool lpcKilled = false;
public static AssetBundle bundle;
public static ConfigEntry<bool> showHPBackground;
@@ -85,5 +88,24 @@ public class MeatKitPlugin : BaseUnityPlugin
}
// DO NOT EDIT.
private void LoadAssets() {}
/// <summary>
/// Its only purpose: to kill TNH Leaderboard Player Count
/// </summary>
private void Update()
{
if (lpcKilled)
return;
foreach (var plugin in Chainloader.PluginInfos)
{
if (plugin.Key == "me.muskit.tnhLeaderboardPlayerCount")
{
Logger.LogWarning("TNH Leaderboard Player Count mod detected. Destroying it to avoid interference.");
Destroy(plugin.Value.Instance);
lpcKilled = true;
}
}
}
}
#endif