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

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

The trapper protects your village with well hidden traps. This means that unwary enemies can be imprisoned and won't be able to harm your village anymore.

isMax($village->resarray['f'.$id.'t'],$id)) { $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild; if($next<=20){ ?>
Currect maximum traps to train: resarray['f'.$id]]['attri']; ?> Traps
Maximum traps to train at level : Traps Maximum traps to train at level 20: Traps

Your currently have 0 traps, 0 of which are occupied.

Name Quantity Max
Trap Trap (Available: 0)
Lumber20|Clay30|Iron10|Crop20|Crop consumption0|Duration0:10:00
(resarray['f'.$id]]['attri']; ?>)