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

+29
View File
@@ -27,6 +27,7 @@ const MutationHintsUnlockCost = 1500;
const MutationHintsUpgradeCostMultiplier = 2;
const MutationHintsMaximumLevel = 1;
const MutationHintsMaximumVisible = 10;
const RotationUnlockCost = 1200;
const NewGardenBaseCost = 4000;
const NewGardenCostMultiplier = 1.5;
@@ -175,6 +176,34 @@ function AddNewGarden(
}
function HasRotationUpgrade(
SaveData
) {
return (
SaveData
?.Upgrades
?.Rotation === true
);
}
function GetRotationUpgradeCost() {
return RotationUnlockCost;
}
function UnlockRotation(
SaveData
) {
SaveData.Upgrades ??= {};
SaveData.Preferences ??= {};
SaveData.Upgrades.Rotation = true;
SaveData.Preferences.ShowPlotRotation =
true;
}
function HasPlantInformationUpgrade(
SaveData
) {