Skip to content

Commit 26848d3

Browse files
committed
Add final kills per round to data
1 parent 749670c commit 26848d3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ function calculateExtraStats(data, game, timeScope) {
151151
if (kills !== undefined)
152152
data.kdr = parseFloat((kills / data.deaths).toFixed(2));
153153
if ("seeker_kills" in data) data.skdr = data.seeker_kills / data.deaths;
154-
if ("final_kills" in data)
154+
if ("final_kills" in data) {
155155
data.fkdr = parseFloat((data.final_kills / data.deaths).toFixed(2));
156+
data.fkpr = parseFloat((data.final_kills / data.played).toFixed(2));
157+
}
156158
if ("treasure_destroyed" in data)
157159
data.ddr = data.treasure_destroyed / data.deaths;
158160
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hive-tools-wrapper",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "Advanced Hive Bedrock API wrapper with caching.",
55
"main": "./index.js",
66
"dependencies": {

0 commit comments

Comments
 (0)