[+] Unlock Utage

pull/45/head
Clansty 2024-06-19 20:55:31 +08:00
parent d686c48a0b
commit 0f701ad2d3
4 changed files with 22 additions and 0 deletions

View File

@ -268,6 +268,7 @@
<ItemGroup>
<Compile Include="Cheat\MapUnlock.cs" />
<Compile Include="Cheat\TicketUnlock.cs" />
<Compile Include="Cheat\UnlockUtage.cs" />
<Compile Include="Config.cs" />
<Compile Include="Fix\FixCharaCrash.cs" />
<Compile Include="Performance\ImproveLoadSpeed.cs" />

View File

@ -6,6 +6,8 @@
TicketUnlock=true
# Unlock maps that are not in this version
MapUnlock=true
# Unlock Utage without the need of DXRating 10000
UnlockUtage=true
# ===================================
# UX: User Experience Improvements

View File

@ -0,0 +1,18 @@
using HarmonyLib;
using MAI2System;
using Manager;
namespace AquaMai.Cheat
{
public class UnlockUtage
{
[HarmonyPrefix]
[HarmonyPatch(typeof(GameManager), "CanUnlockUtageTotalJudgement")]
public static bool CanUnlockUtageTotalJudgement(out ConstParameter.ResultOfUnlockUtageJudgement result1P, out ConstParameter.ResultOfUnlockUtageJudgement result2P)
{
result1P = ConstParameter.ResultOfUnlockUtageJudgement.Unlocked;
result2P = ConstParameter.ResultOfUnlockUtageJudgement.Unlocked;
return false;
}
}
}

View File

@ -13,6 +13,7 @@ namespace AquaMai
{
public bool TicketUnlock { get; set; }
public bool MapUnlock { get; set; }
public bool UnlockUtage { get; set; }
}
public class UXConfig