mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
Auto navigation on sailings: Do not auto-use Warper if required Tech is not researched.
This commit is contained in:
1 parent
0d5a07b1ac
commit
fb3a74c7e7
3 files changed
+4
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user