Skip to content

Commit

Permalink
Add final kills per round to data
Browse files Browse the repository at this point in the history
  • Loading branch information
NeutronicMC committed Jun 22, 2022
1 parent 749670c commit 26848d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 26848d3

Please sign in to comment.