light refactoring

This commit is contained in:
FreezeDriedMangoes 2023-01-28 23:19:42 -05:00
parent d5e771709f
commit 932b0bf3e8

View File

@ -631,9 +631,7 @@ namespace NewHorizons.Builder.Props
var arranger = nomaiWallText.gameObject.AddComponent<NomaiTextArcArranger>();
//
// Generate spirals
//
// Generate spiral meshes/GOs
var i = 0;
foreach (var textData in dict.Values)
@ -645,17 +643,13 @@ namespace NewHorizons.Builder.Props
var parent = parentID == -1 ? null : arcsByID[parentID];
GameObject arc = MakeArc(arcInfo, conversationZone, parent, textEntryID);
arc.name = $"Arc {i} - Child of {parentID}";
arc.name = $"Arc {textEntryID} - Child of {parentID}";
arcsByID.Add(textEntryID, arc);
i++;
}
//
// place spirals
//
// auto placement
var overlapFound = true;
@ -666,7 +660,7 @@ namespace NewHorizons.Builder.Props
for(var a = 0; a < 10; a++) arranger.FDGSimulationStep();
}
if (overlapFound) Logger.LogWarning("Overlap resolution failed!");
if (overlapFound) Logger.LogVerbose("Overlap resolution failed!");
// manual placement
@ -691,8 +685,8 @@ namespace NewHorizons.Builder.Props
{
GameObject arc;
var type = arcInfo != null ? arcInfo.type : PropModule.NomaiTextArcInfo.NomaiTextArcType.Adult;
NomaiTextArcBuilder.SpiralProfile profile = new();
Material mat = null;
NomaiTextArcBuilder.SpiralProfile profile;
Material mat;
switch (type)
{
case PropModule.NomaiTextArcInfo.NomaiTextArcType.Child: