1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 04:53:30 +08:00

Auto navigation on sailings: Do not auto-use Warper if required Tech is not researched.

This commit is contained in:
2025-05-02 20:18:43 +08:00
parent 0d5a07b1ac
commit fb3a74c7e7
3 changed files with 4 additions and 2 deletions

View File

@@ -410,7 +410,7 @@ public class PlayerPatch : PatchImpl<PlayerPatch>
/* 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;