def rate(sell,grow,regrow=0,amount=1,season=1):    if regrow == 0:        regrow = grow    harvests = (((28*season)-grow)//regrow + 1)/season    season = sell*amount*harvests    n = 1000/season    n **= 2    return round(n,2)

Article information

Added on

Written by

shadeinthestars

1 comment

  1. Ashrayne
    Ashrayne
    • supporter
    • 23 kudos
    :timidly raises hand: Um, not a programmer at all. Do you put this code in the DLL of the Better Mixed Seeds mod somehow if you want it to calculate a config like this? I play with different crop mods and would love to use your formula but for my setup.