@rian8337/osu-droid-replay-analyzer 1.2.6 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -488,11 +488,7 @@ class ThreeFingerChecker {
|
|
|
488
488
|
return;
|
|
489
489
|
}
|
|
490
490
|
const objects = this.map.objects;
|
|
491
|
-
const totalCursorAmount = this.downCursorInstances
|
|
492
|
-
.map((v) => {
|
|
493
|
-
return v.size;
|
|
494
|
-
})
|
|
495
|
-
.reduce((acc, value) => acc + value, 0);
|
|
491
|
+
const totalCursorAmount = this.downCursorInstances.reduce((acc, value) => acc + value.size, 0);
|
|
496
492
|
for (let i = 0; i < this.downCursorInstances.length; ++i) {
|
|
497
493
|
if (filledCursorAmount <= 3) {
|
|
498
494
|
break;
|
|
@@ -629,14 +625,9 @@ class ThreeFingerChecker {
|
|
|
629
625
|
1;
|
|
630
626
|
const strainFactor = Math.pow(objects
|
|
631
627
|
.slice(beatmapSection.firstObjectIndex, beatmapSection.lastObjectIndex)
|
|
632
|
-
.map((v) => {
|
|
633
|
-
return v.originalTapStrain;
|
|
634
|
-
})
|
|
635
|
-
.sort((a, b) => {
|
|
636
|
-
return b - a;
|
|
637
|
-
})
|
|
638
628
|
.reduce((acc, value) => acc +
|
|
639
|
-
value /
|
|
629
|
+
value.originalTapStrain /
|
|
630
|
+
ThreeFingerChecker.strainThreshold, 0), 0.85);
|
|
640
631
|
// We can ignore the first 3 (2 for drag) filled cursor instances
|
|
641
632
|
// since they are guaranteed not 3 finger.
|
|
642
633
|
const threeFingerCursorAmounts = cursorAmounts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rian8337/osu-droid-replay-analyzer",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "A replay analyzer for analyzing osu!droid replay files.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"osu",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "typings/index.d.ts",
|
|
15
|
+
"typedocMain": "src/index.ts",
|
|
15
16
|
"files": [
|
|
16
17
|
"dist/**",
|
|
17
18
|
"typings/**"
|
|
@@ -22,7 +23,6 @@
|
|
|
22
23
|
},
|
|
23
24
|
"scripts": {
|
|
24
25
|
"build": "tsc",
|
|
25
|
-
"generate-docs": "typedoc src/index.ts",
|
|
26
26
|
"lint": "eslint --ext ts",
|
|
27
27
|
"prepare": "dts-gen -m java-deserialization -o -f ./node_modules/java-deserialization/src/index.d.ts && npm run build",
|
|
28
28
|
"test": "echo \"No tests for this module\""
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"url": "https://github.com/Rian8337/osu-droid-module/issues"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@rian8337/osu-base": "^1.2.
|
|
35
|
-
"@rian8337/osu-difficulty-calculator": "^1.2.
|
|
36
|
-
"@rian8337/osu-rebalance-difficulty-calculator": "^1.2.
|
|
34
|
+
"@rian8337/osu-base": "^1.2.9",
|
|
35
|
+
"@rian8337/osu-difficulty-calculator": "^1.2.9",
|
|
36
|
+
"@rian8337/osu-rebalance-difficulty-calculator": "^1.2.9",
|
|
37
37
|
"java-deserialization": "^0.1.0",
|
|
38
38
|
"unzipper": "^0.10.11"
|
|
39
39
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4bb4b0c00cf07d5624e1af644a01685697b2832c"
|
|
49
49
|
}
|