Add vessel prompt fact

This commit is contained in:
Nick 2022-08-25 21:30:11 -04:00
parent 90ef0e4beb
commit 4088852ce0
2 changed files with 9 additions and 4 deletions

View File

@ -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>

View File

@ -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;