Skip to content

Commit

Permalink
[F] 0.10000000149011612
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Nov 22, 2024
1 parent cf0e3ce commit e9ee31b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions AquaMai/Utils/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions AquaMai/Utils/JudgeAdjust.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e9ee31b

Please sign in to comment.