forked from halo-battle/game
Version 1.14a
This commit is contained in:
parent
ba8f323879
commit
dc48225dc9
1094 changed files with 189052 additions and 13889 deletions
|
|
@ -1,40 +1,43 @@
|
|||
{include file='game/header.tpl'}
|
||||
<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>
|
||||
<li{if $onglet == 0} class="hilight"{/if}><a href="{$menu.batiments}">Tous</a></li>
|
||||
<li{if $onglet&1} class="hilight"{/if}><a href="{$menu.batiments}&n=1">Mines/centrales</a></li>
|
||||
<li{if $onglet&2} class="hilight"{/if}><a href="{$menu.batiments}&n=2">Civils</a></li>
|
||||
<li{if $onglet&4} class="hilight"{/if}><a href="{$menu.batiments}&n=4">Militaires</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>File d'attente</h2>
|
||||
{if $file}
|
||||
<ul id="file">
|
||||
{foreach from=$file item=element key=key}
|
||||
<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}&a={$key}">Annuler</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{capture name='expFile'}
|
||||
{foreach from=$files item=file key=keyF}
|
||||
{foreach from=$file item=element key=keyE}
|
||||
<li>{$LANG[$race].batiments.noms_sing[$element.0]|ucfirst}{if $element.1} (démolition){/if} - <span{if $element.3} class="countdown"{/if}>{$element.2|countdown}</span> - <a href="{$menu.batiments}&a={$keyF}&b={$keyE}">Annuler</a></li>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/capture}
|
||||
{if $files && $smarty.capture.expFile}
|
||||
{$smarty.capture.expFile}
|
||||
{else}
|
||||
<ul id="file">
|
||||
<li>Aucun bâtiment dans la file d'attente</li>
|
||||
</ul>
|
||||
{/if}
|
||||
</ul>
|
||||
<h3><a href="{$menu.arbre}&q=batiments">Arbre des technologies</a></h3><br />
|
||||
<h2>Bâtiments</h2>
|
||||
<div id="constructions">
|
||||
{foreach from=$batiments item=batiment}
|
||||
<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&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>
|
||||
<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&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 />
|
||||
{if $batiment.niveau > 0}Niveau actuel : <em>{$batiment.niveau}</em><br /><br />{/if}
|
||||
{if $batiment.nec_metal > 0}Coût {$LANG[$race].ressources.noms.metal} : <em{if $batiment.nec_metal > $planete->metal} class="lack"{/if}>{$batiment.nec_metal|separerNombres}</em><br />{/if}
|
||||
{if $batiment.nec_cristal > 0}Coût {$LANG[$race].ressources.noms.cristal} : <em{if $batiment.nec_cristal > $planete->cristal} class="lack"{/if}>{$batiment.nec_cristal|separerNombres}</em><br />{/if}
|
||||
{if $batiment.nec_hydrogene > 0}Coût {$LANG[$race].ressources.noms.hydrogene} : <em{if $batiment.nec_hydrogene > $planete->hydrogene} class="lack"{/if}>{$batiment.nec_hydrogene|separerNombres}</em><br />{/if}
|
||||
Temps de construction : <em>{$batiment.temps}</em><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}&c={$batiment.id}">Construire</a>{/if}{/if}
|
||||
{if $batiment.enfile !== false}<a href="{$menu.batiments}&a={$batiment.enfile}">Arrêter</a>{/if}
|
||||
{if $batiment.enfile !== false}<a href="{$menu.batiments}&a={$batiment.enfile.0}&b={$batiment.enfile.1}">Arrêter</a>{/if}
|
||||
{if $batiment.niveau > 0} <a href="{$menu.batiments}&d={$batiment.id}">Démolir un niveau</a>{/if}
|
||||
</dd>
|
||||
</dl>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue