mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add vessel prompt fact
This commit is contained in:
parent
90ef0e4beb
commit
4088852ce0
11
NewHorizons/External/Configs/StarSystemConfig.cs
vendored
11
NewHorizons/External/Configs/StarSystemConfig.cs
vendored
@ -15,7 +15,7 @@ namespace NewHorizons.External.Configs
|
|||||||
public class StarSystemConfig
|
public class StarSystemConfig
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether this system can be warped to via the warp drive
|
/// Whether this system can be warped to via the warp drive. If you set factRequiredForWarp, this will be overwritten.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DefaultValue(true)] public bool canEnterViaWarpDrive = true;
|
[DefaultValue(true)] public bool canEnterViaWarpDrive = true;
|
||||||
|
|
||||||
@ -30,8 +30,8 @@ namespace NewHorizons.External.Configs
|
|||||||
[DefaultValue(true)] public bool enableTimeLoop = true;
|
[DefaultValue(true)] public bool enableTimeLoop = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set to the FactID that must be revealed before it can be warped to. Don't set `CanEnterViaWarpDrive` to `false` if
|
/// Set to the FactID that must be revealed before it can be warped to. Don't set `canEnterViaWarpDrive` to `false` if
|
||||||
/// you're using this, that would make no sense.
|
/// you're using this, because it will be overwritten.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string factRequiredForWarp;
|
public string factRequiredForWarp;
|
||||||
|
|
||||||
@ -189,6 +189,11 @@ namespace NewHorizons.External.Configs
|
|||||||
/// Euler angles by which the warp exit will be oriented.
|
/// Euler angles by which the warp exit will be oriented.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public MVector3 warpExitRotation;
|
public MVector3 warpExitRotation;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A ship log fact which will make a prompt appear showing the coordinates when you're in the Vessel.
|
||||||
|
/// </summary>
|
||||||
|
public string promptFact;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -31,7 +31,7 @@ namespace NewHorizons.Handlers
|
|||||||
foreach (var system in systems)
|
foreach (var system in systems)
|
||||||
{
|
{
|
||||||
var systemName = system.UniqueID;
|
var systemName = system.UniqueID;
|
||||||
var fact = system.Config.factRequiredForWarp;
|
var fact = system.Config.Vessel.promptFact;
|
||||||
var nomaiCoords = system.Config.Vessel?.coords;
|
var nomaiCoords = system.Config.Vessel?.coords;
|
||||||
|
|
||||||
if (system.UniqueID == "EyeOfTheUniverse" || nomaiCoords == null) continue;
|
if (system.UniqueID == "EyeOfTheUniverse" || nomaiCoords == null) continue;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user