[F] 0.10000000149011612
Build AquaMai / build (push) Has been cancelled Details

pull/88/head
Clansty 2024-11-22 18:18:48 +08:00
parent cf0e3ce989
commit e9ee31b22a
No known key found for this signature in database
GPG Key ID: 3A6BE8BAF2EDE134
2 changed files with 4 additions and 4 deletions

View File

@ -12,12 +12,12 @@ public class Config
[ConfigComment(
en: "Globally increase A judgment, unit is the same as in the game",
zh: "全局增加 A 判,单位和游戏里一样")]
public float JudgeAdjustA { get; set; }
public double JudgeAdjustA { get; set; }
[ConfigComment(
en: "Globally increase B judgment, unit is the same as in the game",
zh: "全局增加 B 判,单位和游戏里一样")]
public float JudgeAdjustB { get; set; }
public double JudgeAdjustB { get; set; }
[ConfigComment(
en: "Touch screen delay, unit is milliseconds, one second = 1000 milliseconds. Must be an integer",

View File

@ -11,14 +11,14 @@ public class JudgeAdjust
[HarmonyPatch(typeof(UserOption), "GetAdjustMSec")]
public static void GetAdjustMSec(ref float __result)
{
__result += AquaMai.AppConfig.Utils.JudgeAdjustA * 16.666666f;
__result += (float)AquaMai.AppConfig.Utils.JudgeAdjustA * 16.666666f;
}
[HarmonyPostfix]
[HarmonyPatch(typeof(UserOption), "GetJudgeTimingFrame")]
public static void GetJudgeTimingFrame(ref float __result)
{
__result += AquaMai.AppConfig.Utils.JudgeAdjustB;
__result += (float)AquaMai.AppConfig.Utils.JudgeAdjustB;
}
[HarmonyPrefix]