From e9ee31b22a55af5b9a0a6ac20f914e91ee24f591 Mon Sep 17 00:00:00 2001 From: Clansty Date: Fri, 22 Nov 2024 18:18:48 +0800 Subject: [PATCH] [F] 0.10000000149011612 --- AquaMai/Utils/Config.cs | 4 ++-- AquaMai/Utils/JudgeAdjust.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AquaMai/Utils/Config.cs b/AquaMai/Utils/Config.cs index f4647898..23f1b9c6 100644 --- a/AquaMai/Utils/Config.cs +++ b/AquaMai/Utils/Config.cs @@ -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", diff --git a/AquaMai/Utils/JudgeAdjust.cs b/AquaMai/Utils/JudgeAdjust.cs index 0fcfffab..071c4127 100644 --- a/AquaMai/Utils/JudgeAdjust.cs +++ b/AquaMai/Utils/JudgeAdjust.cs @@ -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]