### Weird saltpetre math

Posted:

**Fri Jan 25, 2019 2:42 am**So I was curious about the effect of saltpetre on plants, specifically its effect on production stats

so i wrote a quick python script to test values of this, using an interpretation of .dm's prob() function

which in short just tests every 5u interval a bunch of times and prints the avg effect on production and potency, but what I found gets really weird around the 100u mark

test outputs:

do I have a poor understanding of the prob() math or is the original coding just bad??

- Code: Select all
`myseed.adjust_production(-round(salt/100)-prob(salt%100))`

myseed.adjust_potency(round(salt*0.5))

so i wrote a quick python script to test values of this, using an interpretation of .dm's prob() function

**Spoiler:**

which in short just tests every 5u interval a bunch of times and prints the avg effect on production and potency, but what I found gets really weird around the 100u mark

test outputs:

**Spoiler:**

do I have a poor understanding of the prob() math or is the original coding just bad??