fix: build check for village vs non-village buildings

This commit is contained in:
Martin Ambrus
2017-11-25 11:26:10 +01:00
parent 4e51c9c527
commit abfcde6e9a
2 changed files with 31 additions and 16 deletions
+2 -1
View File
@@ -142,8 +142,9 @@ class Village {
$this->production['wood'] = $this->getWoodProd();
$this->production['clay'] = $this->getClayProd();
$this->production['iron'] = $this->getIronProd();
if ($uniqueA['size']==3 && $uniqueA['owner']==$session->uid){
$this->production['crop'] = $this->getCropProd()-$this->pop-(($upkeep)-round($upkeep*0.50));
$this->production['crop'] = $this->getCropProd()- $this->pop - (($upkeep)-round($upkeep*0.50));
}else if ($normalA['type']==4 && $normalA['size']==1 && $normalA['owner']==$session->uid){
$this->production['crop'] = $this->getCropProd()-$this->pop-(($upkeep)-round($upkeep*0.25));