This commit is contained in:
asyncnomi 2023-01-17 13:15:33 +01:00
parent ef180b615c
commit a7431e4250

View file

@ -12,9 +12,9 @@ for (var uid in PrankData) {
nbPrank ++;
nbCrepe += parseInt(PrankData[uid].amount)
if (userPrank[PrankData[uid].creator]) {
userPrank[PrankData[uid].creator] += nbCrepe;
userPrank[PrankData[uid].creator] += nbPrank;
} else {
userPrank[PrankData[uid].creator] = nbCrepe;
userPrank[PrankData[uid].creator] = nbPrank;
}
}
}
@ -26,5 +26,5 @@ console.log("Nombre de mission mission achevé: " + nbPrank)
console.log("Nombre de crêpe servis: " + nbCrepe)
console.log("Nombre moyen de crêpe par demande: " + meanCrepe + "\n")
for (var user in userPrank) {
console.log(user + "a commandé " + userPrank[user] + " crêpe")
console.log(user + " a commandé " + userPrank[user] + " crêpe")
}