fix: Grafvaettir miners fly low enough to strike deposits

Vanilla's flying MoveTo lifts the goal to m_flyAltitudeMin above whatever solid lies under it, the rock top included, so the miners hovered over a deposit just out of the 3.5 m reach and never struck. The Grafvaettir now flies 0.5-2 m up and strikes within 4 m.

Mining Targets is read again when the config line changes, so an edit in game counts without a restart. F8 also prints what the camera looks at (deposit kind, on the list or not) and each live miner's target, distance and strikes.
This commit is contained in:
kanym 2026-10-29 19:33:08 +01:00
commit be8c7c59d3
2 changed files with 76 additions and 7 deletions

View file

@ -124,6 +124,7 @@ namespace RacesOfValheim
if (__instance != Player.m_localPlayer || !Input.GetKeyDown(KeyCode.F8)) return;
RaceMeleeReach.DebugOn = !RaceMeleeReach.DebugOn;
__instance.Message(MessageHud.MessageType.TopLeft, $"[RoV reach] debug {(RaceMeleeReach.DebugOn ? "on" : "off")}");
AlfarMiner.DebugReport(__instance);
}
}
}