Implement derived grow check rules, auto-fix behaviors, and import hardening

This commit is contained in:
drjones
2026-06-13 23:51:43 -07:00
parent 84e2c6416d
commit 6f3c30f44d
5 changed files with 278 additions and 7 deletions

View File

@@ -348,6 +348,21 @@ function BuilderApp() {
if (ids.length >= 2) {
s.removeParts([ids[1]]);
}
} else if (finding.id.startsWith('nutrient-depletion:')) {
const resId = finding.partIds[0];
if (resId) {
const p = s.parts[resId];
if (p) {
s.updatePart(resId, {
params: {
...p.params,
width: Math.min(5, (p.params.width ?? 2) * 1.5),
depth: Math.min(4, (p.params.depth ?? 1.4) * 1.5),
height: Math.min(3, (p.params.height ?? 1) * 1.2),
}
});
}
}
} else if (finding.id.startsWith('orphan:')) {
s.removeParts(finding.partIds);
}