Version 1.13a

This commit is contained in:
nemunaire 2020-11-15 16:12:30 +01:00
commit ba8f323879
1634 changed files with 10080 additions and 213021 deletions

View file

@ -1,47 +1,43 @@
{include file='game/header.tpl'}
<h2>File d'attente</h2>
<div class="file">
<ul class="onglets">
<li><a href="#" class="hilight">Tous</a></li>
<li><a href="#">Mines/centrales</a></li>
<li><a href="#">Civils</a></li>
<li><a href="#">Militaires</a></li>
</ul>
<h2>File d'attente</h2>
{if $file}
<ul id="file">
{foreach from=$file item=element key=key}
<span>{$LANG.$race.batiments.noms_sing[$element.0]|ucfirst}{if $element.1} (démolition){/if} - <em id="reste{$key}"></em><script type="text/javascript">reste({$element.2},'reste{$key}', {if $i != true}{assign var='i' value=true}true{else}false{/if});</script> - <a href="{$menu.batiments}&amp;a={$key}">Annuler</a></span>
<li>{$LANG.$race.batiments.noms_sing[$element.0]|ucfirst}{if $element.1} (démolition){/if} - <span{if !$djpass} class="countdown"{assign var='djpass' value=true}{/if}>{$element.2|countdown}</span> - <a href="{$menu.batiments}&amp;a={$key}">Annuler</a></li>
{/foreach}
{else} <span>Aucun b&acirc;timent dans la file d'attente</span>{/if}
<br />
</div>
<h3><a href="{$menu.arbre}&amp;q=batiments">Arbre des technologies</a></h3><br />
<h2>B&acirc;timents</h2>
<table class="construction">
</ul>
{else}
<ul id="file">
<li>Aucun b&acirc;timent dans la file d'attente</li>
</ul>
{/if}
<h3><a href="{$menu.arbre}&amp;q=batiments">Arbre des technologies</a></h3><br />
<h2>B&acirc;timents</h2>
<div id="constructions">
{foreach from=$batiments item=batiment}
<tr>
<td>
<a class="bulle" href="?p=description&amp;b={$batiment.id}#menu">
<img width="130" height="132" src="{$url_images}images/batiments/{$batiment.image}" alt="{$LANG.$race.batiments.noms_sing[$batiment.id]}" />
<span>{$LANG.$race.batiments.descriptions[$batiment.id]}</span>
</a>
</td>
<td>
<div>
<strong>{$LANG.$race.batiments.noms_sing[$batiment.id]|ucfirst}{if $batiment.niveau > 0} (Niveau {$batiment.niveau}){/if}</strong><br /><br />
{if $batiment.nec_metal > 0}
{if $batiment.nec_metal > $planete->metal}<span class="lack">Coût {$LANG.$race.ressources.noms.metal} : {$batiment.nec_metal|separerNombres}</span><br />
{else}Coût {$LANG.$race.ressources.noms.metal} : {$batiment.nec_metal|separerNombres}<br />{/if}
{/if}
{if $batiment.nec_cristal > 0}
{if $batiment.nec_cristal > $planete->cristal}<span class="lack">Coût {$LANG.$race.ressources.noms.cristal} : {$batiment.nec_cristal|separerNombres}</span><br />
{else}Coût {$LANG.$race.ressources.noms.cristal} : {$batiment.nec_cristal|separerNombres}<br />{/if}
{/if}
{if $batiment.nec_hydrogene > 0}
{if $batiment.nec_hydrogene > $planete->hydrogene}<span class="lack">Coût {$LANG.$race.ressources.noms.hydrogene} : {$batiment.nec_hydrogene|separerNombres}</span><br />
{else}Coût {$LANG.$race.ressources.noms.hydrogene} : {$batiment.nec_hydrogene|separerNombres}<br />{/if}
{/if}
Temps de construction : {$batiment.temps}<br /><br />
{if $batiment.nec_hydrogene > $planete->hydrogene || $batiment.nec_cristal > $planete->cristal || $batiment.nec_metal > $planete->metal}<span class="lack" title="Rassemblez les ressources manquantes avant de lancer la construction de ce batiment">Ressources insuffisantes</span>
{else}{if $planete->casesRest >= 1}<a href="{$menu.batiments}&amp;c={$batiment.id}">Construire</a>{/if}{/if}
{if $batiment.enfile !== false}<a href="{$menu.batiments}&amp;a={$batiment.enfile}">Arrêter</a>{/if}
{if $batiment.niveau > 0} <a href="{$menu.batiments}&amp;d={$batiment.id}">Démolir un niveau</a>{/if}
</div>
</td>
</tr>
<dl>
<dt>{$LANG.$race.batiments.noms_sing[$batiment.id]|ucfirst}{if $batiment.niveau > 0} (Niveau {$batiment.niveau}){/if}</dt>
<dd class="description"><a href="?p=description&amp;b={$batiment.id}#body"><img src="{$url_images}images/batiments/{$batiment.image}" alt="{$LANG.$race.batiments.noms_sing[$batiment.id]}" /></a><p>{$LANG.$race.batiments.descriptions[$batiment.id]}</p></dd>
<dd>
{if $batiment.niveau > 0}<strong>Niveau actuel :</strong> {$batiment.niveau}<br /><br />{/if}
{if $batiment.nec_metal > 0}<strong>Coût {$LANG.$race.ressources.noms.metal} :</strong> <span class="lack">{$batiment.nec_metal|separerNombres}</span><br />{/if}
{if $batiment.nec_cristal > 0}<strong>Coût {$LANG.$race.ressources.noms.cristal} :</strong> {$batiment.nec_cristal|separerNombres}<br />{/if}
{if $batiment.nec_hydrogene > 0}<strong>Coût {$LANG.$race.ressources.noms.hydrogene} :</strong> {$batiment.nec_hydrogene|separerNombres}<br />{/if}
<strong>Temps de construction :</strong> {$batiment.temps}<br />
<br />
{if $batiment.nec_hydrogene > $planete->hydrogene || $batiment.nec_cristal > $planete->cristal || $batiment.nec_metal > $planete->metal}<span class="lack" title="Rassemblez les ressources manquantes avant de lancer la construction de ce batiment">Ressources insuffisantes</span>
{else}{if $planete->casesRest >= 1}<a href="{$menu.batiments}&amp;c={$batiment.id}">Construire</a>{/if}{/if}
{if $batiment.enfile !== false}<a href="{$menu.batiments}&amp;a={$batiment.enfile}">Arrêter</a>{/if}
{if $batiment.niveau > 0} <a href="{$menu.batiments}&amp;d={$batiment.id}">Démolir un niveau</a>{/if}
</dd>
</dl>
{/foreach}
</table>
</div>
{include file='game/footer.tpl'}