From fb3a74c7e7eba10ec3f91022ae7cd475f0ee38cb Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Fri, 2 May 2025 20:18:43 +0800 Subject: [PATCH] Auto navigation on sailings: Do not auto-use Warper if required Tech is not researched. --- UXAssist/CHANGELOG.md | 3 +++ UXAssist/Patches/PlayerPatch.cs | 2 +- UXAssist/TODO.md | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/UXAssist/CHANGELOG.md b/UXAssist/CHANGELOG.md index af1aa92..f061277 100644 --- a/UXAssist/CHANGELOG.md +++ b/UXAssist/CHANGELOG.md @@ -3,6 +3,9 @@ ## Changlog +* 1.3.3 + + `Re-initialize planet`: Fix a crash. + + `Auto navigation on sailings`: Do not auto-use Warper if required Tech is not researched. * 1.3.2 + New feature: `Disable battle-related techs in Peace mode` + New button: `Unlock all techs with metadata` diff --git a/UXAssist/Patches/PlayerPatch.cs b/UXAssist/Patches/PlayerPatch.cs index 3321de6..3a38e3c 100644 --- a/UXAssist/Patches/PlayerPatch.cs +++ b/UXAssist/Patches/PlayerPatch.cs @@ -410,7 +410,7 @@ public class PlayerPatch : PatchImpl /* Check nearest astroes, try to bypass them */ var localStar = GameMain.localStar; - _canUseWarper = autoCruise && !player.warping && player.mecha.warpStorage.GetItemCount(1210) > 0; + _canUseWarper = autoCruise && player.mecha.thrusterLevel >= 3 && !player.warping && player.mecha.HasWarper(); if (localStar != null) { var nearestRange = (playerPos - localStar.uPosition).sqrMagnitude; diff --git a/UXAssist/TODO.md b/UXAssist/TODO.md index 421e3e2..01c95d3 100644 --- a/UXAssist/TODO.md +++ b/UXAssist/TODO.md @@ -2,4 +2,3 @@ * Starmap filter: top windows overlap fix * Set battlefield analysis base power charging * Auto-navigation: avoid darkfogs -* Auto-navigation: do not use warper if the tech is not researched