Commit Graph
12 Commits
Author SHA1 Message Date
soarqin 3a840e7b2d fix(uxassist): correct auto-construct settling, altitude and planning
Flight settling never ran its residual-speed check: the caller gated it on
the tick countdown, which always reached exactly zero, so the constant
thresholds were dead and the wait degraded into a fixed delay. Gate it on a
separate pending flag, bound it with a timeout, and re-issue the deferred
route with bypassBrake so a timeout cannot defer the same route again.

Arrival no longer keeps the detour altitude. The planner scores build-range
coverage at ConstructionFlightAltitude, so hovering at AvoidanceAltitude put
part of the counted ghosts out of drone reach.

Also fix four planning defects:

* the route corridor compared an angle against a sine, and could collapse
  instead of widening past 90 degrees;
* candidate near/far separation compared a difference of squared distances
  against a squared merge distance, so any slightly farther ghost claimed the
  far slot, and a displaced near candidate was dropped instead of demoted;
* the angular fan axes mixed the universal player rotation with planet-local
  positions;
* surface distances used chord length where great-circle length was meant.

Ghost eligibility now mirrors the material-delivery filter in
ConstructionModuleComponent.GameTick. A ghost rejected by constructableIdHash
or blocked by a nearby Dark Fog building can never clear itemRequired, so the
mecha would park on a site that makes no progress. The enemy probe is skipped
when the planet has no ground bases.

Drop the OrderNode.Stop in CancelAutoMotion: PlayerOrder.Clear() discards it
before PlayerOrder.GameTick can process it, and the actual braking comes from
PlayerMove_Fly decaying rtsVelocity. It only left a stray order gizmo at the
planet centre.

Untie the Harmony patch from AutoConstructButtonEnabled so hiding the button
cannot silently disable the feature, and throttle the enable diagnostics now
that enabling is an in-game action.

Extract the shared manual-movement input probe, name the obstacle layer mask,
reset a copied Localizer on the cloned count text, and drop the dead
representative-target guard.
2026-09-16 02:16:14 +08:00
soarqin 3a5676d737 refactor(uxassist): simplify navigation and construction state 2026-09-14 17:00:25 +08:00
soarqin 2c601e3546 refactor(uxassist): unify auto-cruise navigation
Remove the legacy cruise implementation and expose the advanced navigator through the existing auto-cruise setting and UI. Match the game's 1.6-degree steering cap and handle antiparallel target directions with a stable turn plane.
2026-09-14 15:14:26 +08:00
soarqin 3f8e04f4a0 feat(uxassist): show new navigation shortcut hint 2026-09-13 19:28:24 +08:00
soarqin 4b2f9c67dc fix(UXAssist): fix UI color issue imported in 574919f 2026-09-11 00:41:28 +08:00
soarqin 574919f1f0 fix(UXAssist): reset cloned UI state 2026-09-02 18:47:37 +08:00
soarqin 6b03801681 fix: Auto-Construct panel visibility on panel switching 2026-07-11 00:53:06 +08:00
soarqin 647b130993 refactor: register static-state resets on game end 2026-06-23 22:20:04 +08:00
soarqin 8d70ce8862 refactor: use localization constants at remaining call sites 2026-06-23 21:41:24 +08:00
soarqin 51fc080ff2 fix: address localization review issues 2026-06-23 21:35:09 +08:00
soarqin 036243fd4a refactor: centralize localization keys and remove runtime Chinese literals 2026-06-23 21:19:42 +08:00
soarqin ce199374b4 refactor(UXAssist): split UIFunctions into UI sub-features 2026-06-23 03:13:23 +08:00