Templar castle
Tower: +30
Won't raise tower above Max tower / 2
If Dungeon < 4
Dungeon: +1
Cost (B / G / R)
20 / 0 / 0
BB code
Effect
Tower: +30
Won't raise tower above Max tower / 2
If Dungeon < 4
Dungeon: +1
Code
$tmp = max($t->myData()->Tower, round($t->config('max_tower') / 2));
$t->myData()->addTower(30)->setTower(min($t->myData()->Tower, $tmp));
if ($t->myData()->Dungeons < 4) {
$t->myData()->Dungeons++;
}