feature/combat rating system
This commit is contained in:
7 files changed
+67
-206
No files matched your search
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
calculateNewCombatRating: (Ra, Rb, score) => {
|
||||
const Ea = 1 / (1 + Math.pow(10, ((Rb - Ra) / 400)));
|
||||
return Math.round(Ra + 32 * (score - Ea));
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user