mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 10:48:12 +02:00
Added plant info upgrade.
This commit is contained in:
1 parent
23cc94dc69
commit
367e34ef18
8 files changed
+733
-10
No files matched your search
@@ -1,4 +1,5 @@
|
||||
const GardenExpansionBaseCost = 1000;
|
||||
const PlantInformationUpgradeCost = 500;
|
||||
|
||||
|
||||
function GetGardenColumnUpgradeCost(
|
||||
@@ -107,3 +108,37 @@ function ResetGardenMutationCooldowns(
|
||||
) {
|
||||
SaveData.MutationCooldowns = {};
|
||||
}
|
||||
|
||||
|
||||
function HasPlantInformationUpgrade(
|
||||
SaveData
|
||||
) {
|
||||
return (
|
||||
SaveData
|
||||
?.Upgrades
|
||||
?.PlantInformation ===
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
function GetPlantInformationUpgradeCost() {
|
||||
return PlantInformationUpgradeCost;
|
||||
}
|
||||
|
||||
|
||||
function UnlockPlantInformation(
|
||||
SaveData
|
||||
) {
|
||||
SaveData.Upgrades ??= {};
|
||||
SaveData.Preferences ??= {};
|
||||
|
||||
SaveData.Upgrades.PlantInformation =
|
||||
true;
|
||||
|
||||
SaveData.Preferences.ShowPlantNames =
|
||||
true;
|
||||
|
||||
SaveData.Preferences.ShowGrowthTimers =
|
||||
true;
|
||||
}
|
||||
Reference in new issue
Block a user