Drop: Select quality of cards based on drop rates

This commit is contained in:
2022-09-21 11:17:11 +02:00
parent fc45908419
commit 73a2df6e74
3 changed files with 89 additions and 1 deletions

20
config/constants.js Normal file
View File

@@ -0,0 +1,20 @@
const QUALITY = {
BAD : 1,
OK : 2,
GOOD : 3,
GREAT : 4,
EXCELLENT : 5,
SHINY : 6
}
const QUALITY_NAMES = {
1 : "Bad",
2 : "Ok",
3 : "Good",
4 : "Great",
5 : "Excellent",
6 : "Shiny"
}
exports.QUALITY = QUALITY;
exports.QUALITY_NAMES = QUALITY_NAMES;