mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-08 21:33:28 +08:00
Auto navigation on sailings: Do not auto-use Warper if required Tech is not researched.
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user