Modèle:Équipements/Bonus : Différence entre versions

[version vérifiée][version vérifiée]
Ligne 85 : Ligne 85 :
 
<tr>
 
<tr>
 
<th>{{{Bonus1|}}}</th>
 
<th>{{{Bonus1|}}}</th>
<td>{{#vardefine:raffi10|{{#ifexpr:1 >= floor({{{1}}}/10)|1|floor({{{1}}}/10)}}}}{{#var:raffi10}}</td>
+
<td>{{#vardefine:raffi10|{{#ifexpr:1 >= floor({{{1}}}/10)|1|{{#expr:floor({{{1}}}/10)}}}}}}{{#var:raffi10}}</td>
 
<td>{{#vardefine:raffi20|{{#ifexpr:2 >= floor({{{1}}}/5)|{{#expr:2-{{#var:raffi10}}}}|{{#expr:floor({{{1}}}/5)-{{#var:raffi10}}}}}}}}{{#var:raffi20}}</td>
 
<td>{{#vardefine:raffi20|{{#ifexpr:2 >= floor({{{1}}}/5)|{{#expr:2-{{#var:raffi10}}}}|{{#expr:floor({{{1}}}/5)-{{#var:raffi10}}}}}}}}{{#var:raffi20}}</td>
 
<td>{{#ifexpr:3 >= floor(2*{{{1}}}/5)|{{#expr:3-{{#var:raffi20}}-{{#var:raffi10}}}}|{{#expr:floor(2*{{{1}}}/5)-{{#var:raffi20}}-{{#var:raffi10}}}}}}</td>
 
<td>{{#ifexpr:3 >= floor(2*{{{1}}}/5)|{{#expr:3-{{#var:raffi20}}-{{#var:raffi10}}}}|{{#expr:floor(2*{{{1}}}/5)-{{#var:raffi20}}-{{#var:raffi10}}}}}}</td>
Ligne 91 : Ligne 91 :
 
<tr>
 
<tr>
 
<th>{{{Bonus2|}}}</th>
 
<th>{{{Bonus2|}}}</th>
<td>{{#vardefine:raffi10|{{#ifexpr:1 >= floor({{{11}}}/10)|1|floor({{{11}}}/10)}}}}{{#var:raffi10}}</td>
+
<td>{{#vardefine:raffi10|{{#ifexpr:1 >= floor({{{11}}}/10)|1|{{#expr:floor({{{11}}}/10)}}}}}}{{#var:raffi10}}</td>
 
<td>{{#vardefine:raffi20|{{#ifexpr:2 >= floor({{{11}}}/5)|{{#expr:2-{{#var:raffi10}}}}|{{#expr:floor({{{11}}}/5)-{{#var:raffi10}}}}}}}}{{#var:raffi20}}</td>
 
<td>{{#vardefine:raffi20|{{#ifexpr:2 >= floor({{{11}}}/5)|{{#expr:2-{{#var:raffi10}}}}|{{#expr:floor({{{11}}}/5)-{{#var:raffi10}}}}}}}}{{#var:raffi20}}</td>
 
<td>{{#ifexpr:3 >= floor(2*{{{11}}}/5)|{{#expr:3-{{#var:raffi20}}-{{#var:raffi10}}}}|{{#expr:floor(2*{{{11}}}/5)-{{#var:raffi20}}-{{#var:raffi10}}}}}}</td>
 
<td>{{#ifexpr:3 >= floor(2*{{{11}}}/5)|{{#expr:3-{{#var:raffi20}}-{{#var:raffi10}}}}|{{#expr:floor(2*{{{11}}}/5)-{{#var:raffi20}}-{{#var:raffi10}}}}}}</td>
Ligne 125 : Ligne 125 :
 
<tr>
 
<tr>
 
<th>{{{Bonus1|}}}</th>
 
<th>{{{Bonus1|}}}</th>
<td>{{#vardefine:raffi19|{{#ifexpr:1 >= floor({{{10}}}/10)|1|floor({{{10}}}/10)}}}}{{#var:raffi19}}</td>
+
<td>{{#vardefine:raffi19|{{#ifexpr:1 >= floor({{{10}}}/10)|1|{{#expr:floor({{{10}}}/10)}}}}}}{{#var:raffi19}}</td>
 
<td>{{#vardefine:raffi29|{{#ifexpr:2 >= floor({{{10}}}/5)|{{#expr:2-{{#var:raffi19}}}}|{{#expr:floor({{{10}}}/5)-{{#var:raffi19}}}}}}}}{{#var:raffi29}}</td>
 
<td>{{#vardefine:raffi29|{{#ifexpr:2 >= floor({{{10}}}/5)|{{#expr:2-{{#var:raffi19}}}}|{{#expr:floor({{{10}}}/5)-{{#var:raffi19}}}}}}}}{{#var:raffi29}}</td>
 
<td>{{#ifexpr:3 >= floor(2*{{{10}}}/5)|{{#expr:3-{{#var:raffi29}}-{{#var:raffi19}}}}|{{#expr:floor(2*{{{10}}}/5)-{{#var:raffi29}}-{{#var:raffi19}}}}}}</td>
 
<td>{{#ifexpr:3 >= floor(2*{{{10}}}/5)|{{#expr:3-{{#var:raffi29}}-{{#var:raffi19}}}}|{{#expr:floor(2*{{{10}}}/5)-{{#var:raffi29}}-{{#var:raffi19}}}}}}</td>
Ligne 131 : Ligne 131 :
 
<tr>
 
<tr>
 
<th>{{{Bonus2|}}}</th>
 
<th>{{{Bonus2|}}}</th>
<td>{{#vardefine:raffi19|{{#ifexpr:1 >= floor({{{20}}}/10)|1|floor({{{20}}}/10)}}}}{{#var:raffi19}}</td>
+
<td>{{#vardefine:raffi19|{{#ifexpr:1 >= floor({{{20}}}/10)|1|{{#expr:floor({{{20}}}/10)}}}}}}{{#var:raffi19}}</td>
 
<td>{{#vardefine:raffi29|{{#ifexpr:2 >= floor({{{10}}}/5)|{{#expr:2-{{#var:raffi19}}}}|{{#expr:floor({{{10}}}/5)-{{#var:raffi19}}}}}}}}{{#var:raffi29}}</td>
 
<td>{{#vardefine:raffi29|{{#ifexpr:2 >= floor({{{10}}}/5)|{{#expr:2-{{#var:raffi19}}}}|{{#expr:floor({{{10}}}/5)-{{#var:raffi19}}}}}}}}{{#var:raffi29}}</td>
 
<td>{{#ifexpr:3 >= floor(2*{{{10}}}/5)|{{#expr:3-{{#var:raffi29}}-{{#var:raffi19}}}}|{{#expr:floor(2*{{{20}}}/5)-{{#var:raffi29}}-{{#var:raffi19}}}}}}</td>
 
<td>{{#ifexpr:3 >= floor(2*{{{10}}}/5)|{{#expr:3-{{#var:raffi29}}-{{#var:raffi19}}}}|{{#expr:floor(2*{{{20}}}/5)-{{#var:raffi29}}-{{#var:raffi19}}}}}}</td>

Version du 12 avril 2022 à 16:50

Amélioration
+0
+1
+2
+3
+4
+5
+6
+7
+8
+9