From e973e2100307757da11087cce92a89e1071e173b Mon Sep 17 00:00:00 2001 From: kanym Date: Sat, 26 Sep 2026 17:30:35 +0200 Subject: [PATCH] chore(input): quieten the radial proof to one line per state The transition log did its job - it showed Hud.InRadial() reporting False at spawn with no wheel on screen, which is what the gate depends on and what the method's name alone could not promise. Left in, because that proof is worth one line in every player's log, but said once per state instead of twice per use of the wheel. Co-Authored-By: Claude Opus 5 --- JotunnModStub/RaceInput.cs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/JotunnModStub/RaceInput.cs b/JotunnModStub/RaceInput.cs index 2622a5d..283b34e 100644 --- a/JotunnModStub/RaceInput.cs +++ b/JotunnModStub/RaceInput.cs @@ -188,13 +188,33 @@ namespace RacesOfValheim return key >= KeyCode.Mouse0 && key <= KeyCode.Mouse6; } + // Said once for each answer it ever gives, and then never again. The whole gate rests on what + // Hud.InRadial() means, and that was read off the method's name rather than its body - so it + // is worth one line of proof in every player's log that it reports False with no wheel on + // screen. If it ever logs only True, the gate is eating input it has no business eating. + private static bool loggedOpen; + private static bool loggedClosed; + private static bool RadialOpen { get { try { - return Hud.InRadial(); + bool open = Hud.InRadial(); + + if (open && !loggedOpen) + { + loggedOpen = true; + Jotunn.Logger.LogInfo("[RaceInput] Radial menu open: form attacks and mouse-bound abilities are held."); + } + else if (!open && !loggedClosed) + { + loggedClosed = true; + Jotunn.Logger.LogInfo("[RaceInput] Radial menu closed: form attacks and mouse-bound abilities are live."); + } + + return open; } catch {