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]