[+] Configurable mod key map manager

This commit is contained in:
Clansty
2024-11-01 17:03:57 +08:00
parent ac4db91df4
commit fb96e93184
14 changed files with 331 additions and 136 deletions

View File

@@ -0,0 +1,19 @@
using AquaMai.Attributes;
using HarmonyLib;
using Manager;
using Monitor;
namespace AquaMai.ModKeyMap;
[GameVersion(23000)]
public class EnableNativeQuickRetry
{
[HarmonyPrefix]
[HarmonyPatch(typeof(QuickRetry), "IsQuickRetryEnable")]
public static bool OnQuickRetryIsQuickRetryEnable(ref bool __result)
{
var isUtageProperty = Traverse.Create(typeof(GameManager)).Property("IsUtage");
__result = !isUtageProperty.PropertyExists() || !isUtageProperty.GetValue<bool>();
return false;
}
}