Files
TravianZ/Templates/Build/47.tpl
T
novgorodschi catalin 3d4d5e5cef Fix Command Center Capital Change #329
Fix Command Center Capital Change #329 , Fix forum units, fix trooplist on raidlist,
2026-07-17 08:24:13 +03:00

51 lines
2.7 KiB
Smarty

<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename : DEFENSIVEWALL ##
## Type : BUILDING TEMPLATE ##
## --------------------------------------------------------------------------- ##
## Created by : Shadow ##
## Designed by : Shadow ##
## --------------------------------------------------------------------------- ##
## Contact : cata7007@gmail.com ##
## Project : TravianZ ##
## Test Server : https://travianz.org ##
## GitHub : https://github.com/Shadowss/TravianZ ##
## --------------------------------------------------------------------------- ##
## License : TravianZ Project ##
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
## --------------------------------------------------------------------------- ##
#################################################################################
global $village, $building, $bid47, $id, $loopsame, $doublebuild, $master;
include("next.tpl");
$level = (int)$village->resarray['f'.$id];
$current = $level > 0 ? (int)$bid47[$level]['attri'] : 0;
?>
<div id="build" class="gid47">
<img class="wall-model" src="gpack/travian_default/img/g/g47.gif" alt="<?php echo DEFENSIVEWALL;?>" style="float:right;margin:2px 0 10px 14px;max-width:110px;height:auto;" />
<h1><?php echo DEFENSIVEWALL;?> <span class="level"><?php echo LEVEL;?> <?php echo $level;?></span></h1>
<p class="build_desc"><?php echo DEFENSIVEWALL_DESC;?></p>
<table cellpadding="1" cellspacing="1" id="build_value">
<tr>
<th><?php echo DEFENCE_NOW;?></th>
<td><b><?php echo $current;?></b> <?php echo PERCENT;?></td>
</tr>
<?php if (!$building->isMax($village->resarray['f'.$id.'t'], $id)):
$next = $level + 1 + $loopsame + $doublebuild + $master;
$next = $next > 20 ? 20 : $next;
?>
<tr>
<th><?php echo DEFENCE_LEVEL;?> <?php echo $next;?>:</th>
<td><b><?php echo (int)$bid47[$next]['attri'];?></b> <?php echo PERCENT;?></td>
</tr>
<?php endif;?>
</table>
<?php include("upgrade.tpl");?>
</div>