Files
TravianZ/Templates/Build/13.tpl
T
novgorodschi catalin 55e6dd60b5 Refactor + BugFix
1. Fix a bug in Admin Panel that you can edit by yourself your rank, now you cannot edit your rank anymore.

2. Now Alliance Leader can edit his own Position

3. Fix negative value on Demolition Building, now in database at lvl is appear new level not -1

4. Refactor Ajax map, now all is alligned (Ajax folder and Map folder)

5. Fix bug from Palace (when change capital now Automation recount population automaticaly on old capital and new capital)
2026-05-18 09:18:35 +03:00

28 lines
811 B
Smarty

<?php
// ARMOURY
$field = 'f' . $id;
$currentLevel = isset($village->resarray[$field]) ? (int)$village->resarray[$field] : 0;
$hasArmoury = $building->getTypeLevel(13) > 0;
?>
<div id="build" class="gid13">
<a href="#" onclick="return Popup(13,4);" class="build_logo">
<img class="building g13" src="img/x.gif" alt="<?php echo ARMOURY; ?>" title="<?php echo ARMOURY; ?>">
</a>
<h1>
<?php echo ARMOURY; ?>
<span class="level"><?php echo LEVEL; ?> <?php echo $currentLevel; ?></span>
</h1>
<p class="build_desc"><?php echo ARMOURY_DESC; ?></p>
<?php if ($hasArmoury): ?>
<?php include '13_upgrades.tpl'; ?>
<?php else: ?>
<p><b><?php echo UPGRADES_COMMENCE_ARMOURY; ?></b></p>
<?php endif; ?>
<?php include 'upgrade.tpl'; ?>
</div>