1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 06:13:36 +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

@@ -3,6 +3,9 @@
## Changlog ## 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 * 1.3.2
+ New feature: `Disable battle-related techs in Peace mode` + New feature: `Disable battle-related techs in Peace mode`
+ New button: `Unlock all techs with metadata` + New button: `Unlock all techs with metadata`

View File

@@ -410,7 +410,7 @@ public class PlayerPatch : PatchImpl<PlayerPatch>
/* Check nearest astroes, try to bypass them */ /* Check nearest astroes, try to bypass them */
var localStar = GameMain.localStar; 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) if (localStar != null)
{ {
var nearestRange = (playerPos - localStar.uPosition).sqrMagnitude; var nearestRange = (playerPos - localStar.uPosition).sqrMagnitude;

View File

@@ -2,4 +2,3 @@
* Starmap filter: top windows overlap fix * Starmap filter: top windows overlap fix
* Set battlefield analysis base power charging * Set battlefield analysis base power charging
* Auto-navigation: avoid darkfogs * Auto-navigation: avoid darkfogs
* Auto-navigation: do not use warper if the tech is not researched