mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-09-08 01:15:47 -05:00
[+] TapInHoldFix
Co-Authored-By: ds_xiaoyi <102014915+ds-xiaoyi@users.noreply.github.com>
This commit is contained in:
19
AquaMai.Mods/Fancy/GamePlay/TapInHoldFix.cs
Normal file
19
AquaMai.Mods/Fancy/GamePlay/TapInHoldFix.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using AquaMai.Config.Attributes;
|
||||
using HarmonyLib;
|
||||
using Monitor;
|
||||
|
||||
namespace AquaMai.Mods.Fancy.GamePlay;
|
||||
|
||||
[ConfigSection("Hold 夹 Tap",
|
||||
zh: "让普通模式也能像宴会场一样,在 Hold 音符期间正常判定其他音符,兼容特殊设计谱面(如飞行志)\n实验性功能,未测试对其他谱面的影响",
|
||||
en: "Allow normal mode to judge Tap notes normally during Hold notes, like in UTAGE. Compatible with specially designed charts\nExperimental feature, untested on other charts")]
|
||||
public class TapInHoldFix
|
||||
{
|
||||
[HarmonyPatch(typeof(NoteBase), "IsJudgeNote")]
|
||||
[HarmonyPrefix]
|
||||
public static bool IsJudgeNote(NoteBase __instance, ref bool __result)
|
||||
{
|
||||
__result = !__instance.IsEnd();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user