Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IG2WTC committed Aug 4, 2024
1 parent 6367056 commit 257e174
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,10 @@ function profit(crop) {
Math.floor(total_harvest * (crop.harvests - 1)) +
Math.min(Math.floor(crop.growth.regrow > 0 ? (options.days - crop.growth.initial - crop.growth.regrow * (crop.harvests - 1) - 1) / 3 :
(options.days - crop.growth.initial * crop.harvests - 1) / 3) * num_planted, num_planted * crop.harvests)
, 1);
, 0);
var maxJarProcesses = (jarCycles * options.equipment);
itemsMade = Math.min(maxJarProcesses, usableCrops - total_harvest);
itemsMade = Math.min(maxJarProcesses, usableCrops //- total_harvest
);

if (usableCrops > maxJarProcesses) {
cropsLeft += total_crops - maxJarProcesses;
Expand Down

0 comments on commit 257e174

Please sign in to comment.