Implement derived grow check rules, auto-fix behaviors, and import hardening
This commit is contained in:
15
src/App.tsx
15
src/App.tsx
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user