mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 02:53:29 +08:00
UXAssist: tweak autonav a bit
This commit is contained in:
@@ -393,7 +393,7 @@ public class PlayerPatch : PatchImpl<PlayerPatch>
|
||||
{
|
||||
EAstroType.Planet => 800.0 + astro.uRadius,
|
||||
EAstroType.Star => 4000.0 + astro.uRadius,
|
||||
EAstroType.EnemyHive => 400.0,
|
||||
EAstroType.EnemyHive => 800.0,
|
||||
_ => 2000.0 + astro.uRadius
|
||||
})
|
||||
{
|
||||
@@ -434,9 +434,9 @@ public class PlayerPatch : PatchImpl<PlayerPatch>
|
||||
if (hiveSys.realized && hiveSys.hiveAstroId > 1000000)
|
||||
{
|
||||
ref var hiveAstro = ref GameMain.spaceSector.astros[hiveSys.hiveAstroId - 1000000];
|
||||
/* Divide by 4, so that the real range is 2 times of the calculated range,
|
||||
which means the minimal range allowed is 4000 */
|
||||
var range = (playerPos - hiveAstro.uPos).sqrMagnitude / 4.0;
|
||||
/* Divide by 36, so that the real range is 6 times of the calculated range,
|
||||
which means the minimal range allowed is 12000 */
|
||||
var range = (playerPos - hiveAstro.uPos).sqrMagnitude / 36.0;
|
||||
if (range < nearestRange)
|
||||
{
|
||||
nearestRange = range;
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
#### TODO
|
||||
* Auto-navigation: avoid darkfogs
|
||||
|
||||
@@ -59,7 +59,8 @@ public class MyCornerComboBox : MonoBehaviour
|
||||
|
||||
protected void OnDestroy()
|
||||
{
|
||||
_config.SettingChanged -= _configChanged;
|
||||
if (_config != null && _configChanged != null)
|
||||
_config.SettingChanged -= _configChanged;
|
||||
}
|
||||
|
||||
public void SetFontSize(int size)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<BepInExPluginGuid>org.soardev.uxassist</BepInExPluginGuid>
|
||||
<Description>DSP MOD - UXAssist</Description>
|
||||
<Version>1.3.2</Version>
|
||||
<Version>1.3.3</Version>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<PackageId>UXAssist</PackageId>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "UXAssist",
|
||||
"version_number": "1.3.2",
|
||||
"version_number": "1.3.3",
|
||||
"website_url": "https://github.com/soarqin/DSP_Mods/tree/master/UXAssist",
|
||||
"description": "Some functions and patches for better user experience / 一些提升用户体验的功能和补丁",
|
||||
"dependencies": [
|
||||
|
||||
Reference in New Issue
Block a user