Remove vestigial name property from traveler info

This commit is contained in:
Joshua Thome 2025-01-29 19:56:55 -06:00
parent 042fc95a22
commit b5538f7627
2 changed files with 2 additions and 12 deletions

View File

@ -37,11 +37,6 @@ namespace NewHorizons.Builder.Props
var go = DetailBuilder.Make(planetGO, sector, nhBody.Mod, info);
if (string.IsNullOrEmpty(info.name))
{
info.name = go.name;
}
var travelerController = go.GetAddComponent<TravelerEyeController>();
if (!string.IsNullOrEmpty(info.startPlayingCondition))
{
@ -90,7 +85,7 @@ namespace NewHorizons.Builder.Props
{
if (string.IsNullOrEmpty(info.signal.name))
{
info.signal.name = info.name;
info.signal.name = go.name;
}
if (string.IsNullOrEmpty(info.signal.frequency))
{
@ -181,7 +176,7 @@ namespace NewHorizons.Builder.Props
{
if (string.IsNullOrEmpty(info.signal.name))
{
info.signal.name = travelerData.info.name;
info.signal.name = travelerData.info.signal.name;
}
if (string.IsNullOrEmpty(info.signal.audio))
{

View File

@ -12,11 +12,6 @@ namespace NewHorizons.External.Modules.Props.EyeOfTheUniverse
/// </summary>
public string id;
/// <summary>
/// The name to display for this traveler's signals. Defaults to the name of the detail.
/// </summary>
public string name;
/// <summary>
/// If set, the player must know this ship log fact for this traveler (and their instrument zones and quantum instruments) to appear. The fact does not need to exist in the current star system; the player's save data will be checked directly.
/// </summary>