I've implemented the yield rate modifier as a Float (assumed to be greater than 0). It affects the yield behaviour as follows:
Suppose the yield rate modifier for a fruit is r = n + p, where n = floor p. Then each factory of that fruit type yields n fruits with probability 1-p and n+1 fruits with probability p. The final yield is the sum of the yields for individual factories. This means the average yield is
n * (1-p) + (n+1) * p
= n + p
= r
so that the yield rate modifier tells us the average yield rate.
I've implemented the yield rate modifier as a
Float
(assumed to be greater than 0). It affects the yield behaviour as follows:Suppose the yield rate modifier for a fruit is
r = n + p
, wheren = floor p
. Then each factory of that fruit type yieldsn
fruits with probability1-p
andn+1
fruits with probabilityp
. The final yield is the sum of the yields for individual factories. This means the average yield isso that the yield rate modifier tells us the average yield rate.