mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-08 21:33:28 +08:00
UXAssist 1.0.22
This commit is contained in:
@@ -993,11 +993,8 @@ public static class FactoryPatch
|
|||||||
{
|
{
|
||||||
if (!VFInput._chainReaction) return true;
|
if (!VFInput._chainReaction) return true;
|
||||||
var factory = dismantle.factory;
|
var factory = dismantle.factory;
|
||||||
var entity = factory.entityPool[id];
|
var prefDesc = dismantle.GetPrefabDesc(id);
|
||||||
var factorySystem = factory.factorySystem;
|
if (!prefDesc.isLab) return true;
|
||||||
if (entity.labId <= 0 || entity.labId > factorySystem.labCursor) return true;
|
|
||||||
ref var lab = ref factory.factorySystem.labPool[entity.labId];
|
|
||||||
if (lab.id != entity.labId) return true;
|
|
||||||
factory.ReadObjectConn(id, 14, out _, out var nextId, out _);
|
factory.ReadObjectConn(id, 14, out _, out var nextId, out _);
|
||||||
/* We keep last lab if selected lab is not the ground one */
|
/* We keep last lab if selected lab is not the ground one */
|
||||||
if (nextId > 0)
|
if (nextId > 0)
|
||||||
|
|||||||
@@ -325,7 +325,9 @@ public static class PlayerPatch
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (_canUseWarper && GameMain.localPlanet == null && distance > GalaxyData.AU * DistanceToWarp.Value && player.mecha.UseWarper())
|
var mecha = player.mecha;
|
||||||
|
var energyRatio = mecha.coreEnergy / mecha.coreEnergyCap;
|
||||||
|
if (_canUseWarper && GameMain.localPlanet == null && distance > GalaxyData.AU * DistanceToWarp.Value && energyRatio >= 0.5 && player.mecha.UseWarper())
|
||||||
{
|
{
|
||||||
player.warpCommand = true;
|
player.warpCommand = true;
|
||||||
VFAudio.Create("warp-begin", player.transform, Vector3.zero, true);
|
VFAudio.Create("warp-begin", player.transform, Vector3.zero, true);
|
||||||
@@ -333,7 +335,7 @@ public static class PlayerPatch
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Speed up if needed */
|
/* Speed up if needed */
|
||||||
_speedUp = speed + 0.2f < player.mecha.maxSailSpeed;
|
_speedUp = speed + 0.2f < player.mecha.maxSailSpeed && energyRatio >= 0.1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
#### 一些提升用户体验的功能和补丁
|
#### 一些提升用户体验的功能和补丁
|
||||||
|
|
||||||
## Changlog
|
## Changlog
|
||||||
|
* 1.0.22
|
||||||
|
+ Fix a crash issue caused by `Quick build and dismantle stacking labs`
|
||||||
|
* 1.0.21
|
||||||
|
+ Fix a bug that stepped rotation is not working in `Off-grid building and stepped rotation`, which is caused by latest game update
|
||||||
|
+ Fix some issues in `Auto nativation` and `Auto-cruise`, now only speeds up when core energy at least 10% and warps when core energy at least 50%
|
||||||
* 1.0.20
|
* 1.0.20
|
||||||
+ Fix a infinite-loop issue when `Quick build and dismantle stacking labs` and `No condition build` are both enabled
|
+ Fix a infinite-loop issue when `Quick build and dismantle stacking labs` and `No condition build` are both enabled
|
||||||
+ Fix a crash caused by `Re-initialize planet` in combat mode
|
+ Fix a crash caused by `Re-initialize planet` in combat mode
|
||||||
@@ -151,6 +156,11 @@
|
|||||||
* [CruiseAssist](https://dsp.thunderstore.io/package/tanu/CruiseAssist/) and its extension [AutoPilot](https://dsp.thunderstore.io/package/tanu/AutoPilot/): `Auto navigation on sailings` and `Auto-cruise` implementations
|
* [CruiseAssist](https://dsp.thunderstore.io/package/tanu/CruiseAssist/) and its extension [AutoPilot](https://dsp.thunderstore.io/package/tanu/AutoPilot/): `Auto navigation on sailings` and `Auto-cruise` implementations
|
||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
* 1.0.22
|
||||||
|
+ 修复了`快速建造和拆除堆叠研究站`导致的崩溃问题
|
||||||
|
* 1.0.21
|
||||||
|
+ 修复了`脱离网格建造和小角度旋转`在最新游戏更新后无法小角度旋转的问题
|
||||||
|
+ 修复了`航行时自动导航`和`自动巡航`的一些问题。现在只有能量至少10%时才加速,能量至少50%时才启动曲速
|
||||||
* 1.0.20
|
* 1.0.20
|
||||||
+ 修复了`快速建造和拆除堆叠研究站`和`无条件建造`同时启用时可能导致的逻辑死循环问题
|
+ 修复了`快速建造和拆除堆叠研究站`和`无条件建造`同时启用时可能导致的逻辑死循环问题
|
||||||
+ 修复了在战斗模式下`初始化本行星`导致的崩溃问题
|
+ 修复了在战斗模式下`初始化本行星`导致的崩溃问题
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<BepInExPluginGuid>org.soardev.uxassist</BepInExPluginGuid>
|
<BepInExPluginGuid>org.soardev.uxassist</BepInExPluginGuid>
|
||||||
<Description>DSP MOD - UXAssist</Description>
|
<Description>DSP MOD - UXAssist</Description>
|
||||||
<Version>1.0.20</Version>
|
<Version>1.0.22</Version>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<PackageId>UXAssist</PackageId>
|
<PackageId>UXAssist</PackageId>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "UXAssist",
|
"name": "UXAssist",
|
||||||
"version_number": "1.0.20",
|
"version_number": "1.0.22",
|
||||||
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/UXAssist",
|
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/UXAssist",
|
||||||
"description": "Some functions and patches for better user experience / 一些提升用户体验的功能和补丁",
|
"description": "Some functions and patches for better user experience / 一些提升用户体验的功能和补丁",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
|
|||||||
Reference in New Issue
Block a user