feature/combat rating system

This commit is contained in:
SowinskiBraeden committed 2023-11-04 15:51:40 -07:00
1 parent 6735c40daa
commit 58339d9983
7 files changed
+67 -206

No files matched your search

+6
View File
@@ -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));
},
}