HB/templates/game/SIMrapport_combat.tpl

195 lines
10 KiB
Smarty
Raw Normal View History

2008-12-01 11:00:00 +00:00
{include file='game/header.tpl'}
<b>Le combat est terminé !</b><br /><br />
Nombre de tour : {$tour}<br /><br />
2008-11-16 11:00:00 +00:00
Puissance d'attaque attaquant : {$infoPLUS}<br /><br />
2008-12-01 11:00:00 +00:00
<b>Vaisseaux à la fin du tour de notre côté :</b>
<table style="margin: auto; padding: 0;">
<thead>
<tr>
<th>Vaisseaux</th>
<th>Nb</th>
<th>Etat bouclier</th>
<th>Etat PV</th>
</tr>
</thead>
<tbody>
{foreach from=$vaisseaux3 item=vaisseau}
{assign var="nom" value="`$vaisseau[0]-1`"}
<tr>
<td>{$vaisseau.1} {$nomvaisAT[$nom]}</td>
<td colspan="3" style="padding: 0;">
<table style="width: 100%; margin: 0; padding: 0;">
{foreach from=$vaisseau.3 item=groupe}
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
<tr>
<td>{$groupe.0}</td>
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
</tbody>
</table>
<br /><b>Vaisseaux ennemi à la fin du tour :</b>
<table style="margin: auto; padding: 0;">
<thead>
<tr>
<th>Vaisseaux</th>
<th>Nb</th>
<th>Etat bouclier</th>
<th>Etat PV</th>
</tr>
</thead>
<tbody>
{foreach from=$vaisseaux4 item=vaisseau}
{assign var="nom" value="`$vaisseau[0]-1`"}
<tr>
<td>{$vaisseau.1} {$nomvaisEN[$nom]}</td>
<td colspan="3" style="padding: 0;">
<table style="width: 100%; margin: 0; padding: 0;">
{foreach from=$vaisseau.3 item=groupe}
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
<tr>
<td>{$groupe.0}</td>
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
</tbody>
</table>
<br /><b>Défenses ennemi à la fin du tour :</b>
<table style="margin: auto; padding: 0;">
<thead>
<tr>
<th>Défenses</th>
<th>Nb</th>
<th>Etat bouclier</th>
<th>Etat PV</th>
</tr>
</thead>
<tbody>
{foreach from=$defenses2 item=vaisseau}
{assign var="nom" value="`$vaisseau[0]-1`"}
<tr>
<td>{$vaisseau.1} {$nomdefEN[$nom]}</td>
<td colspan="3" style="padding: 0;">
<table style="width: 100%; margin: 0;">
{foreach from=$vaisseau.3 item=groupe}
{assign var="pourcent_pv" value="`$groupe[2]*100/$defPV[$nom]`"}
<tr>
<td>{$groupe.0}</td>
<td>{if $defBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$defBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
</tbody>
</table>
<br /><br /><b>Vaisseaux au début du tour de notre côté :</b>
<table style="margin: auto; padding: 0;">
<thead>
<tr>
<th>Vaisseaux</th>
<th>Nb</th>
<th>Etat bouclier</th>
<th>Etat PV</th>
</tr>
</thead>
<tbody>
{foreach from=$vaisseaux1 item=vaisseau}
{assign var="nom" value="`$vaisseau[0]-1`"}
<tr>
<td>{$vaisseau.1} {$nomvaisAT[$nom]}</td>
<td colspan="3" style="padding: 0;">
<table style="width: 100%; margin: 0; padding: 0;">
{foreach from=$vaisseau.3 item=groupe}
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
<tr>
<td>{$groupe.0}</td>
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
</tbody>
</table>
<br /><b>Vaisseaux ennemi au début du tour :</b>
<table style="margin: auto; padding: 0;">
<thead>
<tr>
<th>Vaisseaux</th>
<th>Nb</th>
<th>Etat bouclier</th>
<th>Etat PV</th>
</tr>
</thead>
<tbody>
{foreach from=$vaisseaux2 item=vaisseau}
{assign var="nom" value="`$vaisseau[0]-1`"}
<tr>
<td>{$vaisseau.1} {$nomvaisEN[$nom]}</td>
<td colspan="3" style="padding: 0;">
<table style="width: 100%; margin: 0; padding: 0;">
{foreach from=$vaisseau.3 item=groupe}
{assign var="pourcent_pv" value="`$groupe[2]*100/$vaisPV[$nom]`"}
<tr>
<td>{$groupe.0}</td>
<td>{if $vaisBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$vaisBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
</tbody>
</table>
<br /><b>Défenses ennemi au début du tour :</b>
<table style="margin: auto; padding: 0;">
<thead>
<tr>
<th>Défenses</th>
<th>Nb</th>
<th>Etat bouclier</th>
<th>Etat PV</th>
</tr>
</thead>
<tbody>
{foreach from=$defenses1 item=vaisseau}
{assign var="nom" value="`$vaisseau[0]-1`"}
<tr>
<td>{$vaisseau.1} {$nomdefEN[$nom]}</td>
<td colspan="3" style="padding: 0;">
<table style="width: 100%; margin: 0; padding: 0;">
{foreach from=$vaisseau.3 item=groupe}
{assign var="pourcent_pv" value="`$groupe[2]*100/$defPV[$nom]`"}
<tr>
<td>{$groupe.0}</td>
<td>{if $defBC[$nom] == 0}Inexistant{else}{assign var="pourcent_bc" value="`$groupe[1]*100/$defBC[$nom]`"}{if $pourcent_bc > 99}<span style="color: #00FF00">Complet{elseif $pourcent_bc > 80}<span style="color: #00FF00">Bon{elseif $pourcent_bc > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_bc > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_bc > 20}<span style="color: #FF9900">Bas{elseif $pourcent_bc == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_bc|string_format:"%d"}%)</span>{/if}</td>
<td>{if $pourcent_pv > 99}<span style="color: #00FF00">Complet{elseif $pourcent_pv > 80}<span style="color: #00FF00">Bon{elseif $pourcent_pv > 60}<span style="color: #CCCC00">Correct{elseif $pourcent_pv > 40}<span style="color: #EECC00">Moyen{elseif $pourcent_pv > 20}<span style="color: #FF9900">Bas{elseif $pourcent_pv == 0}<span style="color: #FF0000">Détruit{else}<span style="color: #FF5500">Critique{/if} ({$pourcent_pv|string_format:"%d"}%)</span></td>
</tr>
{/foreach}
</table>
</td>
</tr>
{/foreach}
</tbody>
</table>
<br />
{if !$termine}Le combat n'est pas terminé !</b>
{elseif $attaquantG}<strong>Nous avons gagné le combat !<br />Nous repartons avec {$pillage.0} {$ressources.0}, {$pillage.1} {$ressources.1} et {$pillage.2} {$ressources.2}.</strong>
{else}<strong>Nous avons perdu le combat !</strong>{/if}
{include file='game/footer.tpl'}