mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 18:58:11 +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
@@ -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
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user