mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 10:48:12 +02:00
Added rotation to plots.. Only does stuff for functional plants.
This commit is contained in:
1 parent
75e4f31ccd
commit
132aba0b9a
14 files changed
+1244
-197
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user