Talk:Berries

Discussion: Should it readily list the time per farm point of each berry?
Could be useful information.

Can already be calculated manually for each berry, but the list of berries has gotten quite long making it rather slow.

I've calculated and sorted it for the current (25/12/2021) values:

And if you want to double check the calculation, or update the values, here's the (dirty) JavaScript I used on the main page: console.table( [...document.querySelectorAll('tbody tr')]	.map((row) => { const cells = row.querySelectorAll('td');

return ({				name: cells[1].innerText,				farmPoints: cells[3].innerText,				growthTimes: cells[4].innerText,			}); })	.map((entry) => { const durations = entry.growthTimes.match(/((? [0-9]+) hr )?((? [0-9]+) min )?((? [0-9]+) s )?to ripe/), hours = parseInt(durations.groups.hours ?? 0, 10), mins = parseInt(durations.groups.mins ?? 0, 10) , secs = parseInt(durations.groups.secs ?? 0, 10), totalSeconds = (hours * 3600) + (mins * 60) + secs;

return { ...entry, totalSeconds, secondsPerPoint: totalSeconds / parseInt(entry.farmPoints, 10) };		})	.sort((a, b) => a.secondsPerPoint > b.secondsPerPoint) ); Most likely to break is the selectors.