refactor(CheatEnabler): reduce duplication in DysonSphere helpers

This commit is contained in:
2026-06-23 04:20:52 +08:00
parent 2dce3a7b93
commit b6657c96c0
4 changed files with 76 additions and 142 deletions
@@ -290,7 +290,7 @@ public static class GeometryHelpers
}
return vmap.Count;
}
public static bool MyGenerateGeometry(this DysonShell shell)
public static bool GenerateCustomShellGeometry(this DysonShell shell)
{
VectorLF3 sum = VectorLF3.zero;
double num = 0.0;
@@ -718,7 +718,7 @@ public static class GeometryHelpers
shell.nodes.Add(dysonNode);
shell.frames.Add(dysonFrame);
}
if (!shell.MyGenerateGeometry() || (limit && DysonShell.s_vmap.Count < 32000))
if (!shell.GenerateCustomShellGeometry() || (limit && DysonShell.s_vmap.Count < 32000))
{
CheatEnabler.Logger.LogDebug($"Stripped VertCount: {DysonShell.s_vmap.Count}");
shell.Free();