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
|
||||
{
|
||||
/// <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>
|
||||
[DefaultValue(true)] public bool canEnterViaWarpDrive = true;
|
||||
|
||||
@ -30,8 +30,8 @@ namespace NewHorizons.External.Configs
|
||||
[DefaultValue(true)] public bool enableTimeLoop = true;
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// 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, because it will be overwritten.
|
||||
/// </summary>
|
||||
public string factRequiredForWarp;
|
||||
|
||||
@ -189,6 +189,11 @@ namespace NewHorizons.External.Configs
|
||||
/// Euler angles by which the warp exit will be oriented.
|
||||
/// </summary>
|
||||
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>
|
||||
|
||||
@ -31,7 +31,7 @@ namespace NewHorizons.Handlers
|
||||
foreach (var system in systems)
|
||||
{
|
||||
var systemName = system.UniqueID;
|
||||
var fact = system.Config.factRequiredForWarp;
|
||||
var fact = system.Config.Vessel.promptFact;
|
||||
var nomaiCoords = system.Config.Vessel?.coords;
|
||||
|
||||
if (system.UniqueID == "EyeOfTheUniverse" || nomaiCoords == null) continue;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user