DEN/Mill
From Neuron Interactive
The Mill
The Mill helps improve the production of food in your Farms. This improvement is reflected in your Mill's window, and NOT in your Farm's window. The Formula for this improvement is as follows:
[code]
public function calculateIncome ()
{
$farms = $this->getVillage()->buildings->getBuildingLevelSum (10);
$mills = $this->getVillage()->buildings->getBuildingLevelSum (16);
$income = $this->INCOME * SPEED_FACTOR;
$x = 1.7 * $income * $farms * $this->getLevel ();
$y = $farms + $mills;
return floor ($x / $y);
}
[/code]
getBuildingLevelSum returns the sum of all levels of this building in your village. So, if you have a level 1 and a level 2 farm, $farms will be 3.
$this->getLevel () returns the current level of the mill.

