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 <noreply@anthropic.com>
This commit is contained in:
parent
2b900d91e7
commit
e973e21003
1 changed files with 21 additions and 1 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue