mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-13 18:38:11 +02:00
Made styling more coherent, shortened CSS, and added some other little
sprinkles of neatness.
This commit is contained in:
1 parent
7b804feba8
commit
ab0d858fef
9 files changed
+389
-286
No files matched your search
+18
-3
@@ -392,7 +392,7 @@ function CreateNewSave() {
|
||||
|
||||
|
||||
return NormalizeSaveData({
|
||||
Version: 4,
|
||||
Version: 5,
|
||||
Revision: 0,
|
||||
LastSavedAt: Date.now(),
|
||||
|
||||
@@ -432,7 +432,8 @@ function CreateNewSave() {
|
||||
PlantInformation: false,
|
||||
GardenOverview: false,
|
||||
GardenEconomy: false,
|
||||
MutationHints: false
|
||||
MutationHints: false,
|
||||
MutationHintsLevel: 0
|
||||
},
|
||||
|
||||
Preferences: {
|
||||
@@ -469,7 +470,7 @@ function NormalizeSaveData(
|
||||
Number(
|
||||
SaveData.Version ?? 1
|
||||
),
|
||||
4
|
||||
5
|
||||
);
|
||||
|
||||
SaveData.Revision = Number(
|
||||
@@ -688,6 +689,20 @@ function NormalizeSaveData(
|
||||
SaveData.Upgrades.MutationHints ===
|
||||
true;
|
||||
|
||||
SaveData.Upgrades.MutationHintsLevel =
|
||||
Math.max(
|
||||
0,
|
||||
Math.min(
|
||||
1,
|
||||
Math.floor(
|
||||
Number(
|
||||
SaveData.Upgrades
|
||||
.MutationHintsLevel ?? 0
|
||||
) || 0
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
SaveData.Preferences ??= {};
|
||||
|
||||
|
||||
Reference in new issue
Block a user