diff --git a/index.js b/index.js index 03d68ef..9a5ef4f 100644 --- a/index.js +++ b/index.js @@ -151,8 +151,10 @@ function calculateExtraStats(data, game, timeScope) { if (kills !== undefined) data.kdr = parseFloat((kills / data.deaths).toFixed(2)); if ("seeker_kills" in data) data.skdr = data.seeker_kills / data.deaths; - if ("final_kills" in data) + if ("final_kills" in data) { data.fkdr = parseFloat((data.final_kills / data.deaths).toFixed(2)); + data.fkpr = parseFloat((data.final_kills / data.played).toFixed(2)); + } if ("treasure_destroyed" in data) data.ddr = data.treasure_destroyed / data.deaths; } diff --git a/package.json b/package.json index 14d52d9..4a50204 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hive-tools-wrapper", - "version": "2.1.0", + "version": "2.2.0", "description": "Advanced Hive Bedrock API wrapper with caching.", "main": "./index.js", "dependencies": {