Files
TravianZ/Templates/Build/47.tpl
T
novgorodschi catalin 25c8925ef6 NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327
NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327

Please be advised, is not fully tested so if you activate on install maybe is not fully working
2026-07-14 09:25:26 +03:00

50 lines
2.5 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">
<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>