elizabethburgessamt / StardewCropCalc

A calculator for optimal profit on growing crops in the game Stardew Valley
0 stars 0 forks source link

Calculation Discussion #8

Open elizabethburgessamt opened 6 years ago

elizabethburgessamt commented 6 years ago

Discussion thread for calculating a crop budget.

elizabethburgessamt commented 6 years ago

Proposed calculations so far:

elizabethburgessamt commented 6 years ago

Highest Profit For crops that don't regrow, the formula is simple, as it's a simple comparison between the seed cost and the sell price. Multiply that with the number of seeds planted and the number of times the seed is planted for that month. This comes out to:

Crops that do regrow only have an initial cost, as you only plant them once and regrow crops every few days. Once you grow the main plant, the rest of the month is just harvesting the regrown crops. Hence, your number of harvests is based on regrowth divided into the rest of the month:

elizabethburgessamt commented 6 years ago

Thinking more about the issue, I realized that the formulas I posited wouldn't be enough. However, they can still be used to get the maximum profit for each crop for comparison.

For example, Blue Jazz has a growth time of 7 days, costs 30g, and sells for 50g. Applying the formula would yield floor(28/7) (50 - 30) or 80g per plant in the same spot for the entire month. Before applying character skills that decrease growth time, this number will stay the same. The only time you would change the plant in the spot would be to fill out time for the rest of the season, i.e. growing Cauliflower floor(28/12) (175-80) or 190 for the first 24 days and filling the rest of the time with Garlic for an extra 20g. We need to account for the cost/income for the entire 28 days of a single spot before applying that to an entire field.

elizabethburgessamt commented 6 years ago

The Lazy Farmer idea could apply the regrowth formula, but any trellis crops would be limited by the field's maxTrellis amount, as it would be impossible to harvest everything using only trellis crops with these particular field layouts.