mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-13 18:38:11 +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
+21
-1
@@ -66,7 +66,13 @@ function CreateNewSave() {
|
||||
},
|
||||
|
||||
Upgrades: {
|
||||
PlotSize: 0
|
||||
PlotSize: 0,
|
||||
PlantInformation: false
|
||||
},
|
||||
|
||||
Preferences: {
|
||||
ShowPlantNames: true,
|
||||
ShowGrowthTimers: true
|
||||
},
|
||||
|
||||
Garden: {
|
||||
@@ -239,6 +245,20 @@ function NormalizeSaveData(
|
||||
|
||||
SaveData.Upgrades ??= {};
|
||||
SaveData.Upgrades.PlotSize ??= 0;
|
||||
SaveData.Upgrades.PlantInformation =
|
||||
SaveData.Upgrades.PlantInformation ===
|
||||
true;
|
||||
|
||||
|
||||
SaveData.Preferences ??= {};
|
||||
|
||||
SaveData.Preferences.ShowPlantNames =
|
||||
SaveData.Preferences.ShowPlantNames !==
|
||||
false;
|
||||
|
||||
SaveData.Preferences.ShowGrowthTimers =
|
||||
SaveData.Preferences.ShowGrowthTimers !==
|
||||
false;
|
||||
|
||||
|
||||
SaveData.Garden ??= {
|
||||
|
||||
Reference in new issue
Block a user