mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 18:58:11 +02:00
Price rebalancing.
This commit is contained in:
1 parent
b3902d4f69
commit
840ca6f176
1 file changed
+8
-18
@@ -3,9 +3,8 @@ const PlantInformationUpgradeCost = 500;
|
|||||||
const GardenOverviewUpgradeCost = 1000;
|
const GardenOverviewUpgradeCost = 1000;
|
||||||
const GardenEconomyUpgradeCost = 1000;
|
const GardenEconomyUpgradeCost = 1000;
|
||||||
const MutationHintsUpgradeCost = 1500;
|
const MutationHintsUpgradeCost = 1500;
|
||||||
const NewGardenBaseCost = 15000;
|
const NewGardenBaseCost = 4000;
|
||||||
const NewGardenCostMultiplier = 1.5;
|
const NewGardenCostMultiplier = 1.5;
|
||||||
const NewGardenCostRounding = 1000;
|
|
||||||
|
|
||||||
|
|
||||||
function GetGardenColumnUpgradeCost(
|
function GetGardenColumnUpgradeCost(
|
||||||
@@ -124,22 +123,13 @@ function GetNewGardenCost(
|
|||||||
SaveData.Gardens?.length ?? 1
|
SaveData.Gardens?.length ?? 1
|
||||||
);
|
);
|
||||||
|
|
||||||
let Cost =
|
return Math.round(
|
||||||
NewGardenBaseCost;
|
NewGardenBaseCost *
|
||||||
|
Math.pow(
|
||||||
for (
|
NewGardenCostMultiplier,
|
||||||
let GardenNumber = 1;
|
GardensOwned - 1
|
||||||
GardenNumber < GardensOwned;
|
)
|
||||||
GardenNumber++
|
);
|
||||||
) {
|
|
||||||
Cost = Math.round(
|
|
||||||
Cost *
|
|
||||||
NewGardenCostMultiplier /
|
|
||||||
NewGardenCostRounding
|
|
||||||
) * NewGardenCostRounding;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Cost;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user