[+] ForceNonTarget

pull/88/head
Clansty 2024-11-20 02:46:41 +08:00
parent 42b8b9ce4a
commit b3cb08316a
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
1 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,15 @@ public class BasicFix
ServicePointManager.ServerCertificateValidationCallback = null;
}
[HarmonyPostfix]
[HarmonyPatch(typeof(MAI2System.Config), "IsTarget")]
private static bool ForceNonTarget(ref bool __result)
{
// Who teaching others to set Target=1?!
__result = false;
return false;
}
public static void DoCustomPatch(HarmonyLib.Harmony h)
{
if (typeof(GameManager).GetMethod("CalcSpecialNum") is null) return;