mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
1.22.7 (#939)
## Bug fixes - Oops that last update didn't actually work
This commit is contained in:
commit
208339d371
@ -68,10 +68,11 @@ namespace NewHorizons.Handlers
|
|||||||
RegisterFactForSystem(system.Config.factRequiredForWarp, system.UniqueID);
|
RegisterFactForSystem(system.Config.factRequiredForWarp, system.UniqueID);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (system.UniqueID == Main.Instance.CurrentStarSystem && !string.IsNullOrEmpty(system.Config.factRequiredToExitViaWarpDrive))
|
if (system.UniqueID == Main.Instance.CurrentStarSystem)
|
||||||
{
|
{
|
||||||
_factRequiredToExitViaWarpDrive = system.Config.factRequiredToExitViaWarpDrive;
|
_factRequiredToExitViaWarpDrive = system.Config.factRequiredToExitViaWarpDrive;
|
||||||
_canExitViaWarpDrive = system.Config.canExitViaWarpDrive || !string.IsNullOrEmpty(_factRequiredToExitViaWarpDrive);
|
_canExitViaWarpDrive = system.Config.canExitViaWarpDrive || !string.IsNullOrEmpty(_factRequiredToExitViaWarpDrive);
|
||||||
|
NHLogger.LogVerbose($"In system {system.UniqueID} can exit via warp drive? {system.Config.canExitViaWarpDrive} {_canExitViaWarpDrive} {_factRequiredToExitViaWarpDrive}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -139,7 +140,7 @@ namespace NewHorizons.Handlers
|
|||||||
if (Main.Instance.CurrentStarSystem == "SolarSystem")
|
if (Main.Instance.CurrentStarSystem == "SolarSystem")
|
||||||
canExitViaWarpDrive = true;
|
canExitViaWarpDrive = true;
|
||||||
|
|
||||||
NHLogger.Log(canEnterViaWarpDrive, canExitViaWarpDrive, system, HasUnlockedSystem(system));
|
NHLogger.LogVerbose(canEnterViaWarpDrive, canExitViaWarpDrive, system, HasUnlockedSystem(system));
|
||||||
|
|
||||||
return canWarpTo
|
return canWarpTo
|
||||||
&& canEnterViaWarpDrive
|
&& canEnterViaWarpDrive
|
||||||
@ -152,6 +153,7 @@ namespace NewHorizons.Handlers
|
|||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(_factRequiredToExitViaWarpDrive) && factID == _factRequiredToExitViaWarpDrive)
|
if (!string.IsNullOrEmpty(_factRequiredToExitViaWarpDrive) && factID == _factRequiredToExitViaWarpDrive)
|
||||||
{
|
{
|
||||||
|
_canExitViaWarpDrive = true;
|
||||||
if (!Main.HasWarpDrive)
|
if (!Main.HasWarpDrive)
|
||||||
{
|
{
|
||||||
Main.Instance.EnableWarpDrive();
|
Main.Instance.EnableWarpDrive();
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, Clay, Trifid, and friends",
|
"author": "xen, Bwc9876, JohnCorby, MegaPiggy, Clay, Trifid, and friends",
|
||||||
"name": "New Horizons",
|
"name": "New Horizons",
|
||||||
"uniqueName": "xen.NewHorizons",
|
"uniqueName": "xen.NewHorizons",
|
||||||
"version": "1.22.6",
|
"version": "1.22.7",
|
||||||
"owmlVersion": "2.12.1",
|
"owmlVersion": "2.12.1",
|
||||||
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
|
"dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ],
|
||||||
"conflicts": [ "PacificEngine.OW_CommonResources" ],
|
"conflicts": [ "PacificEngine.OW_CommonResources" ],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user