mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 17:37:27 +08:00
[+] Unlock maps that are not in this version
This commit is contained in:
@@ -266,6 +266,7 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Cheat\MapUnlock.cs" />
|
||||||
<Compile Include="Cheat\TicketUnlock.cs" />
|
<Compile Include="Cheat\TicketUnlock.cs" />
|
||||||
<Compile Include="Config.cs" />
|
<Compile Include="Config.cs" />
|
||||||
<Compile Include="Fix\FixCharaCrash.cs" />
|
<Compile Include="Fix\FixCharaCrash.cs" />
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
[Cheat]
|
[Cheat]
|
||||||
# Unlock normally event-only tickets
|
# Unlock normally event-only tickets
|
||||||
TicketUnlock=true
|
TicketUnlock=true
|
||||||
|
# Unlock maps that are not in this version
|
||||||
|
MapUnlock=true
|
||||||
|
|
||||||
# ===================================
|
# ===================================
|
||||||
# UX: User Experience Improvements
|
# UX: User Experience Improvements
|
||||||
|
|||||||
26
AquaMai/Cheat/MapUnlock.cs
Normal file
26
AquaMai/Cheat/MapUnlock.cs
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
using Manager.MaiStudio;
|
||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
|
namespace AquaMai.Cheat
|
||||||
|
{
|
||||||
|
public class MapUnlock
|
||||||
|
{
|
||||||
|
// For any map, return the event ID 1 to unlock it
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(MapData), "get_OpenEventId")]
|
||||||
|
public static bool get_OpenEventId(ref StringID __result)
|
||||||
|
{
|
||||||
|
var id = new Manager.MaiStudio.Serialize.StringID
|
||||||
|
{
|
||||||
|
id = 1,
|
||||||
|
str = "無期限常時解放"
|
||||||
|
};
|
||||||
|
|
||||||
|
var sid = new StringID();
|
||||||
|
sid.Init(id);
|
||||||
|
|
||||||
|
__result = sid;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -12,6 +12,7 @@ namespace AquaMai
|
|||||||
public class CheatConfig
|
public class CheatConfig
|
||||||
{
|
{
|
||||||
public bool TicketUnlock { get; set; }
|
public bool TicketUnlock { get; set; }
|
||||||
|
public bool MapUnlock { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class UXConfig
|
public class UXConfig
|
||||||
|
|||||||
Reference in New Issue
Block a user