unitType, $this->villageId); return (int)ceil( log( ($this->level * $amountResiding) + 1 ) * $_ENV['BASE_RESOURCE_GENERATION_FACTOR'] ); } }