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

[version vérifiée][version vérifiée]
Ligne 125 : Ligne 125 :
 
<tr>
 
<tr>
 
<th>{{{Bonus1|}}}</th>
 
<th>{{{Bonus1|}}}</th>
<td>{{#vardefine:raffi19|{{#ifexpr:1 >= floor({{{10}}}/10)|1|{{#expr:floor({{{10}}}/10)}}}}}}{{#var:raffi19}}</td>
+
<td>{{#vardefine:b1raffi19|{{#ifexpr:1 >= floor({{{10}}}/10)|1|{{#expr:floor({{{10}}}/10)}}}}}}{{#var:b1raffi19}}</td>
<td>{{#vardefine:raffi29|{{#ifexpr:2 >= floor({{{10}}}/5)|{{#expr:2-{{#var:raffi19}}}}|{{#expr:floor({{{10}}}/5)-{{#var:raffi19}}}}}}}}{{#var:raffi29}}</td>
+
<td>{{#vardefine:b1raffi29|{{#ifexpr:2 >= floor({{{10}}}/5)|{{#expr:2-{{#var:b1raffi19}}}}|{{#expr:floor({{{10}}}/5)-{{#var:b1raffi19}}}}}}}}{{#var:b1raffi29}}</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:b1raffi29}}-{{#var:b1raffi19}}}}|{{#expr:floor(2*{{{10}}}/5)-{{#var:b1raffi29}}-{{#var:b1raffi19}}}}}}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
<th>{{{Bonus2|}}}</th>
 
<th>{{{Bonus2|}}}</th>
<td>{{#vardefine:raffi19|{{#ifexpr:1 >= floor({{{20}}}/10)|1|{{#expr:floor({{{20}}}/10)}}}}}}{{#var:raffi19}}</td>
+
<td>{{#vardefine:b2raffi19|{{#ifexpr:1 >= floor({{{20}}}/10)|1|{{#expr:floor({{{20}}}/10)}}}}}}{{#var:b2raffi19}}</td>
<td>{{#vardefine:raffi29|{{#ifexpr:2 >= floor({{{10}}}/5)|{{#expr:2-{{#var:raffi19}}}}|{{#expr:floor({{{10}}}/5)-{{#var:raffi19}}}}}}}}{{#var:raffi29}}</td>
+
<td>{{#vardefine:b2raffi29|{{#ifexpr:2 >= floor({{{20}}}/5)|{{#expr:2-{{#var:b2raffi19}}}}|{{#expr:floor({{{20}}}/5)-{{#var:b2raffi19}}}}}}}}{{#var:b2raffi29}}</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*{{{20}}}/5)|{{#expr:3-{{#var:b2raffi29}}-{{#var:b2raffi19}}}}|{{#expr:floor(2*{{{20}}}/5)-{{#var:b2raffi29}}-{{#var:b2raffi19}}}}}}</td>
 
</tr>
 
</tr>
 
</table>
 
</table>

Version du 12 avril 2022 à 17:01

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