Skip to content

Commit

Permalink
[+] unlock all song
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Dec 4, 2024
1 parent 96995fc commit 3d36005
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions AquaMai.Mods/GameSystem/Unlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ public static bool get_OpenEventId(ref StringID __result)
return false;
}

[ConfigEntry(
en: "Unlock all songs (Same as setting AllOpen=1 in mai2.ini).",
zh: "解锁所有乐曲(和 mai2.ini 里面设置 AllOpen=1 是一样的效果)")]
private static readonly bool songs = true;

[EnableIf(nameof(songs))]
[HarmonyPrefix]
[HarmonyPatch(typeof(MAI2System.Config), "IsAllOpen", MethodType.Getter)]
public static bool IsAllOpen(ref bool __result)
{
__result = true;
return false;
}

[ConfigEntry(
en: "Unlock normally event-only tickets.",
zh: "解锁游戏里所有可能的跑图券")]
Expand Down

0 comments on commit 3d36005

Please sign in to comment.