mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 10:48:12 +02:00
Added mutation hint upgrade.
This commit is contained in:
1 parent
f37d0a77f9
commit
8f27468b5e
7 files changed
+583
-20
No files matched your search
@@ -1,6 +1,7 @@
|
||||
const GardenExpansionBaseCost = 1000;
|
||||
const PlantInformationUpgradeCost = 500;
|
||||
const GardenOverviewUpgradeCost = 1000;
|
||||
const MutationHintsUpgradeCost = 1000;
|
||||
|
||||
|
||||
function GetGardenColumnUpgradeCost(
|
||||
@@ -189,3 +190,29 @@ function UnlockGardenOverview(
|
||||
SaveData.Preferences.ShowReadyPlots =
|
||||
true;
|
||||
}
|
||||
|
||||
|
||||
function HasMutationHintsUpgrade(
|
||||
SaveData
|
||||
) {
|
||||
return (
|
||||
SaveData
|
||||
?.Upgrades
|
||||
?.MutationHints ===
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
function GetMutationHintsUpgradeCost() {
|
||||
return MutationHintsUpgradeCost;
|
||||
}
|
||||
|
||||
|
||||
function UnlockMutationHints(
|
||||
SaveData
|
||||
) {
|
||||
SaveData.Upgrades ??= {};
|
||||
SaveData.Upgrades.MutationHints =
|
||||
true;
|
||||
}
|
||||
Reference in new issue
Block a user