[+] Force Paid play

This commit is contained in:
Clansty
2024-09-17 02:34:38 +08:00
parent 81c1e6e887
commit 5ee7add355
5 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using HarmonyLib;
namespace AquaMai.Fix;
public class ForcePaidPlay
{
[HarmonyPrefix]
[HarmonyPatch(typeof(Manager.Credit), "IsFreePlay")]
private static bool PreIsFreePlay(ref bool __result)
{
__result = false;
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(Manager.Credit), "IsGameCostEnough")]
private static bool PreIsGameCostEnough(ref bool __result)
{
__result = true;
return false;
}
[HarmonyPrefix]
[HarmonyPatch(typeof(AMDaemon.CreditUnit), "Credit", MethodType.Getter)]
private static bool PreCredit(ref uint __result)
{
__result = 24;
return false;
}
}