upgrade roll commande

This commit is contained in:
arthur
2024-05-27 20:51:39 +02:00
parent 585d2283e2
commit 0d2e57eb69
+3 -1
View File
@@ -104,8 +104,10 @@ module.exports = {
}
let gain = 0;
if (((args[1] === 'rouge' || args[1] === 'red') && colorR === 'rouge') || ((args[1] === 'noir' || args[1] === 'black') && colorR === 'noir') || ((args[1] === 'vert' || args[1] === 'green') && colorR === 'vert')) {
if (((args[1] === 'rouge' || args[1] === 'red') && colorR === 'rouge') || ((args[1] === 'noir' || args[1] === 'black') && colorR === 'noir')) {
gain = args[0] * 2;
} else if ((args[1] === 'vert' || args[1] === 'green') && colorR === 'vert') {
gain = args[0] * 36;
} else {
gain = 0-args[0];
}