mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-14 11:58:55 +08:00
[+] Force Paid play
This commit is contained in:
30
AquaMai/Fix/ForcePaidPlay.cs
Normal file
30
AquaMai/Fix/ForcePaidPlay.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user