Added rotation to plots.. Only does stuff for functional plants.

This commit is contained in:
sarah committed 2026-09-05 16:32:41 +02:00
1 parent 75e4f31ccd
commit 132aba0b9a
14 files changed
+1244 -197

No files matched your search

+21
View File
@@ -768,6 +768,27 @@ function ApplyMutationResult(
continue;
}
const ExistingPlot =
SaveData.Garden.Plots[
PlotIndex
];
if (
NewPlot !== null &&
typeof NewPlot === "object" &&
typeof NewPlot.Rotation !==
"string"
) {
NewPlot.Rotation =
ExistingPlot !== null &&
typeof ExistingPlot ===
"object" &&
typeof ExistingPlot.Rotation ===
"string"
? ExistingPlot.Rotation
: "East";
}
SaveData.Garden.Plots[
PlotIndex