isCurrent($id) || $building->isLoop($id))?1:0; $doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0; ?>

Earth Wall Level resarray['f'.$id]; ?>

By building a Earth Wall you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.

isMax($village->resarray['f'.$id.'t'],$id)) { $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild; if($next<=20){ ?>
Defence Bonus now: resarray['f'.$id]]['attri']; ?> Percent
Defence Bonus at level : Percent Defence Bonus at level 20: Percent