mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Allow ship log details to be added to vanilla planets (#362)
This commit is contained in:
commit
ed00d762ae
@ -219,7 +219,7 @@ namespace NewHorizons.Builder.ShipLog
|
|||||||
|
|
||||||
foreach (NewHorizonsBody body in bodies)
|
foreach (NewHorizonsBody body in bodies)
|
||||||
{
|
{
|
||||||
if (body.Config.ShipLog?.mapMode?.manualNavigationPosition == null) continue;
|
if (body.Config.ShipLog?.mapMode?.manualNavigationPosition == null && body.Config.ShipLog?.mapMode?.details == null) continue;
|
||||||
|
|
||||||
// Sometimes they got other names idk
|
// Sometimes they got other names idk
|
||||||
var name = body.Config.name.Replace(" ", "");
|
var name = body.Config.name.Replace(" ", "");
|
||||||
@ -283,6 +283,7 @@ namespace NewHorizons.Builder.ShipLog
|
|||||||
{
|
{
|
||||||
gameObject.transform.localScale = Vector3.one * body.Config.ShipLog.mapMode.scale;
|
gameObject.transform.localScale = Vector3.one * body.Config.ShipLog.mapMode.scale;
|
||||||
}
|
}
|
||||||
|
MakeDetails(body, gameObject.transform, greyScaleMaterial);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user